[Live-devel] Problem in H264 streaming
Ross Finlayson
finlayson at live555.com
Fri Dec 10 00:26:33 PST 2010
>I am encoding a YUV video data into h264 and then I need to stream
>it to the vlc player.
>Each time a video frame is encoded into h264 and then streamed using
>live555. I have created H264MediaSubsession, H264Framer classes
Note that you no longer need to write your own subclass of
"H264VideoStreamFramer". For encoder sources - like yours - we now
provide our own subclass "H264VideoStreamDiscreteFramer" that you
should use instead.
> and have updated the H264Sink
You don't need to 'update' the "H264VideoRTPSink" class. The
existing code works just fine.
>However the data is not getting played properly by the vlc player.
>The time is getting incremented at the vlc side but only the LAST
>FEW FRAMES are shown by the vlc player. I am not able to identify
>the problem.
Make sure that you are setting "fPresentationTime" correctly in your
encoder class (for each delivered NAL unit).
You might also want to experiment using "openRTSP" as a RTSP client,
before you start using VLC.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list