Closed Paper-Folding closed 7 months ago
It is if you want to add a extra output argument, or extra input argument. The position of the arguments matter to ffmpeg.
addOutput
returns a FFmpegOutputBuilder
instead of a FFmpegBuilder
, which is how the arguments get attached to that specific output, instead of to the input.
If you look at the generated command for both, you'll see where vframes ends up.
The question I found that
.addExtraArgs
call have to be added after.addOutput
call, I'm unsure if it is a bug or intentional, so I submit the question.Example ffmpeg command
What you have tried This works:
While this does not work (swapped
.addExtraArgs
and.addOutput
call):