Common ffmpeg parameters


Argument Description
-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])
-fs limit Set file size limit
-ss secs Seek to given time position (hh:mm:ss[.xxx])
-target type Specify target type ("vcd", "svcd", "dvd", "dv", "dv50", "pal-vcd" etc); all format options are set automatically
-b bitrate Video bitrate in bps
-r fps Set frame rate (default 25)
-s WxH Set frame size (default same as source)
-vf scale=W:H Rescale video (use <=1 to scale, e.g. "640:-1" means resize height to scale, -2 means same but maintain even /2 count)
-vf transpose=n Rotate video (0 = 90° counterclockwise and vertical flip; 1 = 90° clockwise; 2 = 90° counterclockwise; 3 = 90° clockwise and vertical flip)
-aspect aspect Set aspect ratio (4:3, 16:9 etc)
-vn Disable video
-pass n Multipass rendering (1 or 2)
-vcodec Force video codec (e.g. "h264", "copy")
-crf nn Constant Rate Factor (0=lossless, 23=default, 17-28=acceptable)
-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 (ac=2 to downmix 5.1 to stereo)
-an Disable audio
-acodec Force audio codec ("aac", "mp3", "copy")
-q:a n VBR quality (mp3=9-0, def=4, rec=2)
-scodec Force subtitle codec ("copy" to copy stream)
-sn Disable subtitles
ffprobe "file.mkv" -v quiet -print_format json \
    -show_streams \
    -show_format \
    -show_programs \
    -show_chapters \
    -show_private_data \

Dump information to JSON format