~~~
//右下角
ffmpeg -i input.mp4 -i watermark1.png -filter_complex "overlay=main_w-overlay_w-10 : main_h-overlay_h-150
:enable='between(t,5,600)'" -y -b 10024k -acodec copy -f mp4 temp.mp4
~~~
~~~
//左下角
ffmpeg -i temp.mp4 -i watermark2.png -filter_complex "overlay=10:main_h-overlay_h-150
:enable='between(t,11,72)'" -y -b 10024k -acodec copy -f mp4 output.mp4
~~~
~~~
//完整路徑
ffmpeg -i "C:\input.mp4" -i "C:\watermark1.png" -filter_complex "overlay = main_w - overlay_w - 10 : main_h - overlay_h - 150 :enable = 'between(t,5,600)'" -y -b 10024k -acodec copy -f mp4 "C:\output.mp4"
~~~
~~~
ffmpeg -i "C:\input.mp4" -i "C:\watermark1.png" -filter_complex "overlay = main_w - overlay_w - 10 : main_h - overlay_h - 150 :enable = 'between(t,5,600)'" -y -b 10024k -acodec copy -f mp4 "C:\output.mp4"
~~~
說明
~~~
左上角 10:10
右上角 main_w-overlay_w-10:10
左下角 10:main_h-overlay_h-10
右下角 main_w-overlay_w-10 : main_h-overlay_h-10
~~~
- 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 多個音頻合并 截取 拆分