Page 1 of 1

ffmpeg has issue with hevc_amf

Posted: Fri Dec 22, 2017 2:57 pm
by psilovybin
ffmpeg.exe -i input.mkv -c:v hevc_amf -c:a copy output.mkv

I had converted the AVI master file to h264_amf and it worked fine but using hevc_amf i get the error

Code: Select all

CreateComponent(AMFVideoEncoderHW_HEVC) failed with error 36
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!
I've played around with bit rate, rate width and height but something doesn't feel right any one have any suggestions, i know the AMF is a bit new but the h264 seemed to work really well but was only able to use my GPU at around 25% which was better than nothing.

Re: ffmpeg has issue with hevc_amf

Posted: Fri Dec 22, 2017 7:48 pm
by Zeranoe
Please post the output of a debug or verbose loglevel.

Re: ffmpeg has issue with hevc_amf

Posted: Fri Dec 22, 2017 8:08 pm
by psilovybin
Zeranoe wrote:
Fri Dec 22, 2017 7:48 pm
Please post the output of a debug or verbose loglevel.
relevant debug loglevel

Code: Select all

[hevc_amf @ 0000017e0c9f8ea0] AMFDeviceDX11Impl: 2017-12-22 14:06:26.670      B98 [AMFDeviceDX11Impl]   Debug: InitDX11() created HW DX11.1 device
[hevc_amf @ 0000017e0c9f8ea0] AMFDeviceDX11Impl: 2017-12-22 14:06:26.670      B98 [AMFDeviceDX11Impl]   Debug: InitDX11() created HW DX11 device
[hevc_amf @ 0000017e0c9f8ea0] AMFEncoderHEVC: 2017-12-22 14:06:26.801      B98 [AMFEncoderHEVC]   Error: ..\..\..\..\..\runtime\src\components\EncoderHEVC\EncoderHEVCImpl.cpp(683):Assertion failed:InitAveService() Failed to create AHEVC Service. AHEVC error = 0x80000000
[hevc_amf @ 0000017e0c9f8ea0] AMFEncoderHEVC: 2017-12-22 14:06:26.801      B98 [AMFEncoderHEVC]   Error: ..\..\..\..\..\runtime\src\components\EncoderHEVC\EncoderHEVCImpl.cpp(272):AMF_ERROR 36 : AMF_ENCODER_NOT_PRESENT: Prepare() - Failed to init HEVC service
[hevc_amf @ 0000017e0c9f8ea0] EncoderHEVCPropertySet: 2017-12-22 14:06:26.801      B98 [EncoderHEVCPropertySet]   Debug: ~EncoderHEVCPropertySet(): destroyed
[hevc_amf @ 0000017e0e93b400] CreateComponent(AMFVideoEncoderHW_HEVC) failed with error 36
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Version of ffmpeg:

Code: Select all

ffmpeg version git-2017-12-22-e3b2c85 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
 

Re: ffmpeg has issue with hevc_amf

Posted: Thu Jan 11, 2018 8:17 pm
by Mikhail
Your AMD GPU doesn't have HEVC encoder.