ffmpeg-python
ffmpeg-python copied to clipboard
Can't pass value-less options?
Some ffmpeg options don't take any values. In this example '-an' (it's the disable audio option). So how can we pass them on?
with: input_stream = ffmpeg.input('input.mp4')
I tried:
output_stream = ffmpeg.output(input_stream, 'output.mp4', 'an')
output_stream = ffmpeg.output(input_stream, 'output.mp4', an='')
output_stream = ffmpeg.output(input_stream, 'output.mp4', **{'an': ''})
None of the 3 worked.
Try an=None.
We should probably add an example of that in the readme. And also add support for an=True, as I think that might be more intuitive.
And also add support for an=True, as I think that might be more intuitive.
Just as a note, I tried an=True just out of intuition
an=None worked though!
There is an example about this: Mono to stereo with offsets and video
There, shortest=None is used.
Maybe this could be made more explicit, otherwise the issue could be closed.
I, too, tried y=True before finding the answer here.