如何添加水印并设置输出比特率和视频大小,还使用ffmpeg进行批量处理?


0

我能够使用多个视频添加水印

for %%a in ("*.ts") do ffmpeg -i "%%a" -i  logoCopy.png -filter_complex "overlay=main_w-overlay_w-40:40" "Logo\%%~na.mp4"

现在我试图将输出设置为1920x1080,将比特率设置为30000并同时添加水印。

请有人帮忙吗

Answers:


0

语法是

for %%a in ("*.ts") do ffmpeg -i "%%a" -i logoCopy.png -filter_complex "overlay=main_w-overlay_w-40:40,scale=hd1080,setsar=1" -b:v 30M "Logo\%%~na.mp4"

谢谢你的答案很好,但如果我想将输出大小改为小于1920x1080,我应该把它放在哪里?
Bassel999

scale=width:height
Gyan
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.