命令行
~~~
ffmpeg -i input.mp4 -r 10 -b:a 32k output.mp4
~~~
介紹
有的視頻,如一些視頻學習教程通常畫面都是不大變化的,和變動速度快的打斗視頻所需要的幀數完全不同,音質也不需要很高。可以降低fps和音頻碼率的方法大大壓縮文件大小,而清晰度不變!
通常轉成.mp4,采用H.264視頻壓縮算法和AAC音頻壓縮算法,視頻幀率10fps,音頻碼率32k
Additional options that might be worth considering is setting the Constant Rate Factor, which lowers the average bit rate, but retains better quality. Vary the CRF between around 18 and 24 — the lower, the higher the bitrate.
~~~
ffmpeg -i input.mp4 -vcodec libx264 -crf 20 output.mp4
~~~
- ffmpeg視頻截圖
- FFmpeg壓縮MP4視頻
- ffmpeg獲取視頻的信息
- ffmpeg將圖片序列合成視頻
- ffmpeg將視頻分解成圖片序列
- ffmpeg截取一張352x240尺寸大小的,格式為jpg的圖片:
- 把視頻的前30幀轉換成一個Animated Gif
- 在視頻的第8.01秒處截取 352*240 的縮略圖
- ffmpeg 將視頻和圖片互轉化
- ffmpeg圖片加水印
- ffmpeg視頻加入ASS字幕
- ffmpeg視頻加入srt字幕
- ffmpeg MP4剪切
- ffmpeg MP4合并
- 常用命令
- ffmpeg MP4 合成或替換 新的背景音樂
- ffmpge srt與ass字幕轉換
- ffmpeg MP4與TS轉換
- ffmpeg 多個音頻合并 截取 拆分