[Ffmpeg-devel] Re: [PATCH] h264 muxing in mp4

Baptiste COUDURIER baptiste.coudurier
Tue Mar 7 17:40:47 CET 2006


Loren Merritt wrote:
> On Sun, 5 Mar 2006, Baptiste COUDURIER wrote:
> 
>> Hi,
>>
>> Second attempt. Nal parsing is done in mov muxer, works for h264
>> bytestream in avi, x264 encoding, and stream copy from mp4.
>>
>> I would like some comments about avc_parse_nal_units and mov_write_avcc,
> 
> 
> You only look for 1 sps and 1 pps? There can be more than 1 of each.
> In a h264 elementary stream, they're even allowed to be spread
> throughout the file, not all at the beginning.
> Though I haven't seen any codecs other than the reference which use
> multiple sps/pps, so it's not a high priority.

All right. I add an XXX.

>> If anyone see a better or faster way to parse, it would be great.
> 
> 
> 174795 dezicycles in find_startcode_v0 (your algo)
>  90398 dezicycles in find_startcode_v1
>  72391 dezicycles in find_startcode_v2 (generic)
>  69425 dezicycles in find_startcode_v2 (endian)

Is better, faster this way ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: movenc_h264.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20060307/4adeed10/attachment.txt>



More information about the ffmpeg-devel mailing list