[Ffmpeg-devel] access to h264 stream in the decoder

Michael Niedermayer michaelni
Tue Oct 24 12:57:37 CEST 2006


Hi

On Tue, Oct 24, 2006 at 09:40:05AM +0200, Benoit Fouet wrote:
> hello
> 
> Baptiste Coudurier wrote:
> > Hi
> >
> > Luca Barbato wrote:
> >   
> >> M?ns Rullg?rd wrote:
> >>     
> >>> Benoit Fouet said:
> >>>       
> >>>> Hi all,
> >>>>
> >>>> first, as it is the first time I write in here, i'd like to thank every
> >>>> people involved in this project for the work done (and hope i could help
> >>>> some day).
> >>>>
> >>>> What i want to do is to extract the h.264 elementary stream from a
> >>>> mpeg4/3GP container.
> >>>> Is there a way to do it easily ?
> >>>>         
> >>> No, and this question belongs on ffmpeg-users.
> >>>
> >>>       
> >> If it is how as in code snippet it could belong (and I would find useful
> >> too) if is how as in ffmpeg -i file.mp4 -vcodec copy out.m4v or
> >> equivalent...
> >>
> >> lu
> >>
> >>     
> >
> > Well problem with H264 in mp3/3gp is special NAL formatting and SPS/PPS
> > in extradata, to export raw H264 streams from those containers you need
> > a bitstream filter.
> 
> could you please elaborate on this bitstream filter ?
> I'm willing to do it if it's not already done, so that one can easily
> extract raw H264 data from a container bitstream.
> Thanks for the explanation anyway...

see libavcodec/bitstream_filter.c/h

and note that there is no automatic bitstream filter insertion existing
currently (patch welcome too ...)

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In the past you could go to a library and read, borrow or copy any book
Today you'd get arrested for mere telling someone where the library is




More information about the ffmpeg-devel mailing list