<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p><br>
</p>
<meta content="text/html; charset=UTF-8">
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols; --darkreader-inline-color:#e8e6e3;" data-darkreader-inline-color="">
<p>Hi,</p>
<p><br>
</p>
<p>The video gets really bad when I try to mux it with audio,<span> however audio is played ok.</span> One thing that may go wrong is that my video encoder generates one access unit that contains multiple NAL units, what I do to be compliant is that I parse
it and extract one nal unit at a time, remove NAL start code and add a presentation time for each NAL unit, so even SPS, PPS, VPS has a different timestamps than key frame or B frame even if where in the same access unit, maybe this can have affect somehow.
Do I need to set <span>fDurationInMicroseconds</span> also?</p>
<p><br>
</p>
<p>I will check that my timestamps are correct.</p>
<p><br>
</p>
<p>Thanks for the help!</p>
<p>Sorin.<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size: 11pt; --darkreader-inline-color:#e8e6e3;" data-darkreader-inline-color="" face="Calibri, sans-serif" color="#000000"><b>From:</b> live-devel <live-devel-bounces@us.live555.com> on behalf of Ross Finlayson
<finlayson@live555.com><br>
<b>Sent:</b> Friday, January 31, 2020 9:58:26 AM<br>
<b>To:</b> LIVE555 Streaming Media - development & use<br>
<b>Subject:</b> Re: [Live-devel] Could not play h265 video over mpeg-ts</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="PlainText">Thanks for sending me an example H.265 file. This file seems OK, and when I convert it to a Transport Stream file (using our “testH265VideoToTransportStream” application), this plays OK as well.<br>
<br>
If your problem is occurring only when you try to multiplex together video and audio (rather than just video, or just audio), then the only thing I can think of is that perhaps your two source classes might be generating inconsistent presentation timestamps.
Make sure that both timestamps are generating consistent presentation times (e.g., using “gettimeofday()”). That’s all I can suggest.<br>
<br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" id="LPlnk983171" previewremoved="true">http://www.live555.com/</a><br>
<br>
<br>
_______________________________________________<br>
live-devel mailing list<br>
live-devel@lists.live555.com<br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" id="LPlnk593636" previewremoved="true">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</div>
</span></font></div>
</body>
</html>