<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi GStreamer Team,<br>
I have a question concerning "corrupted" files I get, when creating video chunks with splitmuxsink.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
What I am doing:<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The use case is event triggered recording into file chunks.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I am developing in a bullseye docker container with GStreamer 1.18.4, the target system is an arm64 SoC running a custom Linux build with yocto, currently using GStreamer 1.16.1 (The application is running in a container, where a custom docker base image is
 used to utilize the VPU of the SoC).</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Pipeline (simplified):</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
rtspsrc -><span><span style="color:#ce9178"> </span><span style="color: rgb(0, 0, 0);">rtph264depay
</span></span>-> tee -> queue -> valve -> h264parse -> splitmuxsink</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
The "issue":<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I stumbled over the fact that the created file chunks from the target application sometimes where not playable in Google-Chrome browser. I investigated this behavior, because the same files not working in Chrome worked with FireFox, VLC and the standard Linux
 video player. I found out, that it might have to do something with "<span class="line">unfixable negative timestamp</span>" (related chrome ticket:
<a href="https://bugs.chromium.org/p/chromium/issues/detail?id=715398" id="LPlnk922951">
https://bugs.chromium.org/p/chromium/issues/detail?id=715398</a>). The "corrupted" files can be fixed by re-packing them into new mp4 containers with e.g. ffmpeg (<span style="box-sizing:border-box;font-family:"Segoe UI", system-ui, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;font-size:14px;orphans:2;widows:2">ffmpeg
 -i INPUT_FILE.mp4 -c:v copy OUTPUT_FILE.mp4). </span>I have to admit, that the file chunks, recorded with GStreamer 1.18.4 in the dev environment, seem to not have the problem. I guess updating the target GStreamer version might fix the issue. Anyway, I wanted
 to ask if I am missing something, or is this know behavior for version 1.16.X and if this is the case, can fix the "corrupted" files in my application without changing the GStreamer version on the target.
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you very much in advance and best regards,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Carlo</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-size:10pt;  font-family: Arial, Helvetica, sans-serif">
<p><br>
<b>Smart Mechatronics ist ausgezeichnet als TOP Arbeitgeber im Mittelstand 2021!</b>
<br>
</p>
</div>
<div style="font-size:10pt;  font-family: Arial, Helvetica, sans-serif"><br>
<div style="font-size:8pt; font-family: Arial, Helvetica, sans-serif">Smart Mechatronics GmbH – Zertifiziert nach DIN EN ISO 9001:2015<br>
<br>
Geschäftsführung: Prof. Dr.-Ing. Guido Stollt; Sven Schwarzer<br>
Sitz der Gesellschaft: Dortmund; HRG: AG Dortmund HRB 21083; Ust-ID-Nr.: DE 258 609 757<br>
Steuer-Nr.: 315/5770/0936<br>
<br>
<!--<div style='font-size:7.5pt;font-family: Arial, Helvetica, sans-serif;color:gray'> -->Diese E-Mail sowie alle Anlagen enthalten vertrauliche und rechtliche geschützte Informationen, die ausschließlich für den beabsichtigten Empfänger bestimmt sind. Ein
 Zugriff auf diese E-Mail durch Dritte ist nicht erlaubt.<br>
Wenn Sie nicht der beabsichtigte Empfänger sind, ist jede Speicherung, Weiterleitung, Vervielfältigung oder sonstige Verwendung strengstens verboten; bitte informieren Sie sofort den Absender und vernichten Sie die E-Mail sowie alle Anlagen.<br>
<br>
This e-mail message and its attachments contain confidential and legally privileged information which are intended solely for the use of the addressee.<br>
Access to this e-mail by anyone else is unauthorized.<br>
If the reader of this message is not the intended recipient, any saving, distribution, copying or other use of this e-mail or its attachments is strictly prohibited; please notify the sender immediately and delete this e-mail and its attachments.
</div>
</div>
</body>
</html>