All apps/FFmpeg

FFmpeg

ffmpeg

A complete, cross-platform solution to record, convert and stream audio and video.

Runs as ffmpeg|macOS, Linux, Windows|ffmpeg.org

Autocomplete

Fig spec, with what the manifest adds · 182 options
Published once and never changed; check the digest before caching
sha256
024cb87936882b925e6374a552abf359b3443b5634feb18d82cc282b8f89d479
Size
31684 bytes
OptionsOn ffmpeg itself
-i
Input file <infile>
-L
Show license
-h
Show help <topic>
-?
Show help <topic>
-help
Show help <topic>
--help
Show help <topic>
-version
Show version
-buildconf
Show build configuration
-formats
Show available formats
-muxers
Show available muxers
-demuxers
Show available demuxers
-devices
Show available devices
-codecs
Show available codecs
-decoders
Show available decoders
-encoders
Show available encoders
-bsfs
Show available bit stream filters
-protocols
Show available protocols
-filters
Show available filters
-pix_fmts
Show available pixel formats
-layouts
Show standard channel layouts
-sample_fmts
Show available audio sample formats
-dispositions
Show available stream dispositions
-colors
Show available color names
-sources
List sources of the input device <device>
-sinks
List sinks of the output device <device>
-hwaccels
Show available HW acceleration methods
-loglevel
Set logging level <loglevel>
-v
Set logging level <loglevel>
-report
Generate a report
-max_alloc
Set maximum size of a single allocated block <bytes>
-y
Overwrite output files
-n
Never overwrite output files
-ignore_unknown
Ignore unknown stream types
-filter_threads
Number of non-complex filter threads
-filter_complex_threads
Number of threads for -filter_complex
-stats
Print progress report during encoding
-max_error_rate
Ratio of decoding errors (0.0: no errors, 1.0: 100% errors) above which ffmpeg returns an error instead of success <maximum error rate>
-vol
Change audio volume (256=normal) <volume>
-cpuflags
Force specific cpu flags <flags>
-cpucount
Force specific cpu count <count>
-hide_banner
Do not show program banner <hide_banner>
-copy_unknown
Copy unknown stream types
-recast_media
Allow recasting stream type in order to force a decoder of different media type
-benchmark
Add timings for benchmarking
-benchmark_all
Add timings for each task
-progress
Write program-readable progress information <url>
-stdin
Enable or disable interaction on standard input
-timelimit
Set max runtime in seconds in CPU user time <limit>
-dump
Dump each input packet
-hex
When dumping packets, also dump the payload
-vsync
Set video sync method globally; deprecated, use -fps_mode
-frame_drop_threshold
Frame drop threshold
-async
Audio sync method
-adrift_threshold
Audio drift threshold <threshold>
-copyts
Copy timestamps
-start_at_zero
Shift input timestamps to start at 0 when using copyts
-copytb
Copy input stream time base when stream copying <mode>
-dts_delta_threshold
Timestamp discontinuity delta threshold <threshold>
-dts_error_threshold
Timestamp error delta threshold <threshold>
-xerror
Exit on error <error>
-abort_on
Abort on the specified condition flags <flags>
-filter_complex
Create a complex filtergraph <graph_description>
-lavfi
Create a complex filtergraph <graph_description>
-filter_complex_script
Read complex filtergraph description from a file <filename>
-auto_conversion_filters
Enable automatic conversion filters globally
-stats_period
Set the period at which ffmpeg updates stats and -progress output <time>
-debug_ts
Print timestamp debugging info
-psnr
Calculate PSNR of compressed frames
-vstats
Dump video coding statistics to file
-vstats_file
Dump video coding statistics to file <file>
-vstats_version
Version of the vstats format to use
-qphist
Show QP histogram
-sdp_file
Specify a file in which to print sdp information <file>
-init_hw_device
Initialise hardware device <args>
-filter_hw_device
Set hardware device used when filtering <device>
-f
Force format <fmt>
-c
Codec name <codec>
-codec
Codec name <codec>
-pre
Preset name <preset>
-map_metadata
Set metadata information of outfile from infile <outfile[,metadata]:infile[,metadata]>
-t
Record or transcode "duration" seconds of audio/video <duration>
-to
Record or transcode stop time <time_stop>
-fs
Set the limit file size in bytes <limit_size>
-ss
Set the start time offset <time_off>
-sseof
Set the start time offset relative to EOF <time_off>
-seek_timestamp
Enable/disable seeking by timestamp with -ss
-timestamp
Set the recording timestamp ('now' to set the current time) <time>
-metadata
Add metadata <string=string>
-program
Add program with specified streams <title=string:st=number...>
-target
Specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-") <type>
-apad
Audio pad
-frames
Set the number of frames to output <number>
-filter
Set stream filtergraph <filter_graph>
-filter_script
Read stream filtergraph description from a file <filename>
-reinit_filter
Reinit filtergraph on input parameter changes
-discard
Discard
-disposition
Disposition
-map
Set input stream mapping <[-]input_file_id[:stream_specifier][,sync_file_id[:stream_specifier]]>
-map_channel
Map an audio channel from one stream to another <file.stream.channel[:syncfile.syncstream]>
-map_chapters
Set chapters mapping <input_file_index>
-accurate_seek
Enable/disable accurate seeking with -ss
-isync
Indicate the input index for sync reference <sync ref>
-itsoffset
Set the input ts offset <time_off>
-itsscale
Set the input ts scale <scale>
-dframes
Set the number of data frames to output <number>
-re
Read input at native frame rate; equivalent to -readrate 1
-readrate
Read input at specified rate <speed>
-shortest
Finish encoding within shortest input
-bitexact
Bitexact mode
-copyinkf
Copy initial non-keyframes
-copypriorss
Copy or discard frames before start time
-tag
Force codec tag/fourcc <fourcc/tag>
-q
Use fixed quality scale (VBR) <q>
-qscale
Use fixed quality scale (VBR) <q>
-profile
Set profile <profile>
-attach
Add an attachment to the output file <filename>
-dump_attachment
Extract an attachment into a file <filename>
-stream_loop
Set number of times input stream shall be looped <loop count>
-thread_queue_size
Set the maximum number of queued packets from the demuxer
-find_stream_info
Read and decode the streams to fill missing information with heuristics
-bits_per_raw_sample
Set the number of bits per raw sample <number>
-autorotate
Automatically insert correct rotate filters
-autoscale
Automatically insert a scale filter at the end of the filter graph
-muxdelay
Set the maximum demux-decode delay <seconds>
-muxpreload
Set the initial demux-decode delay <seconds>
-time_base
Set the desired time base hint for output stream (1:24, 1:48000 or 0.04166, 2.0833e-5) <ratio>
-enc_time_base
Set the desired time base for the encoder (1:24, 1:48000 or 0.04166, 2.0833e-5). two special values are defined - 0 = use frame rate (video) or sample rate (audio),-1 = match source time base <ratio>
-bsf
A comma-separated list of bitstream filters <bitstream_filters>
-fpre
Set options from indicated preset file <filename>
-max_muxing_queue_size
Maximum number of packets that can be buffered while waiting for all streams to initialize <packets>
-muxing_queue_data_threshold
Set the threshold after which max_muxing_queue_size is taken into account <bytes>
-dcodec
Force data codec ('copy' to copy stream) <codec>
-vframes
Set the number of video frames to output <number>
-r
Set frame rate (Hz value, fraction or abbreviation) <rate>
-fpsmax
Set max frame rate (Hz value, fraction or abbreviation) <rate>
-s
Set frame size (WxH or abbreviation) <size>
-aspect
Set aspect ratio (4:3, 16:9 or 1.3333, 1.7777) <aspect>
-vn
Disable video
-vcodec
Force video codec ('copy' to copy stream) <codec>
-timecode
Set initial TimeCode value <hh:mm:ss[:;.]ff>
-pass
Select the pass number (1 to 3) <n>
-vf
Set video filters <filter_graph>
-ab
Audio bitrate (please use -b:a) <bitrate>
-b
Video bitrate (please use -b:v) <bitrate>
-dn
Disable data
-pix_fmt
Set pixel format <format>
-rc_override
Rate control override for specific intervals <override>
-passlogfile
Select two pass log file name prefix <prefix>
-intra_matrix
Specify intra matrix coeffs <matrix>
-inter_matrix
Specify inter matrix coeffs <matrix>
-chroma_intra_matrix
Specify intra matrix coeffs <matrix>
-top
Top=1/bottom=0/auto=-1 field first
-vtag
Force video tag/fourcc <fourcc/tag>
-fps_mode
Set framerate mode for matching video streams; overrides vsync
-force_fps
Force the selected framerate, disable the best supported framerate selection
-streamid
Set the value of an outfile streamid <streamIndex:value>
-force_key_frames
Force key frames at specified timestamps <timestamps>
-hwaccel
Use HW accelerated decoding <hwaccel name>
-hwaccel_device
Select a device for HW acceleration <devicename>
-hwaccel_output_format
Select output format used with HW accelerated decoding <format>
-vbsf
Deprecated <video bitstream_filters>
-vpre
Set the video options to the indicated preset <preset>
-aframes
Set the number of audio frames to output <number>
-aq
Set audio quality (codec-specific) <quality>
-ar
Set audio sampling rate (in Hz) <rate>
-ac
Set number of audio channels <channels>
-an
Disable audio
-acodec
Force audio codec ('copy' to copy stream) <codec>
-af
Set audio filters <filter_graph>
-atag
Force audio tag/fourcc <fourcc/tag>
-sample_fmt
Set sample format <format>
-channel_layout
Set channel layout <layout>
-ch_layout
Set channel layout <layout>
-guess_layout_max
Set the maximum number of channels to try to guess the channel layout
-absf
Deprecated <audio bitstream_filters>
-apre
Set the audio options to the indicated preset <preset>
-sn
Disable subtitle
-scodec
Force subtitle codec ('copy' to copy stream) <codec>
-stag
Force subtitle tag/fourcc <fourcc/tag>
-fix_sub_duration
Fix subtitles duration
-canvas_size
Set canvas size (WxH or abbreviation) <size>
-spre
Set the subtitle options to the indicated preset <preset>
ArgumentsPositional, in order
<outfile>
Output file · filepaths