LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 0
FFMPEG Help


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
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
http://linux.die.net/man/1/ffmpeg

Code:
-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.
Code:
-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
Code:
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.

http://linuxers.org/tutorial/ffmpeg-tutorial-beginners
http://www.linuxstall.com/ffmpeg-tutorial/
http://ffmpeg.org/ffmpeg.html
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 PM.

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