[FFmpeg-devel] [PATCH] h264 bitstream filter
Michael Niedermayer
michaelni
Tue Sep 4 19:56:29 CEST 2007
Hi
On Tue, Sep 04, 2007 at 04:29:24PM +0200, Benoit Fouet wrote:
> Benoit Fouet wrote:
> > Michael Niedermayer wrote:
> >
> >> Hi
> >>
> >> On Tue, Sep 04, 2007 at 02:50:38PM +0200, Benoit Fouet wrote:
> >>
> >>
> >>> Michael Niedermayer wrote:
> >>>
> >>>
> >>>> Hi
> >>>>
> >>>> On Tue, Sep 04, 2007 at 02:40:50PM +0200, Benoit Fouet wrote:
> >>>>
> >>>>
> >>>>
> >>>>> Michael Niedermayer wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Hi
> >>>>>>
> >>>>>> On Tue, Sep 04, 2007 at 02:35:01PM +0200, Benoit Fouet wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Michael Niedermayer wrote:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>> doesnt the code miss reformating slices and other multiple nal units
> >>>>>>>> per frame?
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>> i was thinking that the filter received nal units, not frames.
> >>>>>>> am i wrong ?
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>> it should receive frames but it would be best if it would work with
> >>>>>> both frames as well as nal units ...
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>> that means input has to be parsed, or ?
> >>>>> is there such a parser ?
> >>>>>
> >>>>>
> >>>>>
> >>>> ?
> >>>>
> >>>> if you get nal units you output nal units
> >>>> if you get frames you output frames
> >>>> just change the headers from len to 001
> >>>>
> >>>>
> >>>>
> >>>>
> >>> this means reallocating in case len is not coded on 4 bytes
> >>>
> >>>
> >> you dont need 4 bytes
> >> 3 bytes ( 00 00 01 ) is enough, the 4th 00 is only needed before
> >> SPS, PPS and the first NAL unit of an access unit
> >>
> >>
> >>
> >
> > ok, then, how is the attached patch ?
> > (i also added a check on length size)
> >
> >
>
> ahem... sorry, updated patch attached, the previous one was writing
patch ok if it works
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Concerning the gods, I have no means of knowing whether they exist or not
or of what sort they may be, because of the obscurity of the subject, and
the brevity of human life -- Protagoras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070904/73058edc/attachment.pgp>
More information about the ffmpeg-devel
mailing list