Unable to use hardware decoding on OSX
Set hwdec = auto. In Terminal shows this:
[stream] Video (+) --vid=1 (h264) [stream] Audio (+) --aid=1 --alang=eng () (dts) [stream] Subs (+) --sid=1 --slang=eng () (subrip) Trying to use hardware decoding. AO: [coreaudio] 48000Hz stereo 2ch float [ffmpeg/video] h264: Cannot initialize VDA -12473 [ffmpeg/video] h264: Cannot initialize VDA -12473 [ffmpeg/video] h264: decode_slice_header error [ffmpeg/video] h264: no frame! Error while decoding frame! Error using hardware decoding, falling back to software decoding. AV: 00:00:00 / 00:57:36 (0%) A-V: 0.000 VO: [opengl] 1280x720 => 1280x720 yuv420p AV: 00:00:01 / 00:57:36 (0%) A-V: 0.005 [osd/libass] Error opening font: '/Library/Fonts/MyriadPro-Regular.otf', 1 [osd/libass] Error opening font: '/Library/Fonts/MyriadPro-Regular.otf', 1 AV: 00:00:03 / 00:57:36 (0%) A-V: 0.003
-12473, kVDADecoderDecoderFailedErr - An error was returned by the decoder layer. This may happen for example because of bitstream/data errors during a decode operation. This error may also be returned from VDADecoderCreate when hardware decoder resources are available on the system but currently in use by another process.
So make sure you are trying to decode a file that can be decoded with VDA and no other applications are using VDA currently.
I have tried various MKV files with h264 contents with no success. I cannot find any other application that is using VDA.
I do not use the default driver of OSX though. I use the official web driver from Nvidia (My video card is GTX460) for better gaming performance.
what is the official web driver?
Okay so, we suspect you use a hackintosh.
- AFAIK HW-decoding always uses the onboard Intel-GPU for video en/decoding, so if you don't have one (or don't have it enabled) that may already be the reason
- There is no reason for you to use HW-decoding in the first place. With a desktop-machine you don't have to save power and it should be perfectly powerful enough to decode everything in Software anyway.
You are right. I have not enabled my onboard Intel-GPU. I guess this is the reason.