[Live-devel] H264VideoStreamDiscreteFramer and PPS , SPS
ken at starseedsoft.com
ken at starseedsoft.com
Mon Jul 11 14:28:24 PDT 2011
> > >> What i see inside
> "H264VideoStreamDicreteFramer" is that it expects an 8-byte
> NAL header in order to do its 'aftergetting'.
> >
> >> No it doesn't. I'm not sure why you would
> think this.
> >> ...
> >> Ross Finlayson
> >
> > I thought this out of ignorance of the
> H.264 encoding process. From lines 69-71 of
> H264VideoStreamDiscreteFramer.cpp it appeared from the
> comment "NAL units that..." that somehow the 'encoded frame'
> had been packet-ized with an 8 bit header. From your
> response, i gather that the encoder itself places this 8-bit
> header at the start of the encoded frame.
>
> In your first message, you said "8 byte". Now you say
> "8 bit", which is correct. Yes, the first byte of each
> encoded H.264 NAL unit contains a "nal unit type" code (in
> its last 5 bits) - as described by the H.264 specification.
> --
> Ross Finlayson
I do apologize, thanks for the correction and clarification.
I was unclear that these leading 8-bits were written by the H.264 encoder, I had thought it was added by some other facility, given the name 'network' abstraction layer...
/Ken
More information about the live-devel
mailing list