• Yokemate of Keyboards
    Yokemate of Keyboards
    Papiosaur
    Posts: 2408 from 2003/4/10
    From: France
    Hi Newsense,

    normally, it's possible with FFMPEG:

    :: Create File List
    echo file file1.mp4 > mylist.txt
    echo file file2.mp4 >> mylist.txt
    echo file file3.mp4 >> mylist.txt

    :: Concatenate Files
    ffmpeg -f concat -i mylist.txt -c copy output.mp4

    [EDIT]
    If they are not exactly same (100% same codec, same resolution, same type) MP4 files, then you have to trans-code them into intermediate streams at first:

    ffmpeg -i myfile1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp1.ts
    ffmpeg -i myfile2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts temp2.ts
    // now join
    ffmpeg -i "concat:temp1.ts|temp2.ts" -c copy -bsf:a aac_adtstoasc output.mp4


    I will try to add this new feature on FFMPEGui ;-)


    [ Edité par Papiosaur 22.04.2023 - 09:20 ]
  • »22.04.23 - 04:17
    Profile Visit Website