<div dir="ltr"><div dir="ltr">Thanks Ross, whoops, it was indeed my variable.. that's what I get for naming it similar to how you name your variables :)<div><br></div><div>I didn't make any changes to that part of the code that parses the sprop, then passes it into H264VideoRTPSink, so I'm not sure why that was happening and it's weird that it stopped working. In fact, I remember that "gM" as being the value that kept being passed in for SPS. However, switching to directly passing in the sprop-parameter-sets string did fix it. Thanks.</div><div><br></div><div>I made two changes:</div><div>1) Switch it to read from test files so I can test this component individually, which shouldn't affect this bug at all.</div><div>2) Updated from Live555 to the newest version from being a few versions behind.. might want to make sure nothing changed that could introduce a bug. Though considering that in your code you break down the string and pass it in as SPS and PPS which works fine.. seems like it's working. Idk, weird. Not sure what happened. Oh well.</div><div><br></div><div>It does seem like a good idea to be setting "profile-level-id" I could definitely see us using it.. is there an easy way to set that?</div><div><br></div><div>Thanks again,</div><div>Matt</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 7, 2020 at 7:31 PM Ross Finlayson <<a href="mailto:finlayson@live555.com">finlayson@live555.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Jul 8, 2020, at 6:38 AM, Matthew Czarnek <<a href="mailto:mczarnek@edge360.com" target="_blank">mczarnek@edge360.com</a>> wrote:<br>
> <br>
> Good catch, you're right about those looking strange.. I don't think I have been setting profile-level-id, I can't remember doing that anyway, how would I set that one?<br>
<br>
Don’t worry about that; it comes automatically from the SPS NAL unit. So, the SPS and PPS NAL units are all that you need to worry about here.<br>
<br>
<br>
> Regarding sprop-parameter-sets, I'm still exploring but I believe that one is created from fSPSNAL and fPPSNAL, which appear to be set correctly, am I right?<br>
> fPPSNALSize = 4 <br>
> fPPSNAL = "hî<€ýýýýd™Nõ"<br>
> <br>
> fSPSNAL = "gM"<br>
> fSPSNALSize = 20<br>
<br>
What are these variables? They don’t appear anywhere in our code; therefore they must instead be somewhere in your code - most likely in your implementation of “createNewRTPSink”, in the “OnDemandServerMediaSubsession” subclass that you’ve written, as described here:<br>
<a href="http://live555.com/liveMedia/faq.html#liveInput-unicast" rel="noreferrer" target="_blank">http://live555.com/liveMedia/faq.html#liveInput-unicast</a><br>
I’m guessing that you’re using these variable as parameters to your call to<br>
H264VideoRTPSink::createNew()<br>
In which case there’s a much easier way for you to be doing this; see below.<br>
<br>
<br>
> I know what it's supposed to be as I'm using ffmpeg to pull both sprop-parameter-sets and profile-level-id out of the file: a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z00AKeKQDwBE/LgLcBAQHh4kRUA=,aO48gA==; profile-level-id=4D0029<br>
> But I then parse it and turn it into the PPS and SPS, so Live555 can turn it back.<br>
<br>
In this case, you know the "sprop-parameter-sets” string in advance. You don’t need to convert this to binary yourself; instead you can just use the third variant of “H264VideoRTPSink::createNew()” (see “liveMedia/include/H264VideoRTPSink.hh”), and just call<br>
H264VideoRTPSink::createNew(env, RTPgs, rtpPayloadFormat, "Z00AKeKQDwBE/LgLcBAQHh4kRUA=,aO48gA==“)<br>
<br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" rel="noreferrer" target="_blank">http://www.live555.com/</a><br>
<br>
<br>
_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com" target="_blank">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" rel="noreferrer" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Matthew Czarnek<div>(814) 421-6770</div></div></div>