Optimal FFMPEG settings?


Joined: 2007-03-10
Posts: 3
Posted: Sat, 2007-03-10 13:46

I am not using this for Gallery 2, but hopefully someone can help. I got a lot of good information from this forum when trying to install ffmpeg.

If I do:
ffmpeg -i videoin.wmv -sameq videoout.flv

It converts the video perfectly, same quality of the file (Hence 'sameq'). But... It increases the file size by 400% in the outputted Flash video. It turns a 10MB video file to a 40MB FLV file.

Now, I've messed around with the bit rate settings, like:
ffmpeg -i videoin.wmv -ab 128 -b 1200 videoout.flv

It sure does decrease the video size, but the quality is crap. Even if I bump it up to 2000, it makes little difference. I've tried going through FFMPEG's documentation and looking for things I can use to increase the quality, but most of the things I really don't understand.

What are the 'optimal' settings for FFMPEG, to produce a quality close to the original, but still keeping size in mind?


Joined: 2007-03-25
Posts: 1
Posted: Sun, 2007-03-25 01:14

use the -qmax option... it set the video to different quality.. -qmax 8 is what i use for normal-high.. it matches up with normal flash encoded file sizes. The lower the number the better the quality.. and the higher the worse... Quality 1 is the same as saying -sameq... So ya thats what i've found so far.


Joined: 2007-03-10
Posts: 3
Posted: Sun, 2007-03-25 01:54

Exactly what I was looking for, thanks! Any other useful tips?