ffmpy3
ffmpy3 copied to clipboard
when I use the follew command, The program reported an error
inputs = OrderedDict([(outvideo, None), (outvoice, None)])
outputs = {output, '-c copy -map 0:v:0 -map 1:a:0'}
ff = ffmpy3.FFmpeg(
inputs=inputs,
outputs=outputs
)
print(ff.cmd)
ff.run()
Traceback (most recent call last):
File "ts.py", line 211, in
AttributeError: 'set' object has no attribute 'items'
your using a set
not a dict
. (the tags have links for more info)
outputs = {output, '-c copy -map 0:v:0 -map 1:a:0'}
should be
outputs = {"output": "-c copy -map 0:v:0 -map 1:a:0"}
also this
inputs = OrderedDict([(outvideo, None), (outvoice, None)])
could be
inputs = {outvideo: None, outvoice: None}