[FFmpeg-user] How can I improve video quality and reduce system load simultaneously?

Boram Han mlight3 at gmail.com
Mon Nov 12 07:09:02 CET 2012


I've been some experimentation for finding suitable command that satisfied
encoding speed and quality both, and I found this command options.

ffmpeg -y -i input.avi -f custom_segment -acodec libfaac -ac 2 -ar 22050
-vcodec libx264 -x264opts keyint=5:min-keyint=1 -b:v 1024k -subq 1 -refs 1
-qcomp 0.6 -qmin 3 -qmax 51 -qdiff 4 -threads 1 -r 15 -async 1 test.m3u8

* ffmpeg version is 0.10
* yasm is installed.
* custom_segment works identically with segment options in ffmpeg. it is
* our segmented ts file's duration is limited 5 seconds.
* this m3u8 will be played by ipad.

When I start encode 20 files concurrently, the movie is being buffered too
often to watch.

Could I increase concurrent encoding numbers with high quality and no
buffering by adjusting options?
I know it is a tradeoff between them. I hope it would be great that I will
encode 35~40 files concurrently.

Thank you for your feedback.

Best Regards.

ps. My server's specification is below.
Intel(R) Xeon(R) CPU  E5620  @ 2.40GHz x 16 processors, 16GB Memory

More information about the ffmpeg-user mailing list