After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 775179 - mp4mux: incorrect output for PLAYING->READY without eos
mp4mux: incorrect output for PLAYING->READY without eos
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.10.1
Other Linux
: Normal minor
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-11-27 15:53 UTC by virinext
Modified: 2016-11-28 07:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description virinext 2016-11-27 15:53:36 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.
Comment 1 Sebastian Dröge (slomo) 2016-11-28 07:12:56 UTC
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.