Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a video site where users can upload videos which will be converted to FLV format and displayed.

Those videos are shown at a size of 420x350.

I'm using FFmpeg to convert then to FLV format through the following command:

ffmpeg -i $in $out

I find the result to be pretty low quality and whenever I try to change the settings, the output will be a very large file.

I've tried this, for instance:

ffmpeg -i $in -sameq -ar 11025 -ab 32 -deinterlace -nr 500 -r 20 -g 500 -s 420x350 -aspect 4:3 -me_range 20 -b 270k -f flv -y $out

Does anyone have any tips on optimizing video to FLV conversion using FFmpeg so I could get a medium quality video which is not very large?

share|improve this question

migrated from serverfault.com Apr 19 '11 at 18:58

This question came from our site for system and network administrators.

Maybe try not using -sameq Also, might want to try to add -vcodec libx264, to produce files compressed with .h264 codec. Which has one of the best quality/size ratios. (although normally used with mp4 container instead of flv)

The audio hz (-ar) are very low, aren't you noticing too low audio quality? At least 22, if not 44100... Also, -b 270k is a bit of a quite low value. I'd set 500, at least.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .