<html><head></head><body><div>On Tue, 2023-04-18 at 13:42 +0200, Florian Echtler via gstreamer-devel wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><div>I'm trying to record multiple H.264 and Opus streams to a MP4 file. However, <br></div><div>there is apparently some sort of race condition going on, because in roughly 8 <br></div><div>out of 10 attempts, the pipeline fails with the following error and an EOS:<br></div><div><br></div><div>gst-stream-error-quark: Could not multiplex stream. (10): <br></div><div>../gst/isomp4/gstqtmux.c(5402): gst_qt_mux_add_buffer (): <br></div><div>/GstPipeline:pipeline0/GstBin:bin_file_sink/GstMP4Mux:mux:<br></div><div>Buffer has no PTS.<br></div><div><br></div><div>In the other 20% of cases, the pipeline starts and the resulting MP4 file <br></div><div>contains all the streams, correctly synchronized and playable. I also tried with <br></div><div>qtmux instead of mp4mux, but got the same results.<br></div><div><br></div><div>I'm attaching the dot graph for the failure case; the dot graph for a successful <br></div><div>run looks exactly identical, with the only difference being that the filesink <br></div><div>doesn't flag EOS.<br></div><div><br></div><div>Side question: even if everything works, the resulting MP4 file is not seekable. <br></div><div>Is there a straightforward fix for that?</div></blockquote><div><br></div><div>Can you create an issue with this with a way to reproduce it?</div><div>Most likely this is one of the known h264parse/baseparse PTS handling issues though.</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"></blockquote><div><br></div><div><span><pre>-- <br></pre><div><div><span style="font-family: Calibri, sans-serif; font-size: 14.666667px;">Sebastian Dröge, Centricular Ltd · </span><a href="https://www.centricular.com/" title="Click to open https://www.centricular.com/" style="color: rgb(0, 0, 238); font-family: Calibri, sans-serif; font-size: 14.666667px;">https://www.centricular.com</a></div></div></span></div></body></html>