How to glue 2 videos?

Questions involving a Windows version of FFmpeg.
Post Reply
FANNING
Posts: 1
Joined: Thu Aug 31, 2017 4:48 pm

How to glue 2 videos?

Post by FANNING »

I tried to do so:

Code: Select all

ffmpeg -i video1.mp4 -c copy -bsf h264_mp4toannexb video1.ts

ffmpeg -i "concat:video1.ts|video2.ts|" -c copy -bsf:a aac_adtstoasc video_done.mp4
Issued this error:

Code: Select all

[AVBSFContext @ 0x662372e820] Codec 'aac' (86018) is not supported by the bitstream filter 'h264_mp4toannexb'. Supported codecs are: h264 (28) 
Error initializing bitstream filter: h264_mp4toannexb
I do not have time to recompile the program or read the cumbersome documentation! Does anyone know how to link a video in the new version? :?:

llogan
Posts: 332
Joined: Fri Mar 14, 2014 3:29 am

Re: How to glue 2 videos?

Post by llogan »

By "glue" I guess you mean concatenate. Use the concat demuxer.

http://trac.ffmpeg.org/wiki/Concatenate#demuxer

Post Reply