Common ffmpeg parameters

, , Leave a comment

Information

    -codecs            Display codecs
    -formats           Display formats
    -f fmt             Force format "fmt"
    -i filename        Set input file name
    -y                 Overwrite output file
    -t secs            Force duration to specific length (hh:mm:ss[.xxx] syntax works)
    -fs limit          Set file size limit
    -ss secs           Seek to given time position (hh:mm:ss[.xxx] syntax works)
    -target type       Specify target type ("vcd", "svcd", "dvd", "dv", "dv50", "pal-vcd" etc) ... all the format options are set automatically

Video

    -b bitrate         Video bitrate in bps
    -r fps             Set frame rate (default 25)
    -s WxH             Set frame size (default same as source)
    -aspect aspect     Set aspect ratio (4:3, 16:9 etc)
    -vn                Disable video
    -sameq             Same quality as input (implies VBR)
    -pass n            Multipass rendering (1 or 2)
    -vcodec            Force video codec

Audio

    -ar freq           Audio frequency (default 44100 Hz)
    -ab bitrate        Audio bitrate in bps (default 64k)
    -aq quality        Audio quality (codec-specific, VBR)
    -ac channels       Audio channels
    -an                Disable audio
    -acodec            Force audio codec

Subtitles

    -scodec            Force subtitle codec ("copy" to copy stream)
    -sn                Disable subtitles
 

Leave a Reply