[Libav-user] vaapi h.264 decoding with libav
Xiang, Haihao
haihao.xiang at intel.com
Wed Apr 1 02:54:58 CEST 2015
You should use a player with VAAPI enabled.
e.g. MPV + ffmpeg/libav
$> mpv --hwdec=vaapi --vo=vaapi <video file>
You will see the message of 'Trying to use hardware decoding' in the log
and CPU usage drop a lot if using VAAPI.
Thanks
Haihao
> Hello!
>
> I am using ffmpeg/libav 2.5.3 on Haswell 4770 (HD 4600).
> I am using libav for decoding h.264 video stream.
> My ffmpeg build supports vaapi hardware decoder.
>
> ...
> AVCodec *pCodec = FindDecoder(AV_CODEC_ID_H264);
> ...
>
> How to check am I using hardware decoder or not?
>
> P.S.
> I have several ffmpeg builds with vaapi and without, But don`t see any difference in performance. Maybe cpu is very powerfull?
> I am decoding two separate 1080p yuv420 streams in realtime.
>
> --
> Nikita Orlov
> Skype: nik_stet
> QQ: 2717846083
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
More information about the Libav-user
mailing list