Skip to content

HW acceleration va-api -> timeout #1451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ralle2k opened this issue May 16, 2025 · 5 comments
Open

HW acceleration va-api -> timeout #1451

ralle2k opened this issue May 16, 2025 · 5 comments
Labels
needs triage To be triaged

Comments

@ralle2k
Copy link

ralle2k commented May 16, 2025

Describe the bug

Hi, it looks like my configuration is correct but still face transcoder timeouts 408 when va-api is activated.

my environment is a docker nextcloud container on a synology dsm

render device accessible and available for user www-data

root@3b8771f42665:/var/www/html# ls -l /dev/dri/renderD128 crw-rw---- 1 root videodriver 226, 128 May 13 11:05 /dev/dri/renderD128

root@3b8771f42665:/var/www/html# cat /etc/group |grep -i video video:x:44: videodriver:x:937:www-data

vainfo shows no issues to me. X-Server error is irrelevant right?

vainfo error: XDG_RUNTIME_DIR is invalid or not set in the environment. error: can't connect to X server! libva info: VA-API version 1.17.0 libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so libva info: Found init function __vaDriverInit_1_17 libva info: va_openDriver() returns 0 vainfo: VA-API version: 1.17 (libva 2.12.0) vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.1.1 () vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSliceLP VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSliceLP VAProfileJPEGBaseline : VAEntrypointVLD VAProfileJPEGBaseline : VAEntrypointEncPicture VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP VAProfileVP8Version0_3 : VAEntrypointVLD VAProfileHEVCMain : VAEntrypointVLD VAProfileHEVCMain10 : VAEntrypointVLD VAProfileVP9Profile0 : VAEntrypointVLD

running ffmpeg with hw acceleration via cli works

ffmpeg -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i /var/www/html/data/Ralf/files/ich_stehe.mp4 -f null - ffmpeg version 5.1.6-0+deb12u1 Copyright (c) 2000-2024 the FFmpeg developers built with gcc 12 (Debian 12.2.0-14) configuration: --prefix=/usr --extra-version=0+deb12u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared libavutil 57. 28.100 / 57. 28.100 libavcodec 59. 37.100 / 59. 37.100 libavformat 59. 27.100 / 59. 27.100 libavdevice 59. 7.100 / 59. 7.100 libavfilter 8. 44.100 / 8. 44.100 libswscale 6. 7.100 / 6. 7.100 libswresample 4. 7.100 / 4. 7.100 libpostproc 56. 6.100 / 56. 6.100 Input #0, avi, from '/var/www/html/data/Ralf/files/ich_stehe.mp4': Duration: 00:03:02.12, start: 0.000000, bitrate: 1003 kb/s Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p(progressive), 352x288 [SAR 1:1 DAR 11:9], 867 kb/s, 13.50 fps, 13.50 tbr, 13.50 tbn Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 32000 Hz, stereo, fltp, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native)) Stream #0:1 -> #0:1 (mp3 (mp3float) -> pcm_s16le (native)) Press [q] to stop, [?] for help Output #0, null, to 'pipe:': Metadata: encoder : Lavf59.27.100 Stream #0:0: Video: wrapped_avframe, vaapi(progressive), 352x288 [SAR 1:1 DAR 11:9], q=2-31, 200 kb/s, 13.50 fps, 13.50 tbn Metadata: encoder : Lavc59.37.100 wrapped_avframe Stream #0:1: Audio: pcm_s16le, 32000 Hz, stereo, s16, 1024 kb/s Metadata: encoder : Lavc59.37.100 pcm_s16le frame= 2459 fps=0.0 q=-0.0 Lsize=N/A time=00:03:02.29 bitrate=N/A speed= 197x video:1133kB audio:22640kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

Steps To Reproduce

Activate/Deactivate Acceleration via memeories setings

Platform

- OS:
- Browser:
- Memories Version:
- Nextcloud Version:
- PHP Version:

Screenshots

No response

Additional context

  • Any errors in the JS console?
  • Any errors in the Nextcloud server logs?
@ralle2k ralle2k added the needs triage To be triaged label May 16, 2025
@pulsejet
Copy link
Owner

The go-vod container should have additional logs that say what went wrong

@ralle2k
Copy link
Author

ralle2k commented May 18, 2025

Where can i find those logs?

@ralle2k
Copy link
Author

ralle2k commented May 18, 2025

ok found it

