Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread David Scravaglieri
Ok, Thank you Ross. David. Le 2 mars 2012 à 23:08, Ross Finlayson a écrit : >> So what do I have to do now ? > > 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. > > Ross Finlayson

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread Ross Finlayson
> So what do I have to do now ? 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. Ross Finlayson Live Networks, Inc. http://www.live555.com/ ___ li

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread David Scravaglieri
So what do I have to do now ? My vlc player can read this stream and the info stream says it's H264. My understanding is that I must check how to go through this with ffmpeg. Am I wrong ? Le 2 mars 2012 à 22:42, Ross Finlayson a écrit : >> pSavedSDPLines = m=video 0 RTP/AVP 33 > > Whoa! Hold

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread David Scravaglieri
sdpdescription: v=0 o=leCDN 1330725225 1330725225 IN IP4 kapoueh.proxad.net s=unknown i=unknown c=IN IP4 0.0.0.0 t=0 0 m=video 0 RTP/AVP 33 a=control:rtsp://mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=620&flavour=ld Le 2 mars 2012 à 22:39, Ross Finlayson a écrit : > No, please let

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread Ross Finlayson
> pSavedSDPLines = m=video 0 RTP/AVP 33 Whoa! Hold on - this line tells me that your input stream is *not* a H.264 RTP stream. Instead, it's a MPEG Transport Stream (that may, or may not, contain H.264, or MPEG-4, or MPEG-2, or a number of other things). This is your problem: You're treating

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread Ross Finlayson
No, please let us know the *complete* SDP description - the string that you passed to "MediaSession::createNew()". Ross Finlayson Live Networks, Inc. http://www.live555.com/ ___ live-devel mailing list live-devel@lists.live555.com http://lists.live555.

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread David Scravaglieri
If I add the following code: const char* pSpropParamSets = fSubsession.fmtp_spropparametersets(); if (pSpropParamSets != NULL) cout << "pSpropParamSets = " << pSpropParamSets << endl; else cout << "pSpropParamSets = NULL" << endl; const char* pSavedSDPLines = f

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread Ross Finlayson
> I have added the following lines into "afterGettingFrame" method. > > unsigned numSPropRecords; > SPropRecord* sPropRecords = > parseSPropParameterSets(fSubsession.fmtp_spropparametersets(), > numSPropRecords); > > numSPropRecords is always 0 > and sPropsRecords is always NULL That's probabl

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread Brad O'Hearne
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

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread David Scravaglieri
I have added the following lines into "afterGettingFrame" method. unsigned numSPropRecords; SPropRecord* sPropRecords = parseSPropParameterSets(fSubsession.fmtp_spropparametersets(), numSPropRecords); numSPropRecords is always 0 and sPropsRecords is always NULL For information, my class inherit

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread David Scravaglieri
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 0x0001 to > each frame before passing it to your decoder. See > H264VideoFileSink::afterGettingFrame1() for an example of this. > > You may o

Re: [Live-devel] RTCP functions when using BasicUDPSource

2012-03-02 Thread Ricardo Acosta
Hi Ross, With your email, I found how to do it Thank you ! Ricardo On Wed, Feb 29, 2012 at 4:00 PM, Ross Finlayson wrote: > I would like to know what is the best way to get some of the RTCP info > when using UDP in the server side. > > Server side : we are using BasicUDPSource and StreamReplicato

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread Ross Finlayson
> What about using parseSPropParameterSets ? Yes. You should take the SDP 'configuration' string (from "MediaSubsession::fmtp_spropparametersets()"), and parse this string into a set of SPS and PPS NAL units, using the function "parseSPropParameterSets()". You should then insert these NAL uni

Re: [Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread Barry Stump
At a minimum, you will probably need to add the MPEG start code 0x0001 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 cont

[Live-devel] Questions about project to dump Images frames from H264 stream using live555 and ffmpeg

2012-03-02 Thread David Scravaglieri
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 d