Lossless concatenation of MP4 video files

Source: http://stackoverflow.com/questions/7333232/concatenate-two-mp4-files-using-ffmpeg

ffmpeg -i myfile1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts int1.ts
ffmpeg -i myfile2.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts int2.ts
ffmpeg -i "concat:int1.ts|int2.ts" -c copy -bsf:a aac_adtstoasc output.mp4


Popular posts from this blog

Adding "Stereo Mixer" to Windows 7 with Conexant sound card

Attiny85 timer programming using Timer1

Hacking a USB-C to slim tip adapter cable to charge the Thinkpad T450s