<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thank you Barry I will try.<div><br></div><div>David.</div><div><br><div><div>Le 2 mars 2012 à 18:05, Barry Stump a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite">At a minimum, you will probably need to add the MPEG start code 0x00000001 to each frame before passing it to your decoder. See H264VideoFileSink::afterGettingFrame1() for an example of this.<div><br></div><div>You may or may not need to deal with parsing the SProp string depending on whether your H.264 stream contains SPS/PPS NAL units. The mailing list has past discussions on this topic.</div>
<div><br></div><div>While configuring and using FFmpeg is outside the scope of this list, your primary decode function will probably be avcodec_decode_video2() from libavcodec.</div><div><br></div><div>-Barry<br><br><div class="gmail_quote">
On Fri, Mar 2, 2012 at 2:10 AM, David Scravaglieri <span dir="ltr"><<a href="mailto:ds@viddiga.com">ds@viddiga.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Well I am really stuck.<br>
<br>
My project is to dump Images from a live H264 stream using live555 and ffmpeg.<br>
<br>
I started with the testRTSPClient prog and in the afterGettingFrame method I want to send the fReceiveBuffer to a class that will decode each frames with ffmpeg and dump all images to a directory. But I can't find any clear sample code or clear HowTo method in order to do that.<br>
<br>
I have read some posts in the mailinglist. But it's not clear.<br>
How to create a suitable ffmpeg codec context for consuming the fReceiveBuffer ?<br>
What about using parseSPropParameterSets ?<br>
Do I have to use ffmpeg av_parser_parse2 method ?<br>
<br>
Any help would be appreciated.<br>
<br>
Thanks in advance,<br>
David.<br>
_______________________________________________<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" target="_blank">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></body></html>