[FFmpeg-devel] [PATCH] Use AVBufferPool in MOV

James Almer jamrial at gmail.com
Mon Nov 25 01:58:51 EET 2024


On 11/24/2024 8:52 PM, compn wrote:
> On Sun, 24 Nov 2024 18:14:03 +0100
> Arnaud Masserann <arnaud1602 at gmail.com> wrote:
> 
>> Good question. I just benchmarked all the .mov files in the samples repo.
>> On average, there is a 1.3x speedup. A few files are slower, but 75%
>> of the files have at least a 1.11x speedup, and 25% of the files have
>> at least 1.49x.
>>
>> Outliers include openquicktime/aletrek-tga-8bit.mov (0.8x, so slower),
>> and wmv3/Bluem.mov (10.4x).
>> Full data: https://etconlyview-my.sharepoint.com/:x:/g/personal/a_masserann_etc-onlyview_com/EXomK72G3LdJgoBHCgnYcBUBnxd0FAe90nrIkL4EFZKEuw?e=vj3TRl
>>
>> And FATE passes with valgrind, btw.
> 
> thanks for testing. if the change doesnt break any old files, i have no
> issue with it slowing the speeds of demuxing on old weird files.
> 
> more ancient mov samples if you feel like doing more testing.
> https://samples.ffmpeg.org/A-codecs/MACE/MAC6-mov/
> https://samples.ffmpeg.org/A-codecs/QDM2/
> https://samples.ffmpeg.org/A-codecs/QDMC/
> https://samples.ffmpeg.org/A-codecs/qclp/
> https://samples.ffmpeg.org/A-codecs/qtNONE/
> https://samples.ffmpeg.org/A-codecs/qtfl32/
> https://samples.ffmpeg.org/A-codecs/qtraw/
> https://samples.ffmpeg.org/A-codecs/suite/3G2/
> https://samples.ffmpeg.org/A-codecs/suite/3GP/
> https://samples.ffmpeg.org/A-codecs/uLaw/
> https://samples.ffmpeg.org/mobileVideo_3gp/
> https://samples.ffmpeg.org/archive/container/mov/
> https://samples.ffmpeg.org/V-codecs/SVQ1/
> https://samples.ffmpeg.org/V-codecs/SVQ3/
> https://samples.ffmpeg.org/V-codecs/QT-qdrw/Airplane.mov
> https://samples.ffmpeg.org/V-codecs/QTRLE/
> https://samples.ffmpeg.org/V-codecs/ZyGo/
> https://samples.ffmpeg.org/V-codecs/icod/
> https://samples.ffmpeg.org/V-codecs/pxlt-ApplePixlet/
> https://samples.ffmpeg.org/MPEG-4/
> https://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket4471/spot-day.mj2
> 
> probably a good idea to test the rest of the mov formats like
> psp,m4b,ism,ismv,isma,f4v,avif,heic,heif which i didnt link.
> 
> especially popular camera photo format heic/heif could do with some
> tests.

heif/heic/avif can (and most likely will) spawn several streams as a 
that's how tiled images are handled. So a 4k photo taken from a phone 
can have about 50 512x512 single frame hevc/av1 streams, which is 
another argument in favor of having the pools be container level and not 
stream.

For single stream images, a pool will probably be slightly slower.

> 
> full list of samples https://samples.ffmpeg.org/allsamples.txt
> 
> note that mp4 files are the 2nd most popular format that i see on a
> daily basis , just behind mkv. with support by default in
> windows, mac/ios, android and web browsers, mov/mp4 is probably the #1
> popular format in the world currently. testing and speeding up our
> mov/mp4 demuxer is a good idea.
> 
> 392092 	mov.c
> ugh.
> 
> thanks,
> -compn
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241124/e27b69b1/attachment.sig>


More information about the ffmpeg-devel mailing list