[Live-devel] Passing H.264 RTP stream to hardware decoder
Ross Finlayson
finlayson at live555.com
Tue Nov 29 06:45:45 PST 2011
> Thanks for a prompt reply. I guess I'm still a bit confused. How would my application access H264 frame
> received by H264VideoRTPSource ?
You would write a "MediaSink" subclass that encapsulates your decoder, and then call
yourDecoderMediaSink->startPlaying(yourH264VideoRTPSource, ... );
and then
env->taskScheduler().doEventLoop();
to enter the event loop.
(See the numerous examples of this in the "testProgs" directory.)
> One of the requirements I have, is that decoder will ask for a frame
> when it's ready to process one, so I need to have a routine that returns the last H264 frame and its size.
Yes, your decoder "MediaSink" subclass would do this by implementing the "continuePlaying()" virtual function by calling "getNextFrame()" on its input source (which, in this case, will be "yourH264VideoRTPSource"). I suggest that you look at the code for "FileSink" (another "MediaSink" subclass) for hints on how to do this.
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111129/b12f264e/attachment-0001.html>
More information about the live-devel
mailing list