Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-12-2012, 01:20 PM   #1
LQ Newbie
Registered: Jul 2010
Posts: 5

Rep: Reputation: 0

I can't quite figure out what all flags I need for this. If someone could help me with the command, it'd be greatly appreciated.

Starting with video of any aspect ratio or format.
Convert to flash FLV file.
Set average bitrate to 500 kb/s.
Set audio Hz to 22050.
Set audio bitrate to 96 kb/s.
Set video width to 512 while keeping aspect ratio.

Thanks much for any help.
Old 06-12-2012, 08:49 PM   #2
Senior Member
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,963

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301

-ar freq
    Set the audio sampling frequency (default = 44100 Hz). 
-ab bitrate
    Set the audio bitrate in bit/s (default = 64k). 
-ac channels
    Set the number of audio channels (default = 1)
-acodec codec
    Force audio codec to codec. Use the "copy" special value to specify that the raw codec data must be copied as is.
-b bitrate
    Set the video bitrate in bit/s (default = 200 kb/s). 
-s size
    Set frame size. The format is wxh (ffserver default = 160x128, ffmpeg default = same as source). The following abbreviations are recognized: 
-r fps
    Set frame rate (Hz value, fraction or abbreviation), (default = 25). 
-aspect aspect
    Set aspect ratio (4:3, 16:9 or 1.3333, 1.7777). 
-vcodec codec
    Force video codec to codec. Use the "copy" special value to tell that the raw codec data must be copied as is.
Something like
ffmpeg -i video.avi -acodec libmp3lame -ar 22050 -ab 96k -b 500k -s 512x240 -f flv output.flv
Use your own parameters, codecs you want to use, size etc.

Running just ffmpeg will show you what it was compiled with.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg.SlackBuild: line 194: cd: /tmp/SBo/package-ffmpeg/usr/man: No such file or dir darkstarbyte Linux - Software 7 12-29-2010 05:45 PM
Install FFMPEG and FFMPEG-PHP on fedora10 & 12 cks Linux - Server 2 09-17-2010 01:55 PM
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 05:16 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration