[MPlayer-dev-eng] [PATCH] H264 over rtsp, v5
Ross Finlayson
finlayson at live555.com
Fri Mar 9 14:37:22 CET 2007
>I can't believe that there isn't a simpler way to play this kind of
>content. This repacking is a huge mess, and doesn't belong to a
>demuxer.
>Since now lavc can decode out of order NALs can't we simply pass
>them to the decoder assuming that one demux_packet contains exactly
>one NAL? (Ross, is this the case? )
Unfortunately I haven't been following this thread, and am generally
rather puzzled by all of the recent patches to the RTSP code. (I
thought this had been working well.)
In any case, for handling H.264 streams, I suggest just doing what
VLC does (see the file "live555.cpp"). The only extra handling that
VLC does for playing H.264 streams is to (i) parse the H.264 config
string (which the LIVE555 library extracts from the server-supplied
SDP description) into 'extra data' for the encoder, and (ii) prepend
0x00 0x00 0x00 0x01 to each NAL unit, before passing it to the
decoder. (I assume that you're using the same H.264 decoding
software that VLC uses.)
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the MPlayer-dev-eng
mailing list