<div dir="ltr"><div><div><div><div><div><div>Hello<br></div>I'm noticing a huge difference in decoding speed with my own code, and with ffmpeg command line tool, especially with large (> 2GB) files.<br></div>This is my current test code: <a href="http://pastebin.com/WbJwAKFx">http://pastebin.com/WbJwAKFx</a><br>

</div>Just looping over the packets, without even reading them, takes 120 seconds.<br></div><br>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.<br>

<br></div>I tried looking at ffmpeg.c, but I didn't notice anything in particular.<br></div>Thanks<br>Marco<br><div><div><div><div><br></div></div></div></div></div>