VideoHelp Forum
+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. hello

    is there any command in ffmpeg i want to join 2 different .mp4 video Resolution / Video - x264 @ KBPS videos
    example

    clip 1.mp4 is x264 @ 4500 KBPS and Resolution - 1280 x 720
    and
    clip2.mp4 is Video - x264 @ 1400 KBPS and Resolution - 704 x 400

    can we still join them in 1 clip
    both clip quality should remain same but video dont go out of sync

    thanks
    Quote Quote  
  2. It's possible to do that but most players will choke at the resolution change. First make a text file with a list of files to be concatenated:

    list.txt:
    Code:
    file 'clip1.mp4'  
    file 'clip2.mp4'
    Then run:

    Code:
    ffmpeg.exe -y -safe 0 -f concat -i list.txt -c copy output.ts
    TS is safest for the output.
    Quote Quote  
  3. Originally Posted by jagabo View Post
    It's possible to do that but most players will choke at the resolution change. First make a text file with a list of files to be concatenated:

    list.txt:
    Code:
    file 'clip1.mp4'  
    file 'clip2.mp4'
    Then run:

    Code:
    ffmpeg.exe -y -safe 0 -f concat -i list.txt -c copy output.ts
    TS is safest for the output.
    i tried file 'clip1.mp4' 720p works fine but file 'clip2.mp4' 480p video comesout bad messed up quality green lines in video unwatchable
    Last edited by grabyea; 11th Oct 2021 at 06:43.
    Quote Quote  
  4. I told you so.

    Originally Posted by jagabo View Post
    but most players will choke at the resolution change
    Try a different player. Did you use TS or MP4? TS is safer -- more players can handle the resolution change in TS.
    Quote Quote  
  5. Does it really have to be "a single file"? Usually such stuff is done using playlists, e.g. m3u...
    Quote Quote  
  6. Originally Posted by emcodem View Post
    Does it really have to be "a single file"? Usually such stuff is done using playlists, e.g. m3u...
    need more details
    Quote Quote  
  7. Originally Posted by grabyea View Post
    Originally Posted by emcodem View Post
    Does it really have to be "a single file"? Usually such stuff is done using playlists, e.g. m3u...
    need more details
    https://en.wikipedia.org/wiki/M3U

    It's just a text file. It can have as little as name two videos (if in the same folder as the videos) or full paths to the two videos (if in a different folder than the videos).

    video.m3u in same folder as the two videos:
    Code:
    video1.mp4
    video2.mp4
    or

    video.m3u in a different folder:
    Code:
    d:\videos\video1.mp4
    d:\videos\video2.mp4
    Then you "play" the m3u file with a media player. Pretty much all players in Windows support this. The files don't have to have the same properties. They can be different frame sizes, frame rates, codecs, containers, etc. As long as the player can play the videos it will play them all. Playback may not be seamless though.
    Quote Quote  



Similar Threads

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