ffmpeg使用參數說明


-L                  show license 顯示license
-h topic            show help 顯示幫助
-? topic            show help 顯示幫助
-help topic         show help 顯示幫助
--help topic        show help 顯示幫助
-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 顯示可用的音頻采樣格式
-colors             show available color names 顯示可用的顏色名稱
-sources device     list sources of the input device 列出輸入設備
-sinks device       list sinks of the output device 列出輸出設備
-hwaccels           show available HW acceleration methods 顯示可用的硬件加速方法

 

Global options (affect whole program instead of just one file: 全局設置
-loglevel loglevel  set logging level 設置日志級別
-v loglevel         set logging level 設置日志級別
-report             generate a report 生成報告
-max_alloc bytes    set maximum size of a single allocated block 每一個塊的最大值
-y                  overwrite output files 覆蓋輸出
-n                  never overwrite output files 不覆蓋輸出
-ignore_unknown     Ignore unknown stream types 忽略未知的流類型
-filter_threads     number of non-complex filter threads 簡單濾鏡的線程的數量(濾鏡分為non-complex和complex兩種)
-filter_complex_threads  number of threads for -filter_complex 復合濾鏡線程的數量
-stats              print progress report during encoding 打印編碼過程的進度報告
-max_error_rate ratio of errors (0.0: no errors, 1.0: 100% error  maximum error rate 最大的錯誤率比例,0.0表示沒有錯誤,1.0表示錯誤率100%
-bits_per_raw_sample number  set the number of bits per raw sample 設置每個原生采樣的比特數
-vol volume         change audio volume (256=normal) 設置音頻音量,正常情況一般為256

 

Per-file main options: 每一個文件的主要選項
-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 "duration" seconds of audio/video 設置錄制或轉碼的時間(多久),單位秒(時間段)
-to time_stop       record or transcode stop time 設置錄制或轉碼的停止時間點(時間點)
-fs limit_size      set the limit file size in bytes 設置文件最大值,單位字節
-ss time_off        set the start time offset 設置開始時間偏移量,也就是開始點后多久才正常工作
-sseof time_off     set the start time offset relative to EOF 也是設置偏移量,不過參考點是結束時間點,不是開始時間點
-seek_timestamp     enable/disable seeking by timestamp with -ss 啟用或禁止使用-ss參數去根據時間戳拖動
-timestamp time     set the recording timestamp ('now' to set the current time) 設置錄制的時間戳(now表示現在、當前時間)
-metadata string=string  add metadata 添加元數據
-program title=string:st=number...  add program with specified streams 給指定的流添加節目
-target type        specify target file type ("vcd", "svcd", "dvd", "dv" or "dv50" with optional prefixes "pal-", "ntsc-" or "film-") 指定目標文件的類型
-apad               audio pad 音頻補齊
-frames number      set the number of frames to output 設置輸出多少幀
-filter filter_graph  set stream filtergraph 設置流的濾鏡圖
-filter_script filename  read stream filtergraph description from a file 從一個文件讀取流的濾鏡圖的描述(就是以文件的形式添加濾鏡圖了)
-reinit_filter      reinit filtergraph on input parameter changes 當輸入參數變化時重新初始化濾鏡圖
-discard            discard 丟棄
-disposition        disposition 配置

 

Video options: 視頻選項
-vframes number     set the number of video frames to output 設置輸出多少視頻幀
-r rate             set frame rate (Hz value, fraction or abbreviation) 設置幀率,單位Hz
-s size             set frame size (WxH or abbreviation) 設置幀的大小
-aspect aspect      set aspect ratio (4:3, 16:9 or 1.3333, 1.7777) 設置視頻畫面的寬高比
-bits_per_raw_sample number  set the number of bits per raw sample 設置每個原生樣本的比特數
-vn                 disable video 禁止視頻,即視頻不可用了
-vcodec codec       force video codec ('copy' to copy stream) 設置視頻編解碼器,copy表示使用輸入源的
-timecode hh:mm:ss[:;.]ff  set initial TimeCode value. 設置初始TimeCode 
-pass n             select the pass number (1 to 3) 選擇通道
-vf filter_graph    set video filters 設置視頻濾鏡
-ab bitrate         audio bitrate (please use -b:a) 設置音頻比特率
-b bitrate          video bitrate (please use -b:v) 設置視頻比特率
-dn                 disable data 禁止數據緩存

 

Audio options: 音頻選項
-aframes number     set the number of audio frames to output 設置輸出多少幀音頻
-aq quality         set audio quality (codec-specific) 設置音頻質量
-ar rate            set audio sampling rate (in Hz) 設置音頻采樣率
-ac channels        set number of audio channels 設置音頻通道
-an                 disable audio 禁止音頻
-acodec codec       force audio codec ('copy' to copy stream) 設置音頻編解碼器,copy表示使用輸入源的
-vol volume         change audio volume (256=normal) 改變音量
-af filter_graph    set audio filters 設置音頻濾鏡

 

Subtitle options: 字幕選項
-s size             set frame size (WxH or abbreviation) 設置幀的大小
-sn                 disable subtitle 禁止字幕
-scodec codec       force subtitle codec ('copy' to copy stream) 設置字幕的編解碼器,copy表示使用輸入源的
-stag fourcc/tag    force subtitle tag/fourcc 設置字幕tag
-fix_sub_duration   fix subtitles duration 修改、糾正字幕的時間
-canvas_size size   set canvas size (WxH or abbreviation) 設置畫布大小
-spre preset        set the subtitle options to the indicated preset 設置字幕選項的預設(預處理集)



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM