Detailed description of ffmpeg Chinese parameters

Detailed description of ffmpeg Chinese parameters

FFMPEG 3.4.1 version parameter details

Usage: ffmpeg [options] [[infile options] -i infile] … {[outfile options] outfile} …

FFMPEG get help:

-h - Print basic options
-h long - print more options
-h full - print all options (includes all format and codec specific options, very long)
-h type=name - print all options for the specified decoder/encoder/demuxer/muxer/filter See man ffmpeg for a detailed description of the options.

Print help/information/functions :

-L show license
-h topic display help
- ? Topic Display Help
-help topic display help
--help topic show help
-version shows the version
-buildconf show build configuration
-formats displays available formats
-muxers Display available multiplexers
-demuxers Show available demuxers
-devices displays available devices
-codecs shows available codecs
-decoders show available decoders
-encoders shows available encoders
-bsfs show available bitstream filters
- Protocols displays the available protocols
-filters displays available filters
-pix_fmts shows available pixel formats
-layouts displays standard channel layouts
-sample_fmts Display available audio sample formats
-colors displays the available color names
-sources devices List the sources of input devices
-sinks devices list the sinks for output devices
-hwaccels displays available hardware acceleration methods

Global options (affect the whole program not just one file):

-loglevel loglevel sets the logging level
-v loglevel Set the logging level
-report Generate report
-max_alloc bytes sets the maximum size of a single allocated block
-y Overwrite output file
-n Never overwrite output files
-ignore_unknown Ignore unknown stream types
-filter_threads Number of non-complex filter threads
-filter_complex_threads -Number of filter_complex threads
-stats prints progress reports during encoding
-max_error_rate error rate (0.0: no error, 1.0: 100% error maximum error rate
-bits_per_raw_sample number sets the number of bits per raw sample
-vol volume change volume (256 = normal)

The main options for each file are:

-f fmt force format
-c codec codec name
-codec codec codec name
-pre preset preset name
-map_metadata outfile[,metadata]:infile[,metadata] Set metadata information of outfile from infile
-t duration Record or transcode audio/video for "duration" seconds
-to time_stop recording or transcoding stop time
-fs limit_size sets the limit file size (in bytes)
-ss time_off sets the start time offset
-sseof time_off sets the start time offset relative to EOF
-seek_timestamp Use -ss to enable/disable timestamp seeking
-timestamp time sets the recording timestamp ('now' sets the current time)
-metadata string=string add metadata
-program title=string:st=number ... Add a program with the specified stream
-target type Specify the target file type ("vcd", "svcd", "dvd", "dv", or "dv50" with optional prefix "pal-", "ntsc-", or "film-")
-apad audio pad
-frames number sets the number of frames to be output
-filter filter_graph set stream filtergraph
-filter_script filename Read stream filter description from file
-reinit_filter restarts filtergraph on input parameter changes
-discard discard
-disposition configuration

FFMPEG video options:

-vframes number sets the number of video frames to be output
-r rate Set frame rate (Hz value, fraction or abbreviation)
-s size Set frame size (WxH or abbreviation)
- Set aspect ratio (4:3, 16:9 or 1.3333, 1.77777)
-bits_per_raw_sample number sets the number of bits per raw sample
-vn disable video
-vcodec codec Force video codec ('copy' copies the stream)
-timecode hh:mm:ss[:;. ] ffSet the initial TimeCode value.
-pass n select pass number (1 to 3)
-vf filter_graph Set the video filter
-ab bitrate audio bitrate (please use -b:a)
-b bitrate Video bitrate (please use -b:v)
-dn disable data

FFMPEG audio options:

-frames number sets the number of audio frames to be output
-aq quality Set audio quality (codec specific)
-ar rate set audio sampling rate (Hz)
-ac channels Set the number of audio channels
- Disable Audio
-acodec codec Force audio codec ('copy' to copy stream)
-vol volume change volume (256 = normal)
-af filter_graph Set the audio filter

FFMPEG subtitle options:

-s size Set frame size (WxH or abbreviation)
-sn disable subtitles
-scodec codec Force subtitles codec ('copy' copies the stream)
-stag fourcc / tag subtitle tag / fourcc
-fix_sub_duration fix subtitle duration
-canvas_size size Set the canvas size (WxH or abbreviation)
-spre preset Set subtitle options to the indicated preset

You may also be interested in:
  • Detailed steps to install ffmpeg extension in PHP 5.3 under Centos 6.5
  • Graphic tutorial on installing FFmpeg on MAC
  • Code for getting flv video thumbnail and video time using Ffmpeg
  • Complete steps to install FFmpeg in CentOS server

<<:  How to modify the forgotten password when installing MySQL on Mac

>>:  Implementation of adding visit count function in github+Jekyll blog in one minute with JS

Recommend

How to build a private Docker repository using Harbor

Table of contents 1. Open source warehouse manage...

Summary of five commands to check swap space in Linux

Preface Two types of swap space can be created un...

MySQL partitioning practice through Navicat

MySQL partitioning is helpful for managing very l...

Detailed explanation of top command output in Linux

Preface I believe everyone has used the top comma...

Implementation of CSS equal division of parent container (perfect thirds)

The width of the parent container is fixed. In or...

Usage of Linux userdel command

1. Command Introduction The userdel (user delete)...

How to transfer files between Docker container and local machine

To transfer files between the host and the contai...

How to locate MySQL slow queries

Preface I believe that everyone has had experienc...

CSS3 animation – steps function explained

When I was looking at some CSS3 animation source ...

How to create a stylish web page design (graphic tutorial)

"Grand" are probably the two words that ...

Detailed explanation of EXT series file system formats in Linux

Linux File System Common hard disks are shown in ...

Nginx solves cross-domain issues and embeds third-party pages

Table of contents Preface difficulty Cross-domain...