TrackIt – Cloud Consulting & S/W Development
  • Home
  • Solutions
    • Media & Entertainment
    • HPC – High Performance ComputingHigh Performance Computing
    • Software DevSoftware Development; Serverless, CI/CD, UI/UX, API Integration
    • Migrate to AWS
    • DevOpsDevOps, AWS Cloud Consulting
    • StorageData Storage
    • Financial Services
  • Services
    • AWS Services
      • Well-Architected Review
      • Amazon API Gateway
      • AWS Lambda
      • Amazon DynamoDB
      • Amazon EKS
      • Amazon OpenSearch
      • AWS Elemental MediaConvert
      • Focus on Video AI/ML
      • Virtual Desktop/Studio in the Cloud
      • Amazon CloudFront
      • Chime SDK
      • DevOps Guru
    • Hammerspace Integration
    • Autodesk Integration Partner
    • Cloud Security
  • Resources
    • Blogs
    • White Papers
    • Case Studies
    • Press Releases
    • Trainings and Workshops
  • Tools & Apps
    • DeepScan
    • Trackflix
    • Tagbot
    • TrackIt Cost Management App
  • Managed Services
  • About Us
header image

TrackIt Blogs

Read the latest cloud technology news and learn new tips and tricks to get the most out of your cloud.

  • Contact Us

Categories

Automation AWS data rooms Data Storage DevOps DevTools Monitoring Optimization Services TrackIt

Tags

aws AWS EC2 AWS S3 AWS Studio in the Cloud beginners chainlink cloudformation consul cost optimization data data analytics data lake data warehouse Demonstration disaster recovery docker etl github glue Hammerspace hashicorp high availability HP Anyware HPA Tech Retreat 2023 HPTeradici iac in-house IT json lambda live video managed services Media Workflows migration open source reduce cost Remote Serverless solution architecture terraform trackit tutorial vmix well architected Windows Containers workflow overview

Apr. 25, 2023

—

A Scalable Video Colorization Solution with DeOldify and AWS

A Scalable Video Colorization Solution with DeOldify and AWS

A scalable solution for colorizing black and white videos using DeOldify and AWS is introduced in the following text. The solution utilizes AWS services to create an efficient workflow capable of handling multiple videos at once and producing impressive colorization results.

A Scalable Video Colorization Solution

TrackIt has developed a workflow centered around DeOldify, a powerful Open Source deep learning model for colorizing black and white images and videos. The solution also leverages AWS services such as Amazon S3, AWS Lambda, Amazon Elastic Transcoder, Amazon SQS, and Amazon EC2 Spot Instances. The workflow provides the following benefits:

  1. Process multiple videos simultaneously: Video segmentation is used to handle multiple video clips at one time. The parallel processing significantly reduces the time required to colorize large batches of videos.
  1. Optimize costs and performance: Amazon EC2 Spot Instances and Auto Scaling Groups are utilized to cut costs while ensuring optimal performance for video colorization.
  1. Benefit from a fully managed and integrated solution: AWS services are fully integrated and a seamless and efficient colorization process is enabled without manually managing resources.

Workflow Overview

  1. A black and white video is uploaded to an Amazon S3 input bucket
  2. An AWS Lambda function is triggered which segments the video using Amazon Elastic Transcoder
  3. The video segments are stored in another S3 bucket and a message is sent to an Amazon SQS queue
  4. Amazon EC2 Spot Instances managed by an Auto Scaling Group are launched to process the video segments
  5. The colorized video segments are stored in an output S3 bucket
  6. Another Lambda function is triggered to merge the colorized segments back into a single video file
image
Colorization Workflow AWS Architecture Diagram

Cost Breakdown

Below are the estimated workflow costs for a 1-hour video with both On-Demand and Spot instances using g4dn.xlarge instances in the Oregon region:

Total cost of the workflow for a 1-hour video:

  • Amazon S3 storage:
    • Input bucket: $0.023 (assuming 10GB storage)
    • Output bucket: $0.023 (assuming 10GB storage)
    • Total: $0.046
  • Amazon S3 data transfer: $0.18 (assuming 40GB outbound data transfer)
  • Amazon Elastic Transcoder: $0.90 (assuming 60 minutes of video transcoding)
  • AWS Lambda:
    • Lambda for segmenting: $0.001
    • Lambda for merging: $0.001
    • Total: $0.002
  • Amazon SQS: $0.004 (assuming 4,000 requests)
  • Amazon EC2 On-Demand (g4dn.xlarge):
    • 3 hours * $0.526/hour = $1.578
  • Amazon EC2 Spot (g4dn.xlarge):
    • The cost will vary but assuming a 70% discount on the on-demand rate:
    • 3 hours * $0.1578/hour = $0.4734

Total On-Demand cost: $2.71

Total Spot cost: $1.61

Note: These costs are estimates based on the mentioned assumptions and the AWS rates at the time of writing. Actual costs may vary depending on usage, processing duration, and updated AWS rates.

The Stunning Results of Colorization

High-quality colorization results breathe new life into older black and white content. Below is an example of a video that has been colorized using the aforementioned process:

Before / After Colorization –  Excerpt from The Pawnshop, Charlie Chaplin

Conclusion

Creating a video colorization farm with DeOldify and AWS with integrated video segmentation can be an efficient and cost effective solution. It enables the processing of multiple videos simultaneously and in an optimized manner using AWS services to deliver impressive colorization results. This video colorization processing solution showcases TrackIt’s deep technical expertise in AWS and understanding of media workflows. Companies interested in leveraging this scalable video colorization solution can contact TrackIt for more information.

About TrackIt

TrackIt is an Amazon Web Services Advanced Tier Services Partner specializing in cloud management, consulting, and software development solutions based in Marina del Rey, CA. 

TrackIt specializes in Modern Software Development, DevOps, Infrastructure-As-Code, Serverless, CI/CD, and Containerization with specialized expertise in Media & Entertainment workflows, High-Performance Computing environments, and data storage.

In addition to providing cloud management, consulting, and modern software development services, TrackIt also provides an open-source AWS cost management tool that allows users to optimize their costs and resources on AWS.

deoldify - blog post trackit logo
Previous Next

AWS Advanced Consulting Partner - Cloud Management, Consulting, and Software Development Solutions

Quick links

    • Home
    • Solutions
    • Services
    • White Papers
    • Blog
    • About Us
    • Privacy Policy

Tools & Apps

    • DEEPSCAN
    • Trackflix
    • TrackIt App
    • Tagbot

get in touch

    • Phone: +1 323-230-0042
    • Email: info@trackit.io

    • TrackIt 578 Washington Blvd #260 Marina Del Rey, CA 90292
  • @TrackIt 2022