【发布时间】:2018-05-20 02:54:01
【问题描述】:
我运行一个批处理脚本:
FOR /F "tokens=1" %%F IN (mylist.txt) do C:\VideoConverter\Applications\ffmpeg.exe ^
-f image2 -loop 1 -framerate 0.1 -i "%%~F" -i "%~dpn1.mp3" -codec:v libx264 ^
-s 1920x1080 -acodec copy -strict experimental -movflags faststart -t 00:10:10.00 ^
-f mp4 "%~dpn1.mp4"
在我的文件夹中有以下文件:
file001.mp3
file002.mp3
file003.mp3
mylist.txt 包含:
pic001.jpg
pic002.jpg
pic003.jpg
目前,该脚本为文件夹中的每个 mp3 创建了 3 个具有 3 个不同背景图像的视频。这是错误的。
我只想制作这三个视频。
video 1 = file001.mp3 + pic001.jpg (line1)
video 2 = file002.mp3 + pic002.jpg (line2)
video 3 = file003.mp3 + pic003.jpg (line3)
有人可以帮助我使用 for /f 命令吗?感谢您的帮助。
【问题讨论】:
-
请按照与上一个代码块的格式相同的方式格式化多行代码和数据。
标签: windows batch-file ffmpeg command