<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"><base href="x-msg://398/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="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-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin: 0px; ">Thanks for the response. Ok, does that mean the data in the sink will have already been processed by <span style="font-size: 12pt; ">JPEGVideoRTPSource</span><span style="font-size: 12pt; ">::processSpecialHeader()?</span></div></blockquote><div><br></div>Yes, but you don't have to concern yourself with how our code works. As I said before, the data that the application-level client code (in this case "testRTSPClient") receives should be a complete JPEG video frame each time.</div><div><br></div><div><br></div><div><blockquote type="cite"><div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="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-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin: 0px; "><div><div>I wonder if there is a bug in the JPEG packet processing because I write each JPEG frame to a file, and each appears very corrupted. It's definitely a JPEG because it opens in an image viewer, and it has the right dimensions. However, each image looks like garbage.</div></div></div></blockquote><div><br></div>What happens when you try playing the stream using VLC? (VLC also uses our RTSP/RTP client code.)</div><div><br></div><div><br><blockquote type="cite"><div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="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-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; margin: 0px; "><div><div><br></div><div><span style="font-size: 12pt; ">I put the following code in testRTSPClient.</span></div><div><div><br></div><div><div><font size="2">void DummySink::afterGettingFrame(unsigned frameSize, unsigned numTruncatedBytes,</font></div><div><font size="2"><span class="Apple-tab-span" style="white-space: pre; "></span> struct timeval presentationTime, unsigned /*durationInMicroseconds*/) {</font></div></div></div></div></div></blockquote><div><br></div>You should also check the value of "numTruncatedBytes" (to make sure that it's zero). If it's non-zero, then that means that your buffer size was too small.<br></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; font-size: medium; "><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; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>