Accueil > Informatique > 20c tips > Concaténer plusieurs fichiers video

Concaténer plusieurs fichiers video

samedi 9 août 2014, par Vincent

ffmpeg -i video_part1.m4v -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i video_part2.m4v -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i video_part3.m4v -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate3.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts" -c copy -bsf:a aac_adtstoasc video.m4v

Voir en ligne : ffmpeg