Hello everybody,

I successfully installed FlashVideo module and works property with the default ffmpeg command, but with this default command videos are converted to FLV with very low quality.

I have tested the following ffmpeg command but do not work:

-i @input -f flv -s qvga -b 500k -acodec mp3 -ar 22050 -ab 96k @output

¿Any idea why?

ffmpeg thumbnail command works:

-y -i @input -vframes 1 -ss @thumbtime -an -vcodec mjpeg -f rawvideo -s "@thumbsize" @output

Comments

travist’s picture

Do you have the latest version of ffmpeg? I am not familiar with the qvga setting, and that command might only be valid for later versions of ffmpeg. I assume "qvga" stands for Quarter VGA which would be 320x240 resolution. FFMPEG might puke when the video you are trying to convert is not native QVGA resolution.

Just a thought...

creatiu’s picture

Ok I changed the command to:

-i @input -f flv -s 320x240 -b 500k -acodec mp3 -ar 22050 -ab 96k @output

And now works... but how is possible that the output file have more weight than the original Quicktime movie? And hard to play for the player...

creatiu’s picture

I'm going crazy, I tested too many commands and I think I'm doing something bad... I need to set que quality because the default one is very bad and very big files.

Someone can write down a command line that works with FlashVideo and outputs good quality videos?

creatiu’s picture

Title: ffmpeg command line advice » ffmpeg command line help

This command line also do not work:

-i @input -f flv -s 320x240 -qscale 4 -acodec mp3 -ar 22050 -ab 96k @output

rmjackson’s picture

I had problems tweaking the ffmpeg options too. I was trying to increase the resolution for the default video player on a commercial site I'm working on www.thepetnetwork.tv I never did get the new settings to take hold, even when editing the ffmpeg settings from command line mysql.

I eventually decided that the fix was to use swf tools with a higher res upload flv file. I still use flashvideo for end users. You can see the difference on www.ichannel.ca in the top right viewer. We opted for a higher resolution than I recommended, so that the execs could enjoy the higher res. I figure it's best to optimize for the average user, but the execs pay the bills.

My feeling is that the drupal development community to an amazing job at maintaining the code the way they do. When you run into road blocks, look through the cvs for a similar problem or fix. You likely find someone out there whose experiencing the same issue and quite possibly a workaround or fix. Just a thought.

travist’s picture

Status: Active » Closed (fixed)