[Libav-user] decoding speed on large files

Marco Gulino marco.gulino at gmail.com
Tue Oct 1 11:25:58 CEST 2013

I'm noticing a huge difference in decoding speed with my own code, and with
ffmpeg command line tool, especially with large (> 2GB) files.
This is my current test code: http://pastebin.com/WbJwAKFx
Just looping over the packets, without even reading them, takes 120 seconds.

When I run "ffmpeg -i mylargefile.mp4 /tmp/extractedSubtitle.srt", it takes
no more than 10 seconds. Of course, I dropped linux kernel caches first, to
force the same file reading speed.

I tried looking at ffmpeg.c, but I didn't notice anything in particular.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131001/654d750b/attachment.html>

More information about the Libav-user mailing list