用到的cmd默认设置会导致bat命令运行时出现假死情况,建议参考此文章修改设置
https://blog.csdn.net/weixin_39858881/article/details/106935616
正文开始:
源代码
ffmpeg -i 1.mp4 -lavfi "subtitles=zh.vtt:force_style='Fontsize=16,Fontname=微软雅黑,Bold=-1,Alignment=2,MarginV=27',subtitles=en.vtt:force_style='Fontsize=12,Alignment=2,MarginV=4,Bold=-1'" -c:v h264_nvenc -c:a copy -preset medium out.mp4
源自b站up:I-Iaruuu
https://www.bilibili.com/video/BV1f64y1t79n
ffmpeg -i "Barbie - Big City, Big Dreams 2020 1080p NF WEB-DL DD+5.1 H.264-cfandora.mkv" -lavfi "subtitles=2_Chinese.srt:force_style='Fontsize=16,Fontname=微软雅黑,Bold=-1,Alignment=2,MarginV=27'" -c:v h264_nvenc -c:a copy -preset slow slow_out.mp4
pause