FFMPEG使用筆記

2021-08-20 09:25:51 字數 1220 閱讀 8131

# ffmpeg使用筆記

## 簡介

$ ffprobe video_file.mp4

$ ffmpeg -i source-file.foo -ss 0 -t 600 -copy first-10-min.m4v$ ffmpeg -i source-file.foo -ss 600 -t 600 -copy second-10-min.m4v

$ ffmpeg -i source.m4v -ss 0 -t 593.3 -c copy part1.m4v$ ffmpeg -i source.m4v -ss 593.3 -t 551.64 -c copy part2.m4v

也可以將之整合一下,加個loop做成指令碼

1. 提取所有的幀,通常可用來做為所有結果的檢查

2. 只提取一幀

3. 提取從特定時間開始的3幀

4. 每秒提取一幀

5. 每5秒提取一幀

6. 提取video檔案中的所有關鍵幀

* 使用 

"select=eq(pict_type\,i)"

會使用過濾器選擇所有的關鍵幀

*-vsync vfr:

ffmpeg -i input.mp4 -c:v libx264 -crf 24 -b:v 1m -c:a aac output.mp4

這個在做最後的演示的時候會需要用到

todo:add some commands

## reference

1. 2.

3. 4.

ffmpeg使用筆記 image to video

1 常用引數 常用引數含義參考 2 丟幀問題 丟幀問題參考 3 序列影象image轉video 1080p指令碼bat set path i g set path o g ts set fmrate 1 set pix wh 1920x1080 ffmpeg f image2 start numbe...

Vim 使用筆記

set hlsearch set nohlsearch 搜尋後清除上次的加亮 nohl nohlsearch 拷貝 很有用的一句話,規定了格式選項,讓它換行不自動空格 set formatoptions tcrqn set fo r set noautoindent 再 shift insert 正...

xemacs使用筆記

xemacs使用筆記 xemacs emacs的下一代,由lucid原創 from debian參考手冊.由於不知道什麼時候刪掉了emacs的乙個重要檔案.每次都沒法安裝好.突然發現了xemacs,於是決定使用看看.本人還是菜鳥,僅供交流 我使用的ubuntu系統,所以就直接apt get inst...