All mkv files generated by matroskamux are broken with audio and video present
Submitted by Markus Ebner
No matter what pipeline generates a matroska file, the generated file is always broken when audio and video are present.
Generated from remuxing an existing mp4 file
gst-launch-1.0 filesrc location="big_buck_bunny_720p_10mb.mp4" ! parsebin name="demux" ! h264parse ! queue ! matroskamux name="mux" ! filesink location="1.mkv" demux. ! aacparse ! queue ! mux.
Generated from test sources:
gst-launch-1.0 videotestsrc num-buffers=150 ! x265enc ! h265parse ! matroskamux name=mux ! filesink location="2.mkv" audiotestsrc num-buffers=150 ! lamemp3enc ! mux.
Generated from test-source only using video:
gst-launch-1.0 videotestsrc num-buffers=150 ! videoconvert ! x264enc ! matroskamux name=mux ! filesink location="3.mkv"
mkvalidate as well as mpv both complain about the files 1.mkv and 2.mkv, whereas file 3.mkv does not seem to contain format errors.
The error does have something to do with keyframes, so this bug might have something to do with that one: https://bugzilla.gnome.org/show_bug.cgi?id=794105