Opened 8 years ago

Last modified 8 years ago

#4371 new defect

ffmpeg vda hardware decoder not working

Reported by: hahaha1234 Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: vda
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug:
ffmpeg vda hardware decoder is not working.

the goal I want to achieve is using the vda hardware decoder to decode a mp4 file into a yuv file.

How to reproduce:

% ./ffmpeg -vcodec h264_vda -i ~/Downloads/big_buck_bunny_720p_surround.avi out.yuv
ffmpeg version 2.6.1 Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
[10:20:50.169] vtDecompressionDuctCreate signalled err=-8973 (err) (Could not select and open decoder instance) at /SourceCache/CoreMedia_frameworks/CoreMedia-1562.107/Sources/VideoToolbox/VTDecompressionSession.c line 1181
[h264_vda @ 0x7f9feb034600] Failed to init VDA decoder: -12473.
[avi @ 0x7f9feb00da00] Failed to open codec in av_find_stream_info

the following command won't work either. it won't generate any error, but only software decoder will be used even I explicitly requested vda_h264 decoder.

% ./ffmpeg -hwaccel vda -i ~/Downloads/big_buck_bunny_720p_surround.avi -c:v rawvideo -pix_fmt yuv420p out.yuv

the testing video can be downloaded from here:

Change History (3)

comment:1 by hahaha1234, 8 years ago

my environment is mac 2013/intel graphics/mac os 10.10

comment:2 by Michael Niedermayer, 8 years ago

is this a regression / did it work previously ?

comment:3 by Carl Eugen Hoyos, 8 years ago

Priority: importantnormal
Version: 2.6git-master
mov extradata is currently needed for h264 vda decoding.

Note: See TracTickets for help on using tickets.