VideoHelp Forum




+ Reply to Thread
Results 1 to 7 of 7
  1. Hi,

    I am taking several mp4 clips and trying to merge them into one mp4 using Losslesscut. However, a handful of the files have slightly different metadata and won't merge together. Is there a way to match the metadata between files?

    Below is a copy from Losslesscut of the mismatches. I'm unsure if this occurs because the files are comprised of 2 two tracks (audio/video) and they are reversed between the two files? Any help would be greatly appreciated.

    Mismatches detected
    Track 1 mismatch: codec_name aac != h264
    Track 1 mismatch: width none != 1920
    Track 1 mismatch: height none != 1080
    Track 1 mismatch: pix_fmt none != yuv420p
    Track 1 mismatch: level none != 40
    Track 1 mismatch: profile LC != High
    Track 1 mismatch: sample_fmt fltp != none
    Track 1 mismatch: r_frame_rate 0/0 != 30/1
    Track 1 mismatch: time_base 1/44100 != 1/90000
    Track 2 mismatch: codec_name h264 != aac
    Track 2 mismatch: width 1920 != none
    Track 2 mismatch: height 1080 != none
    Track 2 mismatch: pix_fmt yuv420p != none
    Track 2 mismatch: level 40 != none
    Track 2 mismatch: profile High != LC
    Track 2 mismatch: sample_fmt none != fltp
    Track 2 mismatch: r_frame_rate 30000/1001 != 0/0
    Track 2 mismatch: time_base 1/90000 != 1/44100

    Thanks in advance
    Quote Quote  
  2. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Every time your issue has been posted in the past, the answer proved elusive and the files had to be re-encoded in the end
    to achieve the join.
    If you like, you can post some samples and somebody will take a look
    Quote Quote  
  3. It looks like the stream order in one/more of the mp4 files is different (e.g. video=1, audio=0, instead of video=0, audio=1).
    Quote Quote  
  4. @ awbowden
    you could use LosslessCut to re-order the tracks, or clever FFmpeg-GUI.
    Quote Quote  
  5. Originally Posted by davexnet View Post
    Every time your issue has been posted in the past, the answer proved elusive and the files had to be re-encoded in the end
    to achieve the join.
    If you like, you can post some samples and somebody will take a look
    Thanks for the reply. Can handbrake be used to re-encode?

    If I post a couple mismatched clips someone may see if the can merge them?
    Last edited by awbowden; 28th Feb 2025 at 08:04.
    Quote Quote  
  6. Originally Posted by videoAI View Post
    @ awbowden
    you could use LosslessCut to re-order the tracks, or clever FFmpeg-GUI.
    I'm not sure how to re-order the tracks. I removed the audio track from the clip but the videos still would merge. Similar mismatch warnings occurred.
    Quote Quote  
  7. I'm not very savvy at any of this...

    I used handbrake to batch re-encode my clips. Then merged them in Losslesscut. It did pop up a few errors still but only about framerate being slightly different. The merged video works! Thanks for the assistance folks!
    Quote Quote  



Similar Threads

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