0

How is it possible to dynamically evaluate the s (output image size) parameter of ffmpeg zoompan filter on each frame?

The parameter expectes its value in "WxH" format i.e. "1920x1080". How to substitute an expression that would update the size as a function of, say, frame number?

Couldn't find a way to concatenate strings.

For a single number parameter I can do smth like y='(out_h-in_h)/2', but how to take two expressions and join them with an "x" string?

1

The zoompan size parameter cannot be animated. It has to be a fixed numeral size of the form WxH, or a size label like hd1080.

  • Thank You again, Gyan! I was hoping to achieve less than 100% zoom without padding by tweaking output size ) – Serge Mar 24 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.