Answers.Body: <p>Problem was in the source file (second input) that did not respect the correct scales and pads. I solved thanks to this answer <a href="https://superuser.com/a/991412">https://superuser.com/a/991412</a>. Credits to @LordNeckbeard</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-12-03T09:52:47.580Z
Answers.LastActivityDate: 2018-12-03T09:52:47.580Z
Answers.UserDisplayName: Sauron
Body: <p>I have two video that I'm working through filter_complex.</p>
  
  <p>First video is 1280x720 [SAR 1:1 DAR 16:9] and the second video is 1280x720 [SAR 203:640 DAR 203:360]</p>
  
  <p>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.</p>
  
  <p>I tried using the command</p>
  
  <blockquote>
    <p>setsar=1,setdar=1</p>
  </blockquote>
  
  <p>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.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-29T06:06:48.300Z
Comments.Text: What's the codec?
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-11-29T09:26:42.537Z
Comments.Text: @Gyan both h264 (High) yuv420p at 25 fps
Comments.UserDisplayName: Sauron
Tags: <ffmpeg><aspect>
Title: FFmpeg keep different sar and dar in multiple videos
UserDisplayName: Sauron
ThreadText: # FFmpeg keep different sar and dar in multiple videos
  
  (Asked by: username_0 on 2018-11-28)
  
  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
  
  > setsar=1,setdar=1
  
  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.
  
  **Tags:** ffmpeg, aspect
  
  > **Comments:**
  > **username_1**: What's the codec?  
  > **username_0**: @username_1 both h264 (High) yuv420p at 25 fps  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-12-03. Score: 0
  
  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
  
  
  ---
  
  