<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>I have three Raspi cameras pushing out h264 elementary streams, which I'm reading from stdin and sending out using live555's RTSP server. All works great.</div>
<div><br></div><div>The only problem is that the three camera feeds can sometimes have different bitrates depending on what they're looking at - I want them syncronized. It seems that the cameras with the higher bitrates are closer to real-time, and the lower bitrates lag more. I expect this is because there is some fixed-size buffer somewhere, and the higher the bitrate, the faster the buffer is filled and the more realtime the stream is.</div></div></div></div></blockquote><div><br></div></div>This buffer will be the buffer that's in your OS - between your camera (that's writing to 'stdout'), and the LIVE555 server (that's reading from 'stdin'). I.e., it'll be in whatever pipe you have between the camera and the server.<div><br></div><div>It may be possible (using some ioctl() or something) to change this buffer size. Alternatively, you may find it easier to have your camera's encoder use a (virtual) file that's named in the file system (e.g., somewhere in /dev), and then have the LIVE555 server read directly from this 'file', rather than from stdin. That will avoid having an intermediate pipe set up by the OS.</div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>