kkroening / ffmpeg-python

Python bindings for FFmpeg - with complex filtering support
Apache License 2.0
9.99k stars 886 forks source link

Support for input/output args that don't take a value (like `-vn`, `-sn`, etc.) #554

Open pranaygp opened 3 years ago

pranaygp commented 3 years ago

For example -sn, -vn, -an or -dn

This is a valid ffmpeg command ffmpeg -i in.mp4 -sn no-subs.mp4

I tried ffmpeg.input("in.mp4").output("no-subs.mp4", sn=True) but that doesn't work. I just get

Unable to find a suitable output format for 'True'

Troffifi commented 3 years ago

You can try with sn=None instead of sn=True. This is how I did it for vn.