ffmpeg -i "a.mov" -i "b.mp4" -filter_complex "[0:v]setsar=sar=${SAR}[a]; [1:v]setsar=sar=${SAR}[b]; [a][0:a] [b][1:a] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" -preset veryfast -crf 18 "merged.mp4"
using the above code I am able to successfully merge a.mov(1920x816) with b.mov(1920x816). However, Youtube end screens
require video to be 16:9 aspect ratio.
Thus I tried scale filter and setting SAR to 16:9
. however this leads to the output video stretching to fit the 16:9 ratio
.
How can I output a video with 16:9
ratio with the actual video with resolution 1920x816
. Essentially The remaining vertical space should just be black without stretching the 816
height video to fit the 1080
height.