<div dir="ltr"><div dir="ltr">I have now implemented my issue in a public repo<div><br></div><div><a href="https://github.com/taxfromdk/mpegtsmux_metadata" target="_blank">https://github.com/taxfromdk/mpegtsmux_metadata</a><br></div><div><br></div><div>I can add that I am working in Ubuntu 20.04 and I am using the apt-get version of gstreamer.</div><div><br></div><div>GStreamer 1.16.2<br></div><div><br></div><div>I hope this can shed some light to my issue.</div><div><br></div><div>Kind regards</div><div><br></div><div>Jesper</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den tor. 23. sep. 2021 kl. 12.22 skrev Jesper Taxbøl <<a href="mailto:jesper@taxboel.dk" target="_blank">jesper@taxboel.dk</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi ,</div><div><br></div><div>I am working on a project where I use a mpegtsmux component to mux audio data into a ts file. This has worked fine for a while now.</div><div><br></div><div>gst-launch-1.0 \<br> mpegtsmux name=mux ! filesink location=test.ts \<br> audiotestsrc is-live=true ! avenc_aac ! mux.<br></div><div><br></div><div>But I am experiencing some strange behaviour with some sensors in my application and would like to be able to debug this behaviour in the context of the audio track. </div><div><br></div><div>I would therefore like to add an extra data track in the tsmuxer to debug in the context of the audio. Note that the extra data will arrive randomly with no guranteed interval. </div><div><br></div><div>I was thinking about using a structure like this to achieve the goal.</div><div><br></div><div>gst-launch-1.0 \<br> mpegtsmux name=mux ! filesink location=test.ts \<br> audiotestsrc is-live=true ! avenc_aac ! mux. \<br> udpsrc port=9001 ! meta/x-klv ! mux.<br></div><div><br></div><div>The idea would be that I would use a UDP src as input for said data, because I can pipe stdout from my main app into the stream. I would also be able to inject other interresting sources into extra tracks if needed.</div><div><br></div><div>This works conceptually, but I have run into a problem. It seems that the mpegtsmuxer stalls if there is not sent data on the UDP inputs. </div><div><br></div><div>I am therefore wondering if the TS muxer need a "heartbeat" on each input, and more importantly, if there is a way to disable this need so I can just inject when data arrives. </div><div><br></div><div>I must note that the output TS file is only used internally in this project, so I have no need to conform with extenal standards. I just need some debug data for my application.</div><div><br></div><div>Kind regards</div><br><div dir="ltr">Jesper<br></div></div>
</blockquote></div><div dir="ltr"><br><br></div>
</div>