kkroening / ffmpeg-python

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

how to use -disposition:v:1 attached_pic #671

Open haoduck opened 2 years ago

haoduck commented 2 years ago

ffmpeg -i input.mp4 -i input.jpg -map 0 -map 1 -c copy -c:v:1 png -disposition:v:1 attached_pic output.mp4

Brothers, how can I convert this code to ffmpeg-python

bolek-render commented 1 year ago

I'm looking for answer too

wbssyk commented 4 months ago

You can do like this : ( ffmpeg .output(ffmpeg.input(video), ffmpeg.input(picture), output, **{'c': 'copy', 'c:v:1': 'png', 'disposition:v:1': 'attached_pic'}) .run(overwrite_output=True) )