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

MySQL query learning basic query operations

Preface MySQL is the most popular relational data...

Detailed explanation of Linux host name modification command

Linux change hostname command 1. If you only need...

Detailed explanation of CocosCreator message distribution mechanism

Overview This article begins to introduce content...

How to configure nginx to limit the access frequency of the same IP

1. Add the following code to http{} in nginx.conf...

Nginx uses Lua+Redis to dynamically block IP

1. Background In our daily website maintenance, w...

Detailed explanation of the text-fill-color property in CSS3

What does text-fill-color mean? Just from the lit...

Linux sar command usage and code example analysis

1. CPU utilization sar -p (view all day) sar -u 1...

Understand the principles and applications of JSONP in one article

Table of contents What is JSONP JSONP Principle J...

52 SQL statements to teach you performance optimization

1. To optimize the query, try to avoid full table...

Node uses koa2 to implement a simple JWT authentication method

Introduction to JWT What is JWT The full name is ...

Several ways to submit HTML forms_PowerNode Java Academy

Method 1: Submit via the submit button <!DOCTY...

Detailed explanation of the adaptive adaptation problem of Vue mobile terminal

1. Create a project with vue ui 2. Select basic c...

Example code for using text-align and margin: 0 auto to center in CSS

Use text-align, margin: 0 auto to center in CSS W...

How to deploy ElasticSearch in Docker

1. What is ElasticSearch? Elasticsearch is also d...