<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">In my project I have a streaming datasource (H264 RTP on UDP) on the receiving side Im saving the stream into a mkv file and I would like to add sensor data as subtitle track (I might need to add a separate track for every sensor type). I want to add this as subtitle track to the file, and not burn the text as an overlay to the video.</div><div class=""><br class=""></div><div class="">I create a simplified python script to test, which was very simple:</div><div class=""><ul class="MailOutline"><li class="">Have a videotestsrc to simulate the streaming datasource</li><li class="">An appsrc that I intend to use to push data from the sensors</li><li class="">Set the cap on the appsrc as ‘text/x-raw,format=utf8”</li><li class="">And connect both of these element to the matroskamux</li><li class="">Conect a callback to “ <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">appsrc</span>”’s “need-data” signal to push random text fro testing purposes</li></ul><div class=""><br class=""></div></div><div class="">However I had not much luck with this. I have not found any topic related to my use case, so now Im doubting if my approach is right.</div><div class=""><br class=""></div><div class="">Do you have any suggestion how to do it better? Or do anyone know and example app which is doing similar things and I can use as a base for my use case?</div><div class=""><br class=""></div><div class="">Thank you!</div><div class=""><br class=""></div><div class="">Bests,</div><div class="">Peter</div></body></html>