Bug 419954

Summary: HW acceleration (VAAPI) not available in Appimage
Product: [Applications] kdenlive Reporter: Martin <admin>
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED UPSTREAM    
Severity: normal CC: fritzibaby
Priority: NOR Flags: fritzibaby: MOVIT+
Version First Reported In: 19.12.3   
Target Milestone: ---   
Platform: Appimage   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Martin 2020-04-11 12:54:23 UTC
When using the Appimage version of kdenlive (I tested 19.12.3 and 20.04-rc2) HW acceleration (VAAPI) is not available.

STEPS TO REPRODUCE
Settings -> Run Config Wizard -> Check hardware acceleration

OBSERVED RESULT
"No hardware encoders found."
Terminal output is:
// FFMPEG ARGS:  ("-hide_banner", "-y", "-vaapi_device", "/dev/dri/renderD128", "-f", "lavfi", "-i", "smptebars=duration=5:size=1280x720:rate=25", "-vf", "format=nv12,hwupload", "-c:v", "h264_vaapi", "-an", "-f", "mp4", "/tmp/KpfdjT.mp4")
/// ++ VAAPI FAILED ::::::

EXPECTED RESULT
HW acceleration works like when I use the version from the Ubuntu repository.


It seems that the ffmpeg version in the Appimage doesn't recognize the "vaapi_device" option (the ffmpeg in /usr/bin/ does):

» /usr/bin/ffmpeg -hide_banner -vaapi_device /dev/dri/renderD128
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'


» /tmp/.mount_kdenli0yi7bI/usr/bin/ffmpeg -hide_banner -vaapi_device /dev/dri/renderD128
Unrecognized option 'vaapi_device'.
Error splitting the argument list: Option not found

If you need additional information please let me know.
Comment 1 emohr 2020-04-12 13:42:37 UTC
Thank you for contribution and help. Hardware acceleration (GPU) is not implemented due to stability issues so far. Hardware acceleration depends on MOVIT integration on MLT. Dev's working on it.
Comment 2 Martin 2020-04-13 17:23:40 UTC
Hi emohr,

thanks for your answer. Just to make sure, there is no way to use my own ffmpeg version with the appimage kdenlive, is there?
Comment 3 emohr 2020-04-13 17:55:29 UTC
You can try: Hit CTRL+SHIFT+, (comma)-> Environment -> there you can set the FFMPEG paths.