[Live-devel] Problem MJEG stream with proxyserver

Ross Finlayson finlayson at live555.com
Mon Oct 20 20:33:52 PDT 2014


> I tested openrtsp, but result is same. Jpg image is broken.

Congratulations!  You’ve just discovered why MJPEG streaming - especially with very large frames - is a terrible idea.  As I note in the FAQ:

"You should be aware, though, that JPEG is a very poor codec for video streaming, because (unlike MPEG, H.264 or H.265 video) there is no inter-frame compression. Every video frame is a 'key' frame, and is sent in its entirety. Also, each frame is typically large (and so takes up many network packets). If any of these network packets gets lost, then the whole frame must be discarded. JPEG video streaming is strongly discouraged, and should be considered (if at all) only for high-bitrate local-area networks with very low packet loss.”

What you’re seeing is packet loss.  Because you have doubled the number of network interfaces in your system (in addition to the transmitter’s and the receiver’s interface, you now have the input and output interfaces of the proxy) you have at least doubled the packet loss rate, which *vastly* decreases the likelihood that a complete JPEG frame will be passed end-to-end.

Your only real solution is to stop trying to stream MJPEG.  Instead, transcode to H.264, and stream that.

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20141020/799dd9c0/attachment.html>


More information about the live-devel mailing list