On Tue, Mar 3, 2026 at 8:56 PM Terje J. Hanssen via Cin
<cin@lists.cinelerra-gg.org> wrote:
I wonder if "Settings|Preferences|Performance|Use HW Device" is meant to set both gpu accelerated decoding and encoding (rendering)?
No, it for decoding only, encoding controlled by preset. (I briefly
tied two in one of my experimental patchsets, but decided not to do
this, because I like flexibility and my GPU does not support full
Vulkan pipeline anyway)
and how does this possibly interact/work with selecting video preset, compression hwaccel methods or not?
Use HW Device has available 5 options: none, vaapi, vdpau, cuda, vulkan, while qsv is missing, reason?
Because this is not hwaccel device in sense you can't just call codec
with this decode method set, you need to pick specific codec name at
decoding.
I can add this kind of decoding in similar way mediacodec decoding
works, if you can test that.
I ran two av1_qsv rendering tests on Intel AlderLake/DG2 Using HW Device: None and vaapi respectively to exemplify this
using the latest Cinelerra Infinity - built: Mar 1 2026 06:30:41
1) Settings|Preferences|Performance|Use HW Device: None
file: hdv09_04.m2t
compression
av1_qsv_8b420.mp4
# Requires specific GPU hardware encoding capability
# as well as required software implementation.
cin_pix_fmt=nv12
profile=main
# global_quality=25
libva info: VA-API version 1.23.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
libva info: VA-API version 1.23.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
Render::render_single: Session finished.
** rendered 5972 frames in 18.274 secs, 326.803 fps
audio0 pad 64 0 (64)
Fast and adequate quality/colors, although global quality may increase it somewhat.
2) Settings|Preferences|Performance|Use HW Device: vaapi (just to test)
file: hdv09_04.m2t
compression
av1_qsv_8b420.mp4
# Requires specific GPU hardware encoding capability
# as well as required software implementation.
cin_pix_fmt=nv12
profile=main
# global_quality=25
libva info: VA-API version 1.23.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
libva info: VA-API version 1.23.0
libva info: Trying to open /usr/lib64/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_22
libva info: va_openDriver() returns 0
int FFVideoConvert::convert_picture_vframe(VFrame*, AVFrame*, AVFrame*):
Error retrieving data from GPU to CPU
file: /Videoklipp/AV1/hdv09_04.m2t
int FFVideoConvert::convert_picture_vframe(VFrame*, AVFrame*, AVFrame*):
Error retrieving data from GPU to CPU
file: /Videoklipp/AV1/hdv09_04.m2t
int FFVideoConvert::convert_picture_vframe(VFrame*, AVFrame*, AVFrame*):
Error retrieving data from GPU to CPU
Hm, strange. Does this behave the same on other input files (h264,
hevc, vp9 ..) ?