bramp / ffmpeg-cli-wrapper

Java wrapper around the FFmpeg command line tool
BSD 2-Clause "Simplified" License
1.67k stars 412 forks source link

How can i Pad Video using this wrapper. #121

Closed MachineIntelligence6 closed 2 weeks ago

MachineIntelligence6 commented 7 years ago

Hi

How can i Pad Video using this wrapper. the ffmpeg command is:

ffmpeg -i <input-file> -filter:v "pad=width=<width>:height=<height>:x=<x>:y=<y>" <output-file>

Thanks

bramp commented 7 years ago

We don't have a -filter:v flag support right now. We do have setComplexVideoFilter(), which would most likely do what you want.

However, you could also use addExtraArgs("-filter:v", "pad=width=<width>:height=<height>:x=<x>:y=<y>").

Euklios commented 2 weeks ago

In addition to addExtraArgs, setVideoFilter has been introduced at some point I'll close this, as the question seems to be answered. Feel free to re-open if this is not the case.