[FFmpeg-user] Decoding frames as fast as possible

Roger Pack rogerdpack2 at gmail.com
Wed Aug 8 19:55:14 EEST 2018


On Tue, Jul 24, 2018 at 2:50 PM, Évan <cerebro.alexiel at gmail.com> wrote:
> On Mon, Jul 23, 2018 at 8:45 AM, Roger Pack wrote:
>> Does ffprobe take 20s?
>
> I just tested and "ffprobe.exe -show_entries frame=pkt_pts_time
> bbb_sunflower_1080p_30fps_normal.mp4" does take time to complete.

I also saw this recently:
https://stackoverflow.com/questions/51547517/using-ffprobe-to-get-number-of-keyframes-in-raw-avi-file-without-processing-en#comment90288838_51547517
(hint: consider asking on superuser and/or av.stackexchange)
Anyway my current hypothesis is that ffmpeg has no way to "skip
reading" input as it were...

> I'm using ffprobe version 4.0 [...] built with gcc 7.3.0 (GCC), x64, win32
> zeranoe version.
> From my test, ffprobes takes like 3 minutes and a half when printing the
> result to the console and a minute and a half when output is redirected to a
> file.
>
> My test video is "Big Buck Bunny" 1080p 30FPS MP4 version, md5 sum
> babbe51b47146187a66632daa791484b.
>
> I can send you my test program but I used ffmpeg (and ffprobe) source code
> to write it.
> Moreover, all CPUs are used at 100% when "building the index" so my program
> seems efficient CPU-side.
>
> Regards
>
> PS : I'm not subscribed to the list so please CC me.


More information about the ffmpeg-user mailing list