kkroening / ffmpeg-python

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

Using ffmpeg-python to call global (pre -i input) #713

Open FuugoClay opened 1 year ago

FuugoClay commented 1 year ago

Hi there,

How do I call [pre input] global ffmpeg commands (with ffmpeg-python)? Because these occur after calling ffmpeg but before the -i (input), I am not sure how to do this.

tldr: I am attempting to build a fairly complex set of ffmpeg actions (which is how I found your ffmpeg wrapper) including amd/nvidia hardware encoding, HLS packaging/transcoding, muxing subtitles, etc. I am willing to sort out custom filters to be added to your growing list, as I run into them.. when I am comfortable manipulating this python method of processing ffmpeg :-)

kyrlon commented 1 year ago

Do you have a command line example to replicate? I made similar post before