FFmpeg输入问题

7al7ol

我正在尝试调整与PHP exec代码不在同一目录中的视频的大小,这是我的ffmpeg代码:

ffmpeg.exe -i ../Gotten Movies / test.mp4 -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 ../Gotten Movies / test2o.mp4
我得到的错误是: ../Gotten: Invalid data found when processing input 我认为问题是因为选择带有../的先前目录,我试图
cd Gotten电影;ffmpeg.exe -i ../Gotten Movies / test.mp4 -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 ../Gotten Movies / test2o.mp4
但这还是行不通的,谢谢,我该怎么办。

吉安

用特殊字符将引号引起来的路径总是更安全:

ffmpeg.exe -i "../Gotten Movies/test.mp4" -s hd480 -c:v libx264 -crf 23 -c:a aac -strict -2 "../Gotten Movies/test2o.mp4"

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章