嗨,我正在尝试从我的python脚本运行mkvmerge。 我使用子流程模块来实现这一点
mkvmerge_args = [
"mkvmerge",
"test.h264",
'-o',
"test2.h264",
"--timecodes 0:timestamp.pts"
]
returncode = subprocess.call(mkvmerge_args)
这是我正在编写的代码。问题是最后一个参数"--timecodes 0:timestamp.pts"
我听到一个错误说
Error: The file '--timecodes 0:timestamp.pts' could not be opened for reading: open file error.
我想知道的是为什么子进程认为最后一个参数是一个文件
0:timestamp.pts需要在自己的行上
相关问题 更多 >
编程相关推荐