GNOME Bugzilla – Bug 775179
mp4mux: incorrect output for PLAYING->READY without eos
Last modified: 2016-11-28 07:12:56 UTC
If mp4mux multiplexer is moved from PLAYING to READY without eos event then output is invalid mp4 file. For example, the pipeline gst-launch-1.0 videotestsrc ! x264enc ! mp4mux ! filesink location=dump.mp4 gives incorrect mp4 file when it is stopped with Ctrl+C.
That's expected behaviour. Without EOS, the muxer has no opportunity to write the headers which must contain information about every frame. Check the reserved-max-duration, reserved-duration-remaining, reserved-moov-update-period and reserved-bytes-per-sec properties for having it reserve some space in the beginning (if more is needed it will fail!) and regularly write the headers as known for now there.