VideoHelp Forum
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Hi all,

    I'm trying to combine two MKVs ripped from a DVD. One is in a 4:3 type aspect ratio, and the other is in 16:9, so I wanted to add black bars to the 4:3 video and then combine it using MKVToolnix.

    However, I can't figure out how to do this and have the file resolution line up. My initial attempt was to run
    Code:
    ffmpeg -i STEEN_DISC1.mkv -filter:v "pad=ih*16/9:ih:(ow-iw)/2:(oh-ih)/2" -c:a copy STEEN_DISC1.169.mkv
    , this however told me "The width of the two tracks is different: 720 and 852".

    It turns out that both files have the same resolution, but different display resolutions, from the info tool:

    File 1:
    Pixel width: 720
    Pixel height: 480
    Display width: 640
    Display height: 480

    File 2:
    Pixel width: 720
    Pixel height: 480
    Display width: 853
    Display height: 480

    How can I add black bars to file 1 in a way that will allow me to combine it with file 2?

    Thanks!
    Quote Quote  
  2. You can mux both into a ts container and concat then the two ts chunks.
    Quote Quote  
  3. File 1
    resize from 720x480 to 538x480, pad 91 to left and right, flag as 16:9
    Quote Quote  
  4. Hey, thanks for the nudge in the right direction!

    The command that worked for me in the end was:

    Code:
    ffmpeg -i STEEN_DISC1.mkv -map 0 -filter:v "scale=538:480,pad=720:ih:(ow-iw)/2:(oh-ih)/2" -c:a copy -c:v mpeg2video -qscale:v 0 STEEN_DISC1.169.mkv
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!