2025/05/18 10:41:54 io51f1sarl00: new manager for /var/www/html/data/Ralf/files/Photos/2025/05/25-05-18 11-15-27 1425.mov 2025/05/18 10:41:54 io51f1sarl00-480p: stopping stream 2025/05/18 10:41:54 io51f1sarl00-480p: /usr/bin/ffmpeg -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i "/var/www/html/data/Ralf/files/Photos/2025/05/25-05-18 11-15-27 1425.mov" -copyts -fflags +genpts -vf "format=nv12|vaapi,hwupload,scale_vaapi=force_original_aspect_ratio=decrease:format=nv12:w=854:h=854" -map "0:v:0" "-c:v" h264_vaapi -global_quality 24 -low_power 1 -map "0:a:0?" "-c:a" aac -start_number 0 -avoid_negative_ts disabled -f hls -hls_flags split_by_time -hls_time 3 -hls_segment_type mpegts -hls_segment_filename /tmp/go-vod/oc0inq07siu9/io51f1sarl00-3809413201/480p-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" - 2025/05/18 10:41:55 ffmpeg-error: [Parsed_scale_vaapi_2 @ 0x55c81e304d00] Failed to create processing pipeline config: 12 (the requested VAProfile is not supported). 2025/05/18 10:41:55 ffmpeg-error: [Parsed_scale_vaapi_2 @ 0x55c81e304d00] Failed to configure output pad on Parsed_scale_vaapi_2 2025/05/18 10:41:55 ffmpeg-error: Error reinitializing filters! 2025/05/18 10:41:55 ffmpeg-error: Failed to inject frame into filter network: Input/output error 2025/05/18 10:41:55 ffmpeg-error: Error while processing the decoded data for stream #0:0 2025/05/18 10:41:55 io51f1sarl00-480p: ffmpeg exited with status: 1 2025/05/18 10:41:55 io51f1sarl00-720p: stopping stream 2025/05/18 10:41:55 io51f1sarl00-720p: /usr/bin/ffmpeg -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i "/var/www/html/data/Ralf/files/Photos/2025/05/25-05-18 11-15-27 1425.mov" -copyts -fflags +genpts -vf "format=nv12|vaapi,hwupload,scale_vaapi=force_original_aspect_ratio=decrease:format=nv12:w=1280:h=1280" -map "0:v:0" "-c:v" h264_vaapi -global_quality 24 -low_power 1 -map "0:a:0?" "-c:a" aac -start_number 0 -avoid_negative_ts disabled -f hls -hls_flags split_by_time -hls_time 3 -hls_segment_type mpegts -hls_segment_filename /tmp/go-vod/oc0inq07siu9/io51f1sarl00-3809413201/720p-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" - 2025/05/18 10:41:55 ffmpeg-error: [Parsed_scale_vaapi_2 @ 0x560b26b4cd00] Failed to create processing pipeline config: 12 (the requested VAProfile is not supported). 2025/05/18 10:41:55 ffmpeg-error: [Parsed_scale_vaapi_2 @ 0x560b26b4cd00] Failed to configure output pad on Parsed_scale_vaapi_2 2025/05/18 10:41:55 ffmpeg-error: Error reinitializing filters! 2025/05/18 10:41:55 ffmpeg-error: Failed to inject frame into filter network: Input/output error 2025/05/18 10:41:55 ffmpeg-error: Error while processing the decoded data for stream #0:0 2025/05/18 10:41:55 io51f1sarl00-720p: ffmpeg exited with status: 1 2025/05/18 10:41:55 io51f1sarl00-max: stopping stream 2025/05/18 10:41:55 io51f1sarl00-max: /usr/bin/ffmpeg -loglevel warning -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i "/var/www/html/data/Ralf/files/Photos/2025/05/25-05-18 11-15-27 1425.mov" -copyts -fflags +genpts -vf "format=nv12|vaapi,hwupload,scale_vaapi=force_original_aspect_ratio=decrease:format=nv12" -map "0:v:0" "-c:v" h264_vaapi -global_quality 24 -low_power 1 -map "0:a:0?" "-c:a" aac -start_number 0 -avoid_negative_ts disabled -f hls -hls_flags split_by_time -hls_time 3 -hls_segment_type mpegts -hls_segment_filename /tmp/go-vod/oc0inq07siu9/io51f1sarl00-3809413201/max-%06d.ts -force_key_frames "expr:gte(t,n_forced*3)" - 2025/05/18 10:41:55 ffmpeg-error: [Parsed_scale_vaapi_2 @ 0x559bb41a4cc0] Failed to create processing pipeline config: 12 (the requested VAProfile is not supported). 2025/05/18 10:41:55 ffmpeg-error: [Parsed_scale_vaapi_2 @ 0x559bb41a4cc0] Failed to configure output pad on Parsed_scale_vaapi_2 2025/05/18 10:41:55 ffmpeg-error: Error reinitializing filters! 2025/05/18 10:41:55 ffmpeg-error: Failed to inject frame into filter network: Input/output error 2025/05/18 10:41:55 ffmpeg-error: Error while processing the decoded data for stream #0:0 2025/05/18 10:41:55 io51f1sarl00-max: ffmpeg exited with status: 1

@Kdubs937
Copy link

Same error here. Has always worked in the past until i updated to the latest.

@ralle2k
Copy link
Author

ralle2k commented Jun 6, 2025

any update to this problem pls?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage To be triaged
Projects
None yet
Development

No branches or pull requests

3 participants