> I've been using the RTSP client of live555 to receive a 'full-hd' stream of 
> H264 encoded video over RTSP, sent by VLC (2.0.5).  I have been using the NAL 
> units sent from live555 (via H264VideoRTPSource) and passing them directly 
> (no packetizer or grouper e.g, just prefixing the start code) to a Media 
> Foundation H264 decoder.  This worked perfectly, so then I changed decoder to 
> avcodec (ffmpeg libraries) and the same video source has corrupted decoder 
> output (sort of grey smudges with bits of the actual frames in).
> 
> I've been reading through the live555 code and searching through posts on 
> forums to try and see if this is a issue with live555 or the av decoder. 

Because you've demonstrated that your received H.264 NAL units render OK with 
one decoder, but not with the other, this suggests that the problem is with the 
decoder.  (Logic 101 :-)

One thing to keep in mind, though, is that because network packets have 
'jitter' (i.e., are not received at a smooth, constant rate), received NAL 
units will need to be buffered before being rendered.  (The rendering time 
should be based upon the 'presentation time' that you get with each NAL unit.)  
Some decoders might do buffering automatically; others might not (in which case 
you'll need to add some buffering yourself).


> FYI, the same RTSP stream works in VLC as client, but *only* with the use of 
> a H264 packetizer in between the RTSP and decoder modules.

I don't understand what you mean by this, because VLC - when receiving RTSP 
streams - does so using the LIVE555 libraries, and so does so by receiving one 
NAL unit at a time, just as your own receiver application does.

You should check whether the (original, unmodified) VLC media player 
application plays your stream OK.  If it does, then you could use the VLC code 
as a model.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to