<div dir="ltr">Hi Blake, I've been using a maxSize of 600,000 which hasn't had problems other than this specific video and I suspect this should be plenty for our application. I'm testing at the moment using a 4k flv video that has h264 frames that is being read by my own custom ffmpeg file reader. Biggest frames I'm seeing are 620,000. Think I'm going to quadruple it just in case we see 8k and set it to 2,500,000.<div><br></div><div>The problem for me is that even truncating the frame the way I believe should be correct (probably it is my mistake) it's still crashing sometimes. Meaning if this is ever exceeded, Live555 throws an exception that could affect other streams and take down the entire server, so guess I'll have to find a way to split them at some point. But for the moment this should fix the problem and be fine.</div><div><br></div><div>Would be really nice if Live555 could handle automatic resizing of this buffer if it is ever too small.<div><br></div><div>Thanks Ross.</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 13, 2020 at 1:47 PM Blake Senftner <<a href="mailto:bsenftner@cyberextruder.com">bsenftner@cyberextruder.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">
<div lang="EN-US">
<div class="gmail-m_-5735452110687640205WordSection1">
<p class="MsoNormal">Just curious, Matthew, what is the resolution of the media you’re streaming?
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">For my own needs, I’m using an OutPacketBuffer::maxSize Of 400000.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">That value was arrived after sampling of 1920x1080 streams of the type of video we process.
<u></u><u></u></p>
<p class="MsoNormal">I know my OutPacketBuffer::maxSize determination is naive. <u></u>
<u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">What are others using to determine the max size of their buffers? <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:black">Blake Senftner<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black">Sr. Software Scientist | CyberExtruder<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:black"><a href="mailto:bsenftner@cyberextruder.com" target="_blank">bsenftner@cyberextruder.com</a><u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0in 0in">
<p class="MsoNormal"><b>From:</b> live-devel <<a href="mailto:live-devel-bounces@us.live555.com" target="_blank">live-devel-bounces@us.live555.com</a>> <b>
On Behalf Of </b>Matthew Czarnek<br>
<b>Sent:</b> Monday, July 13, 2020 9:11 AM<br>
<b>To:</b> LIVE555 Streaming Media - development & use <<a href="mailto:live-devel@us.live555.com" target="_blank">live-devel@us.live555.com</a>><br>
<b>Subject:</b> Re: [Live-devel] What is the correct way to use OutPacketBuffer::increaseMaxSizeTo when fFrameSize > fMaxsize?<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">You are saying I shouldn't be trying to stream frames that are that large, but I get a frame that large from iframes that I'm reading from the file.. I saw in another post that large frames should be split into small NAL packets. Is it
possible to split that iframe into pieces using Live555? I assume it's not as easy as just sending the bytes that weren't sent as the next frame(s)?<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Fri, Jul 10, 2020 at 7:17 PM Ross Finlayson <<a href="mailto:finlayson@live555.com" target="_blank">finlayson@live555.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">> A frame comes in that has a size of 616969<br>
<br>
You shouldn’t be trying to stream frames this large.<br>
<br>
<br>
> Is there a way to increase fMaxSize midstream?<br>
<br>
“fMaxSize” is set by the downstream object (to specify the maximum size of the buffer that it provides, when it calls “getNextFrame()”). To “doGetNextFrame()” (i.e., the handling by the upstream object), it is simply an ‘in’ variable, and so “doGetNextFrame()”
shouldn’t change it (and certainly shouldn’t increase it).<br>
<br>
<br>
Ross Finlayson<br>
Live Networks, Inc.<br>
<a href="http://www.live555.com/" 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" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><u></u><u></u></p>
</blockquote>
</div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Matthew Czarnek<u></u><u></u></p>
<div>
<p class="MsoNormal">(814) 421-6770<u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<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>