I have two video that I'm working through filter_complex.

First video is 1280x720 [SAR 1:1 DAR 16:9] and the second video is 1280x720 [SAR 203:640 DAR 203:360]

I would like to merge the files with filter_complex keeping original sar and dar both each on final output. Please notice I'm using inputs dynamically, so I need a command that keeps sar and dar regardless of the source files.

I tried using the command


But nothing, second video not preserve original aspect (1280x720 [SAR 203:640 DAR 203:360]) and the output is like first video (1280x720 [SAR 1:1 DAR 16:9]). I would like to keep the original parameters also on second video that seems to become SAR 1:1 DAR 16:9.

  • What's the codec?
    – Gyan
    Commented Nov 29, 2018 at 6:06
  • @Gyan both h264 (High) yuv420p at 25 fps
    – Sauron
    Commented Nov 29, 2018 at 9:26

1 Answer 1


Problem was in the source file (second input) that did not respect the correct scales and pads. I solved thanks to this answer https://superuser.com/a/991412. Credits to @LordNeckbeard

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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