update command line

pull/209/head
xufulong 3 years ago
parent 65cb7047e9
commit a2b32de3f0
  1. 114
      doc/FFmpeg_command_line.md

@ -7,70 +7,76 @@ ffprobe用于检测多媒体流格式;ffplay用于播放视频,包括本地与
# 一、ffmpeg命令行 # 一、ffmpeg命令行
## 1、命令行参数介绍 ## 1、命令行参数介绍
Print help / information / capabilities:<br> Print help / information / capabilities:<br>
--help topic$~~~~~~~~$show help<br> |:--------|:--------|
-version$~~~~~~~~~~~~$show version<br> |--help topic |show help<br>
-formats$~~~~~~~~~~~~$show available formats<br> |-version |show version<br>
-muxers$~~~~~~~~~~~~~$show available muxers<br> |-formats |show available formats<br>
-demuxers$~~~~~~~~~~~$show available demuxers<br> |-muxers |show available muxers<br>
-devices$~~~~~~~~~~~~$show available devices<br> |-demuxers |show available demuxers<br>
-codecs$~~~~~~~~~~~~~$show available codecs<br> |-devices |show available devices<br>
-decoders$~~~~~~~~~~~$show available decoders<br> |-codecs |show available codecs<br>
-encoders$~~~~~~~~~~~$show available encoders<br> |-decoders |show available decoders<br>
-bsfs$~~~~~~~~~~~~~~~$show available bit stream filters<br> |-encoders |show available encoders<br>
-protocols$~~~~~~~~~~$show available protocols<br> |-bsfs |show available bit stream filters<br>
-filters$~~~~~~~~~~~~$show available filters<br> |-protocols |show available protocols<br>
-pix_fmts$~~~~~~~~~~~$show available pixel formats<br> |-filters |show available filters<br>
-sample_fmts$~~~~~~~~$show available audio sample formats<br> |-pix_fmts |show available pixel formats<br>
-hwaccels$~~~~~~~~~~~$show available HW acceleration methods<br> |-sample_fmts |show available audio sample formats<br>
|-hwaccels |show available HW acceleration methods<br>
Global options (affect whole program instead of just one file:<br> Global options (affect whole program instead of just one file:<br>
-v loglevel$~~~~~~~~~$set logging level<br> |:--------|:--------|
-y$~~~~~~~~~~~~~~~~~~$overwrite output files<br> |-v loglevel |set logging level<br>
-n$~~~~~~~~~~~~~~~~~~$never overwrite output files<br> |-y |overwrite output files<br>
-filter_threads$~~~~~$number of non-complex filter threads<br> |-n |never overwrite output files<br>
-stats$~~~~~~~~~~~~~~$print progress report during encoding<br> |-filter_threads |number of non-complex filter threads<br>
-vol volume$~~~~~~~~~$change audio volume (256=normal)<br> |-stats |print progress report during encoding<br>
|-vol volume |change audio volume (256=normal)<br>
Per-file main options:<br> Per-file main options:<br>
-f fmt$~~~~~~~~~~~~~~$force format<br> |:--------|:--------|
-c codec$~~~~~~~~~~~~$codec name<br> |-f fmt |force format<br>
-codec codec$~~~~~~~~$codec name<br> |-c codec |codec name<br>
-t duration$~~~~~~~~~$record or transcode "duration" seconds of audio/video<br> |-codec codec |codec name<br>
-to time_stop$~~~~~~~$record or transcode stop time<br> |-t duration |record or transcode "duration" seconds of audio/video<br>
-fs limit_size$~~~~~~$set the limit file size in bytes<br> |-to time_stop |record or transcode stop time<br>
-ss time_off$~~~~~~~~$set the start time offset<br> |-fs limit_size |set the limit file size in bytes<br>
-sseof time_off$~~~~~$set the start time offset relative to EOF<br> |-ss time_off |set the start time offset<br>
-frames number$~~~~~~$set the number of frames to output<br> |-sseof time_off |set the start time offset relative to EOF<br>
-filter filter_graph set stream filtergraph<br> |-frames number |set the number of frames to output<br>
-discard$~~~~~~~~~~~~$discard<br> |-filter filter_graph |set stream filtergraph<br>
-disposition$~~~~~~~~$disposition<br> |-discard |discard<br>
|-disposition |disposition<br>
Video options:<br> Video options:<br>
-vframes number$~~~~~$set the number of video frames to output<br> |:--------|:--------|
-r rate$~~~~~~~~~~~~~$set frame rate (Hz value, fraction or abbreviation)<br> |-vframes number |set the number of video frames to output<br>
-s size$~~~~~~~~~~~~~$set frame size (WxH or abbreviation)<br> |-r rate |set frame rate (Hz value, fraction or abbreviation)<br>
-aspect aspect$~~~~~~$set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)<br> |-s size |set frame size (WxH or abbreviation)<br>
-bits_per_raw_sample number set the number of bits per raw sample<br> |-aspect aspect |set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)<br>
-vn$~~~~~~~~~~~~~~~~~$disable video<br> |-bits_per_raw_sample |number set the number of bits per raw sample<br>
-vcodec codec$~~~~~~~$force video codec ('copy' to copy stream)<br> |-vn |disable video<br>
-vf filter_graph$~~~~$set video filters<br> |-vcodec codec |force video codec ('copy' to copy stream)<br>
-ab bitrate$~~~~~~~~~$audio bitrate (please use -b:a)<br> |-vf filter_graph |set video filters<br>
-b bitrate$~~~~~~~~~~$video bitrate (please use -b:v)<br> |-ab bitrate |audio bitrate (please use -b:a)<br>
|-b bitrate |video bitrate (please use -b:v)<br>
Audio options:<br> Audio options:<br>
-aframes number$~~~~~$set the number of audio frames to output<br> |:--------|:--------|
-aq quality$~~~~~~~~~$set audio quality (codec-specific)<br> |-aframes number |set the number of audio frames to output<br>
-ar rate$~~~~~~~~~~~~$set audio sampling rate (in Hz)<br> |-aq quality |set audio quality (codec-specific)<br>
-ac channels$~~~~~~~~$set number of audio channels<br> |-ar rate |set audio sampling rate (in Hz)<br>
-an$~~~~~~~~~~~~~~~~~$disable audio<br> |-ac channels |set number of audio channels<br>
-acodec codec$~~~~~~~$force audio codec ('copy' to copy stream)<br> |-an |disable audio<br>
-vol volume$~~~~~~~~~$change audio volume (256=normal)<br> |-acodec codec |force audio codec ('copy' to copy stream)<br>
-af filter_graph$~~~~$set audio filters<br> |-vol volume |change audio volume (256=normal)<br>
|-af filter_graph |set audio filters<br>
Subtitle options:<br> Subtitle options:<br>
-s size$~~~~~~~~~~~~~$set frame size<br> |:--------|:--------|
-sn$~~~~~~~~~~~~~~~~~$disable subtitle<br> |-s size |set frame size<br>
-scodec codec$~~~~~~~$force subtitle codec ('copy' to copy stream)<br> |-sn |disable subtitle<br>
|-scodec codec |force subtitle codec ('copy' to copy stream)<br>
命令行整体格式:以ffmpeg开头,参数之间用空格隔开,每个参数key以"-"开头,后面跟着参数value,输出文件放在命令行最后。<br> 命令行整体格式:以ffmpeg开头,参数之间用空格隔开,每个参数key以"-"开头,后面跟着参数value,输出文件放在命令行最后。<br>

Loading…
Cancel
Save