Wednesday, September 8, 2010

More EC2, FFMPEG and video streaming from the cloud

So today I am setting up the compression engine on EC2 to compress video out into 4 formats. I need to do this before I use the segmenter to divide up video out into segments that will then be recompiled on the fly via lexical searches...

Anyway I had a java program downloading my mov files - clips from video out- but it was taking to long. I dont want to have to download the file in order to convert it I want ffmpeg to convert it via http... luckily i found this on stack overload:
http://stackoverflow.com/questions/2677317/how-to-read-remote-video-on-amazon-s3-using-ffmpeg


evermind, I found an easy way to solve my problem.

I set up an amazon cloudfront download distribution pointing to my S3 bucket.
Via cloudfront the files are accessible with ffmpeg over http:

ffmpeg -i "http://subdomain.cloudfront.net/video.mp4" -ss 00:00:10 -vframes 1 -f image2 "image%03d.jpg"

2 comments:

  1. Transduction is a problem with how we do the translation, it's the most important whatever we try, do games such as Poker or on any issue also takes hard work, tks for sharing

    ReplyDelete
  2. I really enjoy this post. I spend great time, reading it. It's interesting topic and it's great, that author decided to write about it. Seems like he's broad minded person. I would like to read his another posts with great pleasure. It can be my inspiration.cloth diaper

    ReplyDelete