<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">First, you should note that JPEG video streaming is strongly discouraged; see <a href="http://www.live555.com/liveMedia/faq.html#jpeg-streaming" class="">http://www.live555.com/liveMedia/faq.html#jpeg-streaming</a><div class=""><br class=""></div><div class="">However, our code is streaming JPEG-over-RTP correctly, according to the standard RTP payload format for JPEG video streaming, specified in RFC2435.  Note that this payload format works by including - in RTP packets - only the essential parts of a JPEG image.  The receiving code (in our case “JPEGVideoRTPSource”) reconstructs a JPEG image by prepending a JPEG (JFIF) header.</div><div class=""><br class=""></div><div class="">If no quantizations tables are included in the RTP packet, then a default set of quantization tables are used, scaled by the ‘q factor’.  If, however, these default tables are not appropriate for you, then you will need to include your own quantization tables.  To do this, have your “JPEGVideoSource” subclass implement the “quantizationTables()” virtual function, and have your implementation of the “qFactor()” virtual function return a value >= 128.</div><div class=""><br class=""></div><div class="">Or you could not bother streaming JPEG via datagrams at all, because (as I noted earlier) it’s usually a bad idea.</div><br class=""><div apple-content-edited="true" class="">
<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 class="">Live Networks, Inc.<br class=""><a href="http://www.live555.com/" class="">http://www.live555.com/</a></span>
</div>
<br class=""></body></html>