<div dir="ltr"><div><div><div>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 (<a href="https://github.com/libavg/libavg/tree/master/src/video" target="_blank">https://github.com/libavg/libavg/tree/master/src/video</a>)<br><br>avcodec_decode_video2 throws this error:<br>[h264_vdpau @ 0x7f65e400e120] decode_slice_header error<br><br>Some things that I noted:<br>avCodecContext->pix_fmt is always AV_PIX_FMT_NONE<br>vdpau_h264_init from vdpau_h264 is never called. Should be called?<br>ff_vdpau_common_init from vdpau.c is never called. Should be called?<br><br>This is my FFmpeg version:<br>fmpeg version 2.8 Copyright (c) 2000-2015 the FFmpeg developers<br>built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)<br>configuration: --enable-shared --enable-hwaccel=h264_vdpau<br>libavutil 54. 31.100 / 54. 31.100<br>libavcodec 56. 60.100 / 56. 60.100<br>libavformat 56. 40.101 / 56. 40.101<br>libavdevice 56. 4.100 / 56. 4.100<br>libavfilter 5. 40.101 / 5. 40.101<br>libswscale 3. 1.101 / 3. 1.101<br>libswresample 1. 2.101 / 1. 2.101<br><br></div>Any idea what I am missing?<br></div>Thanks,<br></div>Javier<br></div>