[FFmpeg-user] Use segment muxer and concat: protocol

Acer Yang yangacer at gmail.com
Wed Feb 15 03:58:43 CET 2012


On Tue, Feb 14, 2012 at 6:29 AM, Maxim Levkov <maxim.levkov at gmail.com>wrote:

> @ Acer,
>
> The reason why your simple copy command for concatenation of video segments
> failed to produce continuous playback, but only of the first segment, is
> that all of the segments contain 'moov' atom box. Hence you need to remove
> all of them and recalculate a single 'moov' atom for the entire movie.
> Otherwise, you will end up having segments, but only the first segment will
> be seen as having 'moov' atom.
>
> Take a look at my paper on the topic,
>
> http://www.adobe.com/devnet/video/articles/mp4_movie_atom.html
>
> Regards,
> Maxim Levkov
>
> On Sun, Feb 12, 2012 at 10:22 PM, Acer Yang <yangacer at gmail.com> wrote:
>
> > On Sun, Feb 12, 2012 at 9:10 PM, Andrey Utkin <
> > andrey.krieger.utkin at gmail.com> wrote:
> >
> > > 2012/2/12 Acer Yang <yangacer at gmail.com>:
> > > > Is there any workaround to solve this problem?
> > >
> > > You can concatenate mp4 files using MP4Box tool from GPAC project.
> > > MP4Box -cat segment1.mp4 -cat segment2.mp4 out.mp4
> > >
> > > --
> > > Andrey Utkin
> > > _______________________________________________
> > > ffmpeg-user mailing list
> > > ffmpeg-user at ffmpeg.org
> > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > >
> >
> > I've tested the mp4box tool, it worked well. Further, it rotated moov
> > atom(box) automatically and just matched my needs.
> >
> > PS. I also tried to extract sub clip from on-joining input. That was
> >
> > mp4box -cat 1.m4v -cat 2.m4v -splitx x:-1 output.m4v
> >
> > It worked.
> >
> > --
> > Best wishes,
> > Acer.
> > _______________________________________________
> > ffmpeg-user mailing list
> > ffmpeg-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>

@ Maxim: Thank for your helpful paper, it explains some of my confusion.

BTW, I just thought that ffmpeg's concat protocol can do that (merge moov
atoms) for me.

It seems, however, have nothing different from UNIX cat utility ... am I
right?

Best wishes,
Acer.


More information about the ffmpeg-user mailing list