我正在python中尝试FFmpeg的2-pass技术,但找不到任何python教程来完成此任务。 是否没有办法代替使用子流程?如果有任何说明性的例子,请提供给我
注意:
我曾在脚本中尝试过这样的2遍:
input_fit = {self.video_in:None}
output = {None:"-c:v h264 -b:v 260k -pass 1 -an -f mp4 NUL && ^",
self.video_out:("ffmpeg -i \"%s\" -c:v h264 -b:v 260k -pass 2 " %self.video_in)}
## video_out IS The Name of The output File ##
model = FFmpeg(inputs = input_fit, outputs= output)
print(model.cmd)
这引起了一个错误
:: FFRuntimeError: exited with status 1,
但是,当我使用生成的命令并在ffmpeg cmd上运行它时,它会毫无错误地运行并完美地生成视频。 有人能告诉我问题出在哪里吗
目前没有回答
相关问题 更多 >
编程相关推荐