[FFmpeg-user] hevc_vaapi mkv output fails with generic error

Andreas Löer a.loeer at web.de
Fri Jul 10 09:41:28 EEST 2020


Hello everyone,

I am currently unable to transcode H264 MKV to HEVC MKV on an AMD Ryzen
3400G running openSuSE Leap 15.2. 
 
Using following command
 
ffmpeg -loglevel debug -vaapi_device /dev/dri/renderD128 -hwaccel vaapi
-hwaccel_output_format vaapi -i sample.mkv -c:v hevc_vaapi -vf
'hwdownload,format=nv12,hwupload' -rc_mode 3 -b:v 3M -profile:v 1 -tier
1 -level 153 -c:a copy output.mkv
 
I am getting follwing error message
 
[AVHWFramesContext @ 0x52a3cc0] Created surface 0x22.
[AVHWFramesContext @ 0x52a3cc0] Direct mapping disabled: deriving image
does not work: 1 (operation failed).
[matroska @ 0x5235ec0] get_metadata_duration returned: 0
Could not write header for output file #0 (incorrect codec parameters
?): Invalid data found when processing input
Error initializing output stream 0:0 --
[AVIOContext @ 0x5209740] Statistics: 0 seeks, 1 writeouts
[AVIOContext @ 0x5284400] Statistics: 197393 bytes read, 2 seeks
 
FFmpeg static build by myself.
 
Is there anyone who can help me understanding what is going on here and
how to get this working?
I am breaking my head for 3 days now trying to solve this issue.
 
Full debug output here: https://pastebin.com/khp5g9F5
<https://deref-web.de/mail/client/gxpESspRx9g/dereferrer/?redirectUrl=https%3A%2F%2Fpastebin.com%2Fkhp5g9F5>
 
Best regards,
Andreas


More information about the ffmpeg-user mailing list