引言
開源音視頻處理工具FFMPEG以其強大的功能而在音視頻領域著稱,從音視頻格式轉換、裁剪、拼接、提取字幕到提取視頻流,編解碼等無所不能,本頁聚集整理FFmpeg經常使用命令。更多影音視頻相關技術乾貨:請關注工重號:影音探長
經常使用命令示例
ffmpeg -h // 幫助
ffmpeg -version // 版本信息
ffmepg -devices // 查看可用設備
ffmpeg -i input.mp4 // 查看視頻信息
ffmpeg 命令行參數解析
00:00:46.61 視頻時長
3949kb/s 碼率
h264:視頻編碼格式
avc1:蘋果公司開發的複合h264規範的格式
yuv420p:視頻顏色編碼方式
960x400:分辨率
SAR 1:1 :圖像採集時,採集的寬高點陣的點數比值
DAR:圖像寬高比
PAR:像素的長寬比
23.98 fps: 幀率
23.98 tbr: 幀率
24k tbn: 文件層的時間精度1S=24k,一秒增長24k
47.95 tbc:視頻層的時間精度1S=47.95,一秒增長47.95
aac:音頻編碼格式
mp4a:
stereo:立體聲
fltp:音頻幀格式
經常使用命令示例
不顯示FFmpeg的banner信息
$ ffmpeg -i video.mp4 -hide_banner
php
基本格式轉換
ffmpeg.exe -i input.mkv -vcodec h264 -b:v 1.5M -acodec aac -b:a 48K output.mp4
-i 後面是輸入文件(編碼方式任意,能夠經過ffprobe查看)
-vcodec 轉換目標格式
-b:v 設置視頻流碼率(1.5M)
-b:a 設置音頻流碼率(48K)
output.mp4 輸出mp4格式封裝。
視頻與gif互轉
將視頻 MP4 轉化爲 GIF
ffmpeg -i test.mp4 test.gif
html
將視頻中的一部分轉換爲GIF
// 從視頻中第10秒開始,截取時長爲3秒的片斷轉化爲 gif
ffmpeg -ss 00:00:10 -t 3 -i test.mp4 test.gif
linux
轉化高質量 GIF
// 默認轉化是中等質量模式,若要轉化出高質量的 gif,能夠修改比特率
ffmpeg -i test.mp4 -b:v 2048k test.gif
canvas
將 GIF 轉化爲 MP4
ffmpeg -f gif -i test.gif test.mp4
// 也能夠將 gif 轉爲其餘視頻格式
ffmpeg -f gif -i test.gif test.mpeg
ffmpeg -f gif -i test.gif test.mkv
ide
視頻提取幀,保存爲圖片
// 將視頻提取10幀
ffmpeg -i test.mp4 -r 10 %06d.jpg;
添加字幕
ffmpeg -i input.mp4 -vf subtitles=text.srt output.mp4
注意:若是想要輸入subtitle文件的絕對路徑,須要這樣寫:
ffmpeg.exe -i 「C:\Users\Engine - Turboshaft.mp4」 -vf subtitles=‘D:\input.ass’ output.mp4
或者
ffmpeg.exe -i 「C:\Users\Engine - Turboshaft.mp4」 -vf 「subtitles=‘D:\input.ass’」 output.mp4
其中subtitle的絕對路徑用斜槓和單引號包住。
工具
相似
ffmpeg.exe -i 「C:\Turboshaft.mp4」 -filter_complex subtitles=‘D:\input.ass’ output.mp4
或者
ffmpeg.exe -i 「C:\Turboshaft.mp4」 -filter_complex 「subtitles=‘D:\input.ass’」 output.mp4
提取字幕
提取字幕流
1)原始文本輸出
ffmpeg -i output.mkv -an -vn -bsf:s mov2textsub -scodec copy -f rawvideo sub.txt
ffmpeg -i output.mkv -an -vn -c:s copy -f rawvideo -map 0:s sub2.txt
2)ass格式輸出
ffmpeg -i output.mkv -an -vn -scodec copy sub3.ass
視頻剪切
ffmpeg -ss 00:00:15 -t 00:00:05 -i input.mp4 -vcodec copy -acodec copy output.mp4
// -ss表示開始切割的時間,-t表示要切多少。上面就是從15秒開始,切5秒鐘出來
碼率控制
ffmpeg -i input.mp4 -b:v 2000k output.mp4
ffmpeg -i input.mp4 -b:v 2000k -bufsize 2000 output.mp4 // -bufsize 緩衝區
ffmpeg -i input.mp4 -b:v 2000k -bufsize 2000k -maxrate 2500k -minrate 1500k output.mp4 // 最大最小域值
提取視頻流
ffmpeg -i input.mp4 -vcodec copy -an -f m4v output.h264
視頻縮放
將輸入的1920x1080縮小到960x540輸出:
ui
ffmpeg -i input.mp4 -vf scale=960:540 output.mp4編碼
若是540不寫,寫成-1,即scale=960:-1, 保持原始的寬高比進行縮放.net
ffmpeg -i input.mp4 -vf scale=960:-1 output.mp4 // 保持寬高比,注意寬要能被2出盡,否則報錯
視頻旋轉
順時針旋轉畫面90度
ffmpeg -i test.mp4 -vf 「transpose=1」 out.mp4 或者
ffmpeg -i input.mp4 -vf transpose=1 output.mp4
命令行
逆時針旋轉畫面90度
ffmpeg -i test.mp4 -vf 「transpose=2」 out.mp4
順時針旋轉畫面90度再水平翻轉
ffmpeg -i test.mp4 -vf 「transpose=3」 out.mp4
逆時針旋轉畫面90度水平翻轉
ffmpeg -i test.mp4 -vf 「transpose=0」 out.mp4
水平翻轉視頻畫面
ffmpeg -i test.mp4 -vf hflip out.mp4
垂直翻轉視頻畫面
ffmpeg -i test.mp4 -vf vflip out.mp4
添加水印
在test.mp4左上角10,10的位置添加水印圖片test.png,同時在根目錄產出一個watermark.mp4的視頻
ffmpeg -i test.mp4 -i test.png -filter_complex 「overlay=10:10」 watermark.mp4
添加水印同時設置水印大小(縮放)功能命令
ffmpeg.exe -i input.mp4 -i warter.png -filter_complex 「[1:v]scale=120:120[s];[0:v][s]overlay=10:10」 out.mp4
ffmpeg -i input.mp4 -i logo.png -filter_complex overlay output.mp4
ffmpeg -i input.mp4 -i logo.png -filter_complex overlay=W-w output.mp4 // 右上角
ffmpeg -i input.mp4 -i logo.png -filter_complex overlay=0:H-h output.mp4 // 左下角
ffmpeg -i input.mp4 -i logo.png -filter_complex overlay=W-w:H-h output.mp4 // 右下角
去除水印
ffmpeg -i input.mp4 -vf delogo=1:1:144:144:1 output.mp4 // -vf delogo=x:y:w:h[:show], x:y離左上角座標,設0報錯,w:h logo寬高,show設置一個綠色的矩形,默認0
添加字幕同時添加水印
一次轉換完成,字幕水印同時添加。(水印提早製做好大小,沒有縮放)
ffmpeg -i input.mp4 -i warter.png -filter_complex 「[0:v][1:v]overlay[logo];[logo]subtitles=av1.srt[sub]」 -map [sub] -map 0:a output.mp4
若是想添加水印時設置水印大小
ffmpeg -i input.mp4 -i warter.png -filter_complex 「[1:v]scale=120:120[simg];[0:v][simg]overlay[logo];[logo]subtitles=av1.srt[sub]」 -map [sub] -map 0:a output.mp4
解析
[1:v]這個裏頭兩個參數,1表示的是操做對象的編號。在本例中0就是原始視頻文件input.mp4,warter.png,後面若是還有第二張水印圖片,就是2,另外一個參數v表示操做對象裏的視頻信息(video的縮寫)。 simg是表示通過第一層過濾器後的對象名字(自定義)。分號前面第一句[1:v]scale=120:120[simg],表示對輸入參數中編號爲1的圖片(warter.png)進行大小縮放,設置爲120x120大小,輸出圖片名字爲simg。第二句[0:v][simg]overlay[logo]表示把simg和原始輸入視頻編號爲0,視頻,進行疊加,輸出視頻名字爲logo。注意後一個對象疊加到前一個上,後一個對象在上層, 即simg在上。
另外:
水印移動:能夠添加參數overlay=0+t*10:0,表示水印隨着時間移動x軸座標。
特定時間顯示水印:overlay=x=‘if(gte(t,2),10,NAN)’:0;
註解: if(條件,條件爲true時的值,條件爲false時的值), 表達式gte(x,y)。若是x大於等於y則表達式的值爲1,反之爲0。
if(gte(t,2),10,NAN)的意思就是,當時間大於等於2秒時,水印x位置爲10,反之不顯示水印。
示例:
ffmpeg -i input.mp4 -i warter.png -filter_complex 「[1:v]scale=120:120[s];[0:v][s]overlay=x=‘if(gte(t,0), 0+mod(t,5)*20, NAN)’:y=0[logo];[logo]subtitles=av1.srt[sub]」 -map [sub] -map 0:a output.mp4
顯示效果見下圖:
截取視頻圖像
ffmpeg -i input.mp4 -r 1 -q:v 2 -f image2 pic-%03d.jpeg // -r 每一秒幾幀,-q:v 存儲jpeg的圖像質量,通常2是高質量
ffmpeg -i input.mp4 -ss 00:00:20 -t 10 -r 1 -q:v 2 -f image2 pic-%03d.jpeg //抽取10幀圖片
隨便挑一張,轉爲YUV:
ffmpeg -i pic-001.jpeg -s 1440x1440 -pix_fmt yuv420p xxx3.yuv
圖片序列與視頻轉換
ffmpeg -i 001.mp3 -i example.%d.jpg -s 1024x768 -vcodec mpeg4 rebuild.mp4 // 把圖片序列幀和音頻文件利用mpeg4編碼方式合成視頻文件darkdoor.avi
ffmpeg -i input.mp4 example.%d.jpg // 把視頻文件導出成序列幀
ffmpeg 控制視頻profile
ffmpeg -i input.mp4 -profile:v baseline -level 3.0 output.mp4
ffmpeg -i input.mp4 -profile:v main -level 4.2 output.mp4
ffmpeg -i input.mp4 -profile:v high -level 5.1 output.mp4
若是ffmpeg編譯時加了external的libx264,能夠這樣寫:
ffmpeg -i input.mp4 -c:v libx264 -x264-params 「profile=high:level=3.0」 output.mp4
從壓縮比例來講,baseline< main < high,對於帶寬比較侷限的在線視頻,可能會選擇high,但有些時候,作個小視頻,但願全部的設備基本都能解碼(有些低端設備或早期的設備只能解碼baseline),那就犧牲文件大小吧,用baseline。本身取捨吧!
解碼H.264/H.265碼流(解碼)
ffmpeg -i input_file.264 -vframes 100 output.yuv
ffmpeg -i input_file.265 -vframes 100 output.yuv
轉換成H264碼流(編碼)
ffmpeg -i input_file.yuv -vcodec h264 output_file.264
其中 -i 表示輸入文件, -vcodec h264 表示視頻編解碼方式爲 H264。
編碼質量
ffmpeg -i input -c:v libx264 -profile:v main -preset:v fast -level 3.1 -x264opts crf=18
編碼效率和視頻質量的取捨:強行配置biterate,或者強行配置profile/level,還有2個參數能夠控制編碼效率。
一個是preset,一個是crf。preset也挺粗暴,基本原則就是,若是你以爲編碼太快或太慢了,想改改,能夠用profile。
preset有以下參數可用:
ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow and placebo.
編碼加快,意味着信息丟失越嚴重,輸出圖像質量越差。
CRF(Constant Rate Factor): 範圍 0-51: 0是編碼毫無丟失信息, 23 is 默認, 51 是最差的狀況。相對合理的區間是18-28.
值越大,壓縮效率越高,但也意味着信息丟失越嚴重,輸出圖像質量越差
轉換成H265碼流(編碼)
ffmpeg -i input_file -vcode hevc output_file
其中 -i 表示輸入文件, -vcodec hevc 表示視頻編解碼方式爲 H265,注意ffmpeg 中名稱爲 hevc,不是H265!
設置輸出視頻的分辨率
ffmpeg -i input_file -vcodec h264 -s 1280x720 output_file
其中 -s 表示分辨率。
設置輸出文件的音視頻比特率
ffmpeg -i input_file -vcodec h264 -b:v 10M -b:a 128K output_file
其中 -b:v 10M 表示視頻碼率爲10Mbps, -b:a 128K 表示音頻碼率爲 128Kbps,注意FFMPEG對於碼率控制,有時候不太準確,跟輸入源有必定關係。
剪切某段視頻
ffmpeg -ss 0:05:00 -t 0:1:30 -i input_file -vcodec copy -acodec copy output_file
ffmpeg -ss 300 -t 90 -i input_file -vcodec copy -acodec copy output_file
上面的兩種方式等價,時間格式支持 HH:MM:SS或者秒數。 -ss 開始時間, -t 持續時間, -vcodec copy 保持原視頻編碼方式, -acodec copy 保持原音頻編碼方式。
注意:-vcodec copy與-c:v以及-codec:v 這三種寫法的功能是同樣的,具體可參考:https://lists.ffmpeg.org/pipermail/ffmpeg-user/2017-February/035335.html
分離音視頻流保存爲不一樣文件
ffmpeg -i input_file -vcodec copy -an output_file_video //提取視頻流
ffmpeg -i input_file -acodec copy -vn output_file_audio //提取音頻流
其中 -an 表示不處理音頻, -vn 表示不處理視頻。
合併多個音視頻文件爲一個文件
ffmpeg –i video_file –i audio_file –vcodec copy –acodec copy output_file
提取視頻圖像保存爲圖片文件(將視頻分解爲單幅圖片)
ffmpeg –i input_file –r 1 –f image2 image-%3d.jpeg //提取圖片
其中 -r 表示提取圖像的頻率,-f 表示輸出格式, %3d 表示文件命名方式(也即生成的圖片名爲 image-001.jpeg, image-002.jpeg, …, image-999.jpeg)。
轉換成YUV原始文件
ffmpeg -i input_file -vcodec rawvideo -an output_file_yuv
ffmpeg -i input_file -vcodec rawvideo -an -pix_fmt yuv420p10le output_file.yuv
輸出10bit yuv420p yuv文件
YUV序列轉出AVI文件
ffmpeg –s w*h –pix_fmt yuv420p –i input.yuv –vcodec mpeg4 output.avi
控制關鍵幀間隔和B幀
ffmpeg –i input_file –vcodec h264 –bf 0 –g 25 –s 854x480 –an –f m4v output_file
其中-bf 控制B幀數目,-g 控制關鍵幀間隔, -f 控制文件格式(format,注意與codec的區別)。
多個視頻文件拼接
首先建立一個須要拼接的文件,例如 concat.txt,內容以下:
file ‘orig_20160616113303_0.avi’
file ‘orig_20160616113303_1.avi’
而後執行以下命令
ffmpeg -f concat -i concat.txt -c copy orig_20160616113303_merge.avi
YUV處理相關命令(持續更新ing)
查看ffmpeg支持哪些yuv格式的轉換
ffmpeg -pix_fmts
ffmpeg轉換yuv格式命令
ffmpeg -pix_fmt yuv420p -s 176x144 -i carphone_qcif.yuv -pix_fmt nv12 carphone_qcif_nv12.yuv
ffmpeg命令行yuv縮放命令
ffmpeg -s:v 1920x1080 -r 25 -i input.yuv -vf scale=960:540 -c:v rawvideo -pix_fmt yuv420p out.yuv
ffmpeg解碼碼流命令
ffmpeg -i 720P.264 -s 1280x720 -pix_fmt yuv422p 720P-out.yuv
ffmpeg -i 720P.264 -vframes 300 720P-out.yuv //指定解碼的幀數
簡化版:ffmpeg -i 720P.264 720P-out.yuv
注意不一樣選項的順序,-s選項放在-i後面,指定不一樣分辨率時,在解碼後進行了縮放。
ffmpeg yuv轉avi
ffmpeg -s wxh -pix_fmt yuv420p -i input.yuv -vcodec mpeg4 output.avi
ffmpeg -s wxh -pix_fmt yuv420p -i input.yuv -vcodec h264 output.avi
ffmpeg 裸碼流轉avi
ffmpeg -f h264 -i source.264 -c:v libx264 -an dest.avi
Use -c:v copy instead to copy the source stream without re-encoding
ffmpeg avi轉裸碼流
提取裸碼流
ffmpeg.exe -i BQSquare_416x240_37.avi -f rawvideo -vcodec copy xx.264
提取若干幀數碼流
ffmpeg.exe -i BQSquare_416x240_37.avi -f rawvideo -vcodec copy -vframes 100 xx.264
對於提取特定的幀,須要用特殊的方法:假設提取260幀,幀率是26, 則可用-ss 10.0 其中10.0=260/26
YUV裁剪功能
Extract some YUV frames from large yuv File
從第0幀開始截取30幀:
ffmpeg -s widthxheight -i input.yuv -c:v rawvideo -filter:v 「select=‘gt(n, -1)’」 -vframes 30 out30.yuv
或者:
ffmpeg -s widthxheight -i input.yuv -c:v rawvideo -filter:v 「select=‘between(n, 0, 29)’」 out30.yuv
或者:
ffmpeg -r 1 -ss 0 -i input.yuv -vcodec copy -vframes 30 output.yuv
中間截取幀(截取從第30幀到第100幀):
ffmpeg -s widthxheight -i input.yuv -c:v rawvideo -filter:v 「select=‘between(n, 30, 100)’」 out.yuv
根據時間截取幀(截取從第10秒到第20秒 ):
//Select only frames contained in the 10-20 time interval:
//select=between(t,10,20)
ffmpeg -s widthxheight -i input.yuv -c:v rawvideo -filter:v 「select=‘between(t, 10, 20)’」 out.yuv
參考自: https://blog.csdn.net/listener51/article/details/82025541
提取YUV數據
ffmpeg.exe -ss 00:02:45 -t 00:00:18 -i 8k.mp4 -an -c:v rawvideo -pix_fmt yuv420p 8k.yuv
ffmpeg -i killer.mp4 -an -c:v rawvideo -pix_fmt yuv420p ouy.yuv
參數說明
-c:v rawvideo 指定將視頻轉成原始數據
-pixel_format yuv420p 指定轉換格式爲yuv420p
從日誌中能夠看出,像素格式:yuv420p,分辨率:608x368,使用ffplay播放一下。須要指定分辨率,這個時候不須要指定視頻格式了,ffplay默認像素格式格式就是yuv420p。
ffplay -s 608x368 ouy.yuv
提取PCM數據
ffmpeg -i killer.mp4 -vn -ar 44100 -ac 2 -f s16le out.pcm
參數說明:
-ar:指定音頻採樣率 44100 即44.1KHz
-ac:指定音頻聲道channel 2 爲雙聲道
-f:數據存儲格式 s:Signed 有符號的, 16: 每個數值用16位表示, l: little, e: end
使用ffplay播放
ffplay -ar 44100 -ac 2 -f s16le out.pcm
FFmpeg 推流:flv直播流
ffmpeg -re -i 1.mp4 -vcodec copy -acodec copy -b:v 800k -b:a 32k -f flv rtmp://localhost/live
- localhost, 本機,能夠設置ip地址或者域名
修改視頻播放速度
ffmpeg -i input.mp4 -vf 「setpts=0.5*PTS」 output.mp4
該命令調整視頻2倍速播放,而後輸出。
$ ffmpeg -i input.mp4 -vf 「setpts=4.0*PTS」 output.mp4
減少視頻播放速度。 乘以一個參數大於1的數。
FFMPEG經常使用參數說明
主要參數:
-i 設定輸入流
-f 設定輸出格式
-ss 開始時間
-formats 查看全部支持的容器格式
-codecs 查看全部編解碼器
-filters 查看全部可用的filter
-pix_fmts 查看全部支持的圖片格式
-sample_fmts 查看全部支持的像素格式
-i input_file 查看媒體文件input_file的信息(注意後面再也不接其它參數,例如: ffmpeg -i test.mp4,查看 test.mp4視頻信息)
視頻參數:
-b 設定視頻流量,默認爲200Kbit/s
-r 設定幀速率,默認爲25
-s 設定畫面的寬與高
-aspect 設定畫面的比例
-vn 不處理視頻
-vcodec 設定視頻編解碼器,未設定時則使用與輸入流相同的編解碼器
音頻參數:
-ar 設定採樣率
-ac 設定聲音的Channel數
-acodec 設定聲音編解碼器,未設定時則使用與輸入流相同的編解碼器
-an 不處理音頻
ffmpeg 幫助
Getting help: 幫助
-h – print basic options
-h long – print more options
-h full – print all options (including all format and codec specific options, very long)
-h type=name – print all options for the named decoder/encoder/demuxer/muxer/filter/bsf
See man ffmpeg for detailed description of the options.
Print help / information / capabilities: -L show 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 -filter_complex_threads number of threads for -filter_complex -stats print progress report during encoding -max_error_rate maximum error rate ratio of errors (0.0: no errors, 1.0: 100% errors) above which ffmpeg returns an error instead of success. -bits_per_raw_sample number set the number of bits per raw sample -vol volume change audio volume (256=normal) 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 -timestamp time set the recording timestamp ('now' to set the current time) -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) -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) -timecode hh:mm:ss[:;.]ff set initial TimeCode value. -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) -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) -stag fourcc/tag force subtitle tag/fourcc -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
小結
ffmpeg功能強大,參數配置衆多,最好的方式查看它的命令行幫助文檔,各個參數都有詳細的說明,惟一的遺憾就是沒有例子,對於初入媒體領域的人來講,門檻比較高。不明白的參數,能夠多試試,再接合MediaInfo工具查看具體信息,經過VLC或者FFMPEG自帶的 ffplay播放器播放,就容易理解了。
文檔參考
https://blog.csdn.net/tj297202234/article/details/90484154
官網翻譯文檔:https://www.bookstack.cn/read/other-doc-cn-ffmpeg/ffmpeg-doc-cn-40.md
官方ffmpeg命令行參考文檔:http://ffmpeg.org/ffmpeg.html
參考網址:https://stackoverflow.com/questions/33108985/ffmpeg-264-to-avi
更多ffmpeg命令使用可參考:
http://processors.wiki.ti.com/index.php/Open_Source_Video_Processing_Tools_-_MPlayer,_FFMpeg,_AviSynth,_MKVToolnix,_MP4Box#Downloads
http://ffmpeg.org/ffmpeg-filters.html#aselect_002c-select
https://lists.ffmpeg.org/pipermail/ffmpeg-user/2017-February/035335.html
https://www.bookstack.cn/read/other-doc-cn-ffmpeg/ffmpeg-doc-cn-40.md
https://blog.csdn.net/SoaringLee_fighting/article/details/56015567
https://www.suninf.net/2017/02/ffmpeg-command-usage.html
https://blog.csdn.net/soaringlee_fighting/article/details/80571673
https://www.ostechnix.com/20-ffmpeg-commands-beginners/
https://www.ostechnix.com/create-video-pdf-files-linux/
來源: 影音視頻技術 文章做者: YUV420.COM 文章連接: https://www.yuv420.com/2019/12/23/ffmpeg-chang-yong-ming-ling-hui-zong/ 本文章著做權歸做者全部,任何形式的轉載都請註明出處。