[MPlayer-dev-eng] Re: [PATCH] H264 over rtsp, v5
Carl Eugen Hoyos
cehoyos at ag.or.at
Fri Mar 9 14:58:35 CET 2007
Hi Ross!
Ross Finlayson <finlayson <at> live555.com> writes:
> 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.)
As I explained last September, vlc does something similar as AVParser, but with
additional memcopy's. Vlc calls (iii) the h264 packetizer for every frame
received via rtsp (if h264), the packetizer does the parsing and concatenation.
Like this, every frame is copied at least twice in memory only by the packetizer.
I copied (i) and (ii) from vlc more or less verbatim.
Carl Eugen
More information about the MPlayer-dev-eng
mailing list