Way to slice mp4 file
Tim Müller
tim at centricular.com
Thu May 7 04:59:05 PDT 2015
On Thu, 2015-05-07 at 04:12 -0700, Baby Octopus wrote:
Hi,
> I'm looking to slice mp4 file for every 10Mb using the following pipeline
>
> *gst-launch-1.0 videotestsrc ! x264enc ! mp4mux ! multifilesink
> max-file-size=10000000*
>
> Many files are generated but none of these files are playable which I think
> is because of header. Is there a way to write header into mp4 files
> periodically(just like ts)?
This is not going to work like that with mp4mux and multifilesink, the
file format just doesn't support that.
The brand new splitmuxsink element in git master can do this, however.
... x264enc ! h264parse ! splitmuxsink location=video%02d.mov
max-size-bytes=10000000
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list