Skip to content

santihbc/CloudTranscode

 
 

Repository files navigation

Gitter Scrutinizer Code Quality

Updates [10/02/2015]

CT now uses HTTP/HTTPS protocol by default. It also makes use of the cache option in FFMpeg. This means that on a two pass encode, the file is downloaded only once from http. FFProbe is also done through HTTP. So probing and transcoding files is now much faster! pretty cool :) HTTP and FFMpeg article: http://wistia.com/blog/faster-thumbnail-extraction-ffmpeg

Coming up: Images transcoding!

What is Cloud Transcode ?

Cloud Transcode is your own distributed transcoding stack. With it you can transcode media files in a distributed way, at scale.

Goal

The goal of this project is to create an open source, scalable and cheap distributed transcoding platform where users have complete control over performance and cost.

We started with video transcoding as it is the most costly, but the goal is to transcode any type media files (audio, documents and images). We use FFMpeg for video transcoding.

Today's commercial solutions for video transcoding are very expensive for large volumes. With this solution you can transcode large quantity of files at the pace you want, thus controling your cost.

Benefits

With Cloud Transcode, you control: scale, speed and cost. You can run everything locally if you want, no Cloud instance required. Or you can deploy on AWS EC2, Beanstalk or Docker containers.

Your workers only need an Internet connection to use the required Amazon services: SWF, SQS and S3. It means that you can have a local, hybrid or full cloud setup. It's up to you.

Transcoding supported

  • Video to Video transcoding: One video IN, many videos OUT. Any formats and codecs supported by your ffmpeg.
  • Video to Thumbnails transcoding: Snapshot at certain time in video or intervals snapshot every N seconds. Keep image ratio.
  • Watermark integration in video: Take image IN and position a watermark on top of the video. Custom position and transparency. Keep image ratio.

We are working to support ALL FFmpeg options.

How to use CT ?

Cloud Transcode is a set of "activities" that are executed by the Cloud Processing Engine (CPE) project.

With CPE you can execute workflows (chain of tasks) in a distributed way using the SWF cloud service. It initiate tasks executions on workers that you deploy. You can deploy your workers anywhere: locally or in the Cloud. Your workers (machines running your tasks) only need an Internet connection to access the AWS services.

CPE allows the execution of arbitrary workflow that you define yourself. CPE is a good fit for any type of orchestrated batch processing that needs to span over several workers.

CPE makes use of the following AWS services:

  • SWF (Simple Workflow): Define your own workflow and let SWF track its progress and initiate tasks.
  • SQS (Simple Queue Messaging): Your client applications communicate with the CPE stack simply using SQS messages.

You need to clone the CPE project to get going with Cloud Transcode.

So head to the CPE project page, clone it and discover what you can do with CPE: https://github.com/sportarchive/CloudProcessingEngine

The CPE detailed documentation is here: http://sportarchive.github.io/CloudProcessingEngine/

CT Documentation

To understand all about Cloud Transcode and the transcoding activities, head to the CT documentation here: http://sportarchive.github.io/CloudTranscode/

We explain how to create transcoding jobs and detail all available transcoding options.

Contributing

We need help from the community to develop other types of transcoding:

  • Audio
  • Image
  • Document

The transcoders classes are already created, they just need to be implemented. (Check the src/activities/transcoders/ folder)

Thanks for contributing !

FFMpeg performance benchmark on Amazon EC2

Download the spreadsheet to compare the different Amazon EC2 instances cost and performances running FFMpeg: https://github.com/sportarchive/CloudTranscode/blob/master/benchmark/benchmark-aws-ffmpeg.xlsx

About

Distributed video encoding/transcoding using Amazon Web Services and FFMpeg

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 99.3%
  • Makefile 0.7%