[Libav-user] Maximize CPU usage when decoding h264

Winter Fa winterfa at gmail.com
Tue Mar 25 03:44:10 CET 2014


> Is your use-case to decode as many files as possible in a given time 
> or to decode one file as fast as possible? If you have many files, 
> -threads 1 is significantly more effective (up to the bandwidth of 
> your hard disk). 

Thanks Carl, my use-case is to decode one stream as fast as possible, so I
can't use the approach of running several single-threaded instances to speed
up the process.

> There is a x264 option that takes this into account iirc 
> but it may not suit your use case.)

And I have to decode h264 videos from random sources, so I have no control
of how the video being encoded. 

Can I say that, at the decoder side, there is nothing I can do to ensure all
h264 videos from random sources can use the maximum CPU power to decode?

> Intra-only streams allow to use much more CPU while decoding.

Can you point out for me which tool can show if the h264 video is intra-only
streams?

Thanks again!





--
View this message in context: http://libav-users.943685.n4.nabble.com/Libav-user-Maximize-CPU-usage-when-decoding-h264-tp4659470p4659475.html
Sent from the libav-users mailing list archive at Nabble.com.


More information about the Libav-user mailing list