[Libav-user] How to concat videos

Евгений Гарифуллин grisme at yandex.ru
Mon Jan 6 17:09:06 CET 2014

06.01.2014, 17:44, "m m" <gomb1729 at gmail.com>:
> Hello,
> I have a problem making a preview video of the bigger one (by making few short clips and concatenating them into one smaller video).
> I already successfully implemented seeking and making temporary clip files (using libs: avformat, avcodec and avutil).
> Can someone provide an example or direct to tutorial in C/C++, which libs, methods and parameters should be used to concatenate videos?
> Thanks in advance!
> ,
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

I think, you can open input-file format context, output format context (equals input format context), output stream with format as input file.
Seek at places that you want to combine, read frames from input format-context, and write directly to output file.

С уважением, Евгений Гарифуллин.
e-mail: grisme at yandex.ru
jabber: joffadark at jabber.ufanet.ru
ICQ : 387906261

More information about the Libav-user mailing list