How to append one mp4 file to another?

Sebastian Dröge sebastian at centricular.com
Wed Nov 2 07:50:31 UTC 2016


On Mon, 2016-10-31 at 17:12 +0300, sonntex wrote:
> > What is it that you want to achieve here? You can transcode or
> transmux
> > the files into a new MP4 container, or if this is fragmented MP4
> you
> > can also directly append them to each other in theory.
> 
> I grab jpeg stream from uvc camera, transcode it to h264 and mux it
> to small mp4 files (about one minute duration). As a result I have
> sequence of small faststart mp4 files with the same codec inside and
> I want to glue it to one large file.
> 
> I tried to use append=true for filesink, but resulted mp4 file has
> wrong duration:
> [...]

Yes, as said, you can't just append MP4 files. That only works if they
are fragmented MP4 to begin with.


Maybe you'd like to use the splitmuxsink element (and then splitmuxsrc)
for generating your files? Alternatively you will have to demux them
(all in one pipeline) and mux them again with (the same) mp4mux.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 931 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161102/eb36cabf/attachment.sig>


More information about the gstreamer-devel mailing list