<div dir="ltr"><div>I also tried:<br><br><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">sysctl -w net.core.rmem_max=8388608</span><br style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">

<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">sysctl -w net.core.wmem_max=8388608</span><br style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">

<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">sysctl -w net.core.rmem_default=65536</span><br style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">

<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">sysctl -w net.core.wmem_default=65536</span><br style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">

<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">sysctl -w net.ipv4.tcp_rmem='4096 87380 8388608'</span><br style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">

<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">sysctl -w net.ipv4.tcp_wmem='4096 65536 8388608'</span><br style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">

<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">sysctl -w net.ipv4.tcp_mem='8388608 8388608 8388608'</span><br style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">

<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);display:inline!important;float:none">sysctl -w net.ipv4.route.flush=1</span><br class="">

<br></div><div>followed by restarting live555ProxyServer, it made no difference :(<br><br></div><div>You can see the videos being recorded with ffmpeg from live555ProxyServer here: <a href="http://monitor.zanview.com">http://monitor.zanview.com</a> <br>

<br>ny ideas at all what is causing this?<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 June 2013 14:55, Roman Gaufman <span dir="ltr"><<a href="mailto:hackeron@gmail.com" target="_blank">hackeron@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I tried to change increaseReceiveBufferTo() in: liveMedia/BasicUDPSource.cpp liveMedia/MediaSession.cpp liveMedia/MultiFramedRTPSource.cpp groupsock/GroupsockHelper.cpp<div>

<br></div><div>To be 2129920 instead of 50 * 1024.</div>
<div>I also ran: sysctl -w net.core.rmem_max=2129920</div><div><br></div><div>Is there anyway to use increaseReceiveBufferTo() directly in proxyServer/live555ProxyServer.cpp? - I'm not a developer and was not able to figure it out, I tried adding it in a few different places but proxy server wouldn't compile.</div>


<div><br></div><div>After the above the result is the same :( - I can open several ffplay processes on the same machine reading from the IP camera directly and the image does not break, however if I start live555Proxy and play through that the image breaks every few seconds or so.</div>


<div><br></div><div>What else could be different reading with ffplay directly and reading with ffplay through live555proxy? - I know the FAQ says: "There's nothing in our code that can be 'losing' packets." but something is causing this loss?</div>


<div><br></div><div>I've eliminated network and followed the advice about OS but it's still breaking.</div><div><br></div><div>I'm tearing my hair over this, please help :(</div></div><div class="HOEnZb"><div class="h5">

<div class="gmail_extra">
<br><br><div class="gmail_quote">On 5 June 2013 19:41, Roman Gaufman <span dir="ltr"><<a href="mailto:hackeron@gmail.com" target="_blank">hackeron@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr"><div><div><div>Here is a short video of it in action: <a href="https://www.youtube.com/watch?v=ShscnaNvNgw" target="_blank">https://www.youtube.com/watch?v=ShscnaNvNgw</a><br><br>Output from live555ProxyServer: <a href="http://pastie.org/8011182" target="_blank">http://pastie.org/8011182</a><br>



<br></div>Opening directly with ffplay 'rtsp://<a href="http://admin@192.168.88.13/media/video1" target="_blank">admin@192.168.88.13/media/video1</a>' I very occasionally see:<br><br>[h264 @ 0x7f9c7c003a00] Missing reference picture, default is 0/0<br>



[h264 @ 0x7f9c7c003a00] decode_slice_header error<br><br></div><div>But the image doesn't break and plays perfectly.<br></div><div><br></div>When I open through live555ProxyServer the output is completely packed with stuff like this:<br>



<br>[h264 @ 0x7fd93b024200] RTP: missed 1 packets<br>[h264 @ 0x7fd93b024200] RTP: missed 2 packets<br>    Last message repeated 1 times<br>[h264 @ 0x7fd93b024200] RTP: missed 3 packets<br>[h264 @ 0x7fd93f80f600] negative number of zero coeffs at 77 33/6<br>



[h264 @ 0x7fd93f80f600] error while decoding MB 77 33<br>[h264 @ 0x7fd93f80f600] concealing 4172 DC, 4172 AC, 4172 MV errors in I frame<br>[h264 @ 0x7fd93b024200] RTP: missed 1 packets32KB sq=    0B f=6/6<br>    Last message repeated 14 times 0KB vq=  469KB sq=    0B f=6/6<br>



[h264 @ 0x7fd93f80e400] out of range intra chroma pred mode at 57 43<br>[h264 @ 0x7fd93f80e400] error while decoding MB 57 43<br>[h264 @ 0x7fd93f80e400] concealing 2992 DC, 2992 AC, 2992 MV errors in I frame<br>[h264 @ 0x7fd93b024200] RTP: missed 1 packets42KB sq=    0B f=6/6<br>



[h264 @ 0x7fd93b024200] RTP: missed 2 packets<br>[h264 @ 0x7fd93b024200] RTP: missed 1 packets<br>[h264 @ 0x7fd93b024200] RTP: missed 2 packets<br>    Last message repeated 1 times<br>[h264 @ 0x7fd93b024200] RTP: missed 1 packets<br>



[h264 @ 0x7fd93b024200] RTP: missed 2 packets<br>    Last message repeated 1 times<br>[h264 @ 0x7fd93b024200] RTP: missed 1 packets<br>[h264 @ 0x7fd93f80f000] out of range intra chroma pred mode at 104 43<br>[h264 @ 0x7fd93f80f000] error while decoding MB 104 43<br>



[h264 @ 0x7fd93f80f000] concealing 2945 DC, 2945 AC, 2945 MV errors in I frame<br><br></div><div>If I reduce the resolution from 1920x1080 to 640x480 and reduce the bandwidth from 5mbit to 1mbit, I see no corruption through the proxy. It seems to only happen with large resolution/bitrate.<br>



<br>This is not a bandwidth issue as I have a gigabit switch and both the camera and PC are connected straight to the switch.<br><br>Also, I can open the camera stream multiple times from multiple instances of ffplay (also from multiple machines) and there is no corruption, the corruption only happens if opening through live555.<br>



<br></div><div>The only modifications to the live555ProxyServer source code is ability to change the listening port and: OutPacketBuffer::maxSize = 500000; // bytes -- anything less and I see a bunch of errors like MultiFramedRTPSink::afterGettingFrame1(): The input 
frame data was too large for our buffer size (60804).  316669 bytes of 
trailing data was dropped!<br><br></div><div>I can reproduce this on 4 different IP cameras: ACTi E32, ACTi D71, Chinese noname and Sony SNC-CH210: ffplay works beautifully, live555proxy works only on small resolutions and causes corruption on anything 720P or up :(<br>



</div><div><br></div>Any ideas?<br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div></div>