I have code which decode live h264 camera stream and dispay. I have use ffmpeg dxvae decoder.
Problems : avcodec_send_packet return negative error code.
What I have Tried :
I have dump stream packet and save in h264 file. then ffmpeg.exe -hwaccel dxva2 -threads 1 -i output.h264 -f null - -benchmark command verify and it throws error Failed setup for format dxva2_vld: hwaccel initialisation returned error.
I have found h264 file has baseline profile. does baseline profile not supported by dxva2 decoder?
I am able to play file with vlc player.
Also I had decode high profile h264 video using above command and its works fine.
please help to fix this. thanks in advance.