这是我的命令
subprocess.call(["wine","MP4Box.exe","-add",outputdir+"tmp.m4a","-itags",'name=a',"-itags", "artist=b","-itags", "album_artist=c","-itags", "album=d","-itags", "created=2034","-itags", "genre=e","-new", "tmp23.m4a"])
在输出文件中,我只能获得流派,子流程只发送最后一个"-itags"值。不管怎样,让这个工作?
感谢
outputdir = "output"
subprocess.call([
"wine", "MP4Box.exe", "-add", outputdir + "/tmp.m4a",
"-itags", "name={name}:artist={artist}:album_artist={album_artist}:album={album}:created={created}:genre={genre}".format(
name="a",
artist="b",
album_artist="c",
album="d",
created=2034,
genre="e"
),
"-new", "tmp23.m4a"
])
来自文档。
请注意,标记不能包含:
字符,因为这将中断命令。
根据他们的文档,参数应该像这样传递
-itags标签1[:标签2]
所以你可以试着这样做
subprocess.call(["wine","MP4Box.exe","-add",outputdir+"tmp.m4a","-itags","name=a:artist=b" ...