[Libav-user] Decoding H264 using VDPAU

Javier Barandiaran Martirena jbarandiaran at gmail.com
Wed Sep 23 10:48:38 CEST 2015


I am decoding H264 packets from an IP Camera. It is working but the CPU
load is high and I am trying to use hardware acceleration with VDPAU. I am
following the implementations of VDPAUHelper and VDPAUDecoder from libavg (
https://github.com/libavg/libavg/tree/master/src/video)

avcodec_decode_video2 throws this error:
[h264_vdpau @ 0x7f65e400e120] decode_slice_header error

Some things that I noted:
avCodecContext->pix_fmt is always AV_PIX_FMT_NONE
vdpau_h264_init from vdpau_h264 is never called. Should be called?
ff_vdpau_common_init from vdpau.c is never called. Should be called?

This is my FFmpeg version:
fmpeg version 2.8 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
configuration: --enable-shared --enable-hwaccel=h264_vdpau
libavutil      54. 31.100 / 54. 31.100
libavcodec     56. 60.100 / 56. 60.100
libavformat    56. 40.101 / 56. 40.101
libavdevice    56.  4.100 / 56.  4.100
libavfilter     5. 40.101 /  5. 40.101
libswscale      3.  1.101 /  3.  1.101
libswresample   1.  2.101 /  1.  2.101

Any idea what I am missing?
Thanks,
Javier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150923/ad9d7785/attachment.html>


More information about the Libav-user mailing list