This application implements a drop video transcoder that lets you easily convert media files by dragging and dropping them on your computer. It makes use of the following services:
- AWS IAM
- Amazon S3
- Amazon SNS
- Amazon SQS
- Amazon Elastic Transcoder
The general flow of the program can be described as:
- Ensure AWS setup / permissions
- Watch a directory for new files
- Upload new files to S3
- Create a transcoder job for each input file
- Poll for job completed SQS messages
- Download transcoded files
- Repeat steps 2-7 until user quits (
ctrl+c
)
First, ensure that you have Boto 3 installed:
pip install -r requirements.txt
Then you can run the transcoder. The first time it is run, it will
create a default configuration file for you in ~/.autotranscode.json
:
python transcoder.py
Edit the file to suit your local setup and then run the same command again. Once the application is running, you can drag and drop files into your source folder to have them transcoded and downloaded to the destination folder.