Video encoding is very slow on Amazon EC2 instance

Posted by Timka on Server Fault See other posts from Server Fault or by Timka
Published on 2012-11-26T22:03:21Z Indexed on 2012/11/26 23:06 UTC
Read the original article Hit count: 244

We are using Amazon EC2 m1.xlarge instance for video re-encoding and it looks like the actual encoding process takes a very long time. For an average 250mb video file it takes about an hour to encode.

Intance: m1.xlarge (Xeon E5645 x 15gb ram)
Windows Server 2008 R2 64-bit
AviSynth version 2.5 (32bit) + ffms2 plugin (FFmpegSource 1.21)
FFmpeg SVN-r13712
libavutil   3213056
libavcodec  3356930
libavformat 3411456
libavdevice 3407872
Number of parallel jobs is 3
Average CPU utilization ~96%

Update#1 Source video: mp4/h.264

Parameters for ffmpeg:

--enable-memalign-hack --enable-avisynth --enable-libxvid --enable-libx264 +
--enable-libgsm --enable-libfaac --enable-libfaad --enable-liba52 +
--enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-pthreads +
--enable-swscale --enable-gpl

Video files encoded to mp4/h.264 with the following extra command line options:

-threads 0 -coder 0 -bf 0 -refs 1 -level 30 -maxrate 10000000 -bufsize 10000000

© Server Fault or respective owner

Related posts about windows-server-2008

Related posts about amazon-ec2