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 > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user _______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
