<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi,</p>
<p><br>
</p>
<p>I tried your suggestion, I saved a h265 video and then I used <font size="2"><span style="font-size:10pt">testH265VideoToTransportStream</span></font> demo application and I got a ts file but this one is played in slow motion somehow, I got lots of errors
like: "Two slices reporting being the first in the same frame." and that fps is not specified in header by mplayer, but after I played with '-fps 30' option the video was played fine, however this does not help if I try to play a *.ts file that was saved from
my network with mpeg-ts environment.</p>
<p><br>
</p>
<p>Setting <font size="2"><span style="font-size:10pt">includeStartCodeInOutput</span></font> to True does not help.</p>
<p><br>
</p>
<p>Thanks!</p>
<p>Sorin.<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><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 17, 2020 5:13:51 PM<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"><br>
<br>
> On Jan 17, 2020, at 5:42 AM, Avramoni, Sorin <sorin.avramoni@intel.com> wrote:<br>
> <br>
> Dear all,<br>
> <br>
> I am trying to send video H265 and audio AAC from a camera and a mic using MPEG-TS, I previously sent video and audio using two rtsp sessions withH265VideoRTPSink and MPEG4GenericRTPSink and it works.<br>
<br>
If you have already been able to stream raw video and raw audio over RTP, I’m not sure why you would then want to package and stream them in a Transport Stream (something that increases latency and network bandwidth). But anyway…<br>
<br>
<br>
> Here is the relevant code for video hevc over mpeg-ts:<br>
<br>
At first glance, this looks OK, except for:<br>
<br>
> H265VideoStreamDiscreteFramer* framer = H265VideoStreamDiscreteFramer::createNew(*dev, vdoSource,false);<br>
<br>
Because you’re outputting the H.265 NAL units into a Transport Stream (rather than into RTP packets), the third parameter (“includeStartCodeInOutput”) to "H265VideoStreamDiscreteFramer::createNew()” should be True, not False. (Note that the input NAL units
must still *not* have a preceding ’start code’ (00000001); however, they need to be present in the Transport Stream, and setting the “includeStartCodeInOutput” parameter to True will do this.)<br>
<br>
If this doesn’t fix your problem, then I suggest starting with our “testH265VideoToTransportStream” demo application (in the “testProgs” directory). Make sure that this works OK for you (using a H.265 Elementary Stream video file from your camera).<br>
<br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/">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">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</div>
</span></font>
</body>
</html>