[FFmpeg-devel] [PATCH] h264 bitstream filter
Benoit Fouet
benoit.fouet
Tue Sep 4 16:11:56 CEST 2007
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)
--
Ben
Purple Labs S.A.
www.purplelabs.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: h264_bsf.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070904/c11d193a/attachment.txt>
More information about the ffmpeg-devel
mailing list