<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">David -- If you don't mind, I'm going to piggy-back on your thread -- I have the exact same use case (H.264 stream over RTSP > Live 555 > ffmpeg), and it would appear maybe a very similar problem (though I have a different SDP description).<div><br></div><div>To all -- I have implemented a MediaSink subclass (based on an adaptation of the DummySink in the testRTSPClient sample), which takes the receive buffer and hands it off to ffmpeg to decode the frame. Note that I've received varying input on whether you need to prepend a start code to the frame first -- I've tried it both with and without, but with the same result. In my case, the problem is that the decoding step in ffmpeg doesn't return any bytes, and logs the following message to the console: </div><div><div><br></div><div>[h264 @ 0xe2dbc00] no frame!</div><div><br></div><div>I know this isn't an ffmpeg support forum, but I'm not seeking ffmpeg support with this question -- I'm merely mentioning it to give a context for the problem. My suspicions are that the problem is in the handling taking place in Live555, not in ffmpeg -- that the decode failure is merely a downstream symptom of a problem handling the stream. </div><div><br></div><div>A few questions:</div><div><br></div><div>1. What is the exact nature of the data in the receive buffer at the time that the afterGettingFrame() method of the MediaSink subclass is called, when an H.264 stream from RTSP is in play? </div><div><br></div><div>2. When an H.264 stream from RTSP is in play, is there any massaging of data in the receive buffer that needs to take place prior to decoding an H.264 frame in ffmpeg? Does it need a start code or not, and if yes, does it need a start code every time, or just conditionally?</div><div><br></div><div>3. Ross, you seem to know your stuff, so I'd be very appreciative if you or anyone else could take a look at my SDP description and let me know if you see any red flags. My description is below: </div><div><br></div><div><div>[URL:"<a href="rtsp://192.168.1.100:8080/test.sdp">rtsp://192.168.1.100:8080/test.sdp</a>"]: Got a SDP description:</div><div>v=0</div><div>o=- 13553521053896953521 13553521053896953521 IN IP4 boundary</div><div>s=N/A</div><div>u=http</div><div>c=IN IP4 0.0.0.0</div><div>t=0 0</div><div>a=control:rtsp://192.168.1.100:8080/test.sdp</div><div>m=video 0 RTP/AVP 96</div><div>a=rtpmap:96 H264/90000</div><div>a=fmtp:96 packetization-mode=1;profile-level-id=42001f;sprop-parameter-sets=Z0IAH6aAyBLk,aM4wpIA=;</div><div>a=control:rtsp://192.168.1.100:8080/test.sdp/trackID=0</div></div><div><br></div><div>Thanks,</div><div><br><div apple-content-edited="true">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Brad<br><br>Brad O'Hearne<br>Founder / Lead Developer<br>Big Hill Software LLC<br><a href="http://www.bighillsoftware.com">http://www.bighillsoftware.com</a></div></div>
</div>
<br><div><div>On Mar 2, 2012, at 3:25 PM, David Scravaglieri wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Ok,</div><div> </div><div>Thank you Ross.</div><div><br></div><div>David.</div><br><div><div>Le 2 mars 2012 à 23:08, Ross Finlayson a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">So what do I have to do now ?</div></blockquote><div><br></div>You do whatever you need to do to decode a MPEG Transport Stream. But (because we don't do decoding or encoding) that's off-topic for this mailing list.</div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; 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; 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></div>_______________________________________________<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br><a href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a><br></blockquote></div><br></div>_______________________________________________<br>live-devel mailing list<br><a href="mailto:live-devel@lists.live555.com">live-devel@lists.live555.com</a><br>http://lists.live555.com/mailman/listinfo/live-devel<br></blockquote></div><br></div></div></body></html>