[Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg
Brad O'Hearne
brado at bighillsoftware.com
Fri Mar 2 10:13:53 PST 2012
Sounds like a few of us ought to get together and conjure up a sample for this use case -- seems like this use-case is becoming increasingly common, though it ought to be, given that there's no native real-time video option on either iOS or Android.
Brad
Brad O'Hearne
Founder / Lead Developer
Big Hill Software LLC
http://www.bighillsoftware.com
On Mar 2, 2012, at 10:23 AM, David Scravaglieri wrote:
> Thank you Barry I will try.
>
> David.
>
> Le 2 mars 2012 à 18:05, Barry Stump a écrit :
>
>> 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.
>>
>> 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.
>>
>> While configuring and using FFmpeg is outside the scope of this list, your primary decode function will probably be avcodec_decode_video2() from libavcodec.
>>
>> -Barry
>>
>> On Fri, Mar 2, 2012 at 2:10 AM, David Scravaglieri <ds at viddiga.com> wrote:
>> Hi,
>>
>> Well I am really stuck.
>>
>> My project is to dump Images from a live H264 stream using live555 and ffmpeg.
>>
>> 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.
>>
>> I have read some posts in the mailinglist. But it's not clear.
>> How to create a suitable ffmpeg codec context for consuming the fReceiveBuffer ?
>> What about using parseSPropParameterSets ?
>> Do I have to use ffmpeg av_parser_parse2 method ?
>>
>> Any help would be appreciated.
>>
>> Thanks in advance,
>> David.
>> _______________________________________________
>> live-devel mailing list
>> live-devel at lists.live555.com
>> http://lists.live555.com/mailman/listinfo/live-devel
>>
>> _______________________________________________
>> live-devel mailing list
>> live-devel at lists.live555.com
>> http://lists.live555.com/mailman/listinfo/live-devel
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120302/855acbac/attachment.html>
More information about the live-devel
mailing list