feederbox826 / stash-s6

stashapp/stash docker rewrite
https://github.com/stashapp/stash/issues/4300
GNU Affero General Public License v3.0
8 stars 1 forks source link

Help Wanted: Intel ARC testing #8

Open feederbox826 opened 1 month ago

feederbox826 commented 1 month ago

I have tested most other hardware accelerations, I am just missing Intel ARC. I have no reason to believe they should not work, but it would be nice to have validation :)

Thanks @nerethos for testing V4L2 ❤️

nerethos commented 4 weeks ago

Raspberry Pi 4b

firefox_kHi9VnlxgV

MDKAOD commented 3 days ago

Arc A380

INFO[2024-06-29 15:36:25] [InitHWSupport] Supported HW codecs [3]:
        h264_qsv
        h264_vaapi
        vp9_vaapi

Sometimes works. Doesn't do anything for direct play, as expected. Arc not used for preview generation. GPU preview generation was a big ask on the main branch, and the thread is confusing if it's supposed to work or not, but it does not appear to work here, and I was never able to get it to work at all with the original project.

Errors with video freeze below. Video appears to continue to work when unpaused. Full disclosure, I had difficulty converting over from the main project, so this could be container corruption or something.

2024-06-29T15:49:56.444149742-04:00 INF Response: 200 OK httpRequest={"proto":"HTTP/1.1","remoteIP":"<SANITIZED>","requestID":"301e0ea9f378/ffw7KI0Djx-000898","requestMethod":"GET","requestPath":"/scene/17282/stream.mp4","requestURL":"<SANITIZED>/scene/17282/stream.mp4?resolution=FOUR_K"} httpResponse={"bytes":2327810,"elapsed":1668.903091,"status":200} service=stash
ERRO[2024-06-29 15:49:56] [transcode] ffmpeg error when running command </usr/bin/ffmpeg -hide_banner -v error -hwaccel qsv -hwaccel_output_format qsv -i /data/SiteRips/[Patreon] AMWednesday/Add Ons/WebRip/2160p_29.97002997002997_14872kbps(3840x2160).mp4 -c:v h264_qsv -global_quality 20 -preset faster -movflags frag_keyframe+empty_moov -vf scale_qsv=-1:1920 -an -f mp4 pipe:>: libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0 

Also:

2024-06-29T15:50:43.685301829-04:00 INF Response: 200 OK httpRequest={"proto":"HTTP/1.1","remoteIP":"<SANITIZED>","requestID":"301e0ea9f378/ffw7KI0Djx-000907","requestMethod":"POST","requestPath":"/graphql","requestURL":"<SANITIZED>/graphql"} httpResponse={"bytes":59,"elapsed":12.262026,"status":200} service=stash
ERRO[2024-06-29 15:50:43] [transcode] ffmpeg error when running command </usr/bin/ffmpeg -hide_banner -v error -hwaccel qsv -hwaccel_output_format qsv -ss 20.078476000000002 -i /data/SiteRips/<SANITIZED>.mp4 -c:v h264_qsv -global_quality 20 -preset faster -movflags frag_keyframe+empty_moov -vf scale_qsv=-1:1920 -an -f mp4 pipe:>: libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0 
ERRO[2024-06-29 15:50:43] [transcode] error transcoding video file: context canceled 
2024-06-29T15:50:43.884187128-04:00 WRN Response: 400 Client Error httpRequest={"proto":"HTTP/1.1","remoteIP":"<SANITIZED>","requestID":"301e0ea9f378/ffw7KI0Djx-000908","requestMethod":"GET","requestPath":"/scene/17282/stream.mp4","requestURL":"<SANITIZED>/scene/17282/stream.mp4?resolution=FOUR_K\u0026start=6835.162239583333"} httpResponse={"bytes":16,"elapsed":209.246499,"status":400} service=stash
ERRO[2024-06-29 15:50:44] [transcode] ffmpeg error when running command </usr/bin/ffmpeg -hide_banner -v error -hwaccel qsv -hwaccel_output_format qsv -ss 6835.162239583333 -i /data/SiteRips/<SANITIZED>.mp4 -c:v h264_qsv -global_quality 20 -preset faster -movflags frag_keyframe+empty_moov -vf scale_qsv=-1:1920 -an -f mp4 pipe:>: libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0 
feederbox826 commented 2 days ago

Thanks for the report! It does seem to be struggling with libva, will dive into that

nerethos commented 1 day ago
2024-06-29T15:49:56.444149742-04:00 INF Response: 200 OK httpRequest={"proto":"HTTP/1.1","remoteIP":"<SANITIZED>","requestID":"301e0ea9f378/ffw7KI0Djx-000898","requestMethod":"GET","requestPath":"/scene/17282/stream.mp4","requestURL":"<SANITIZED>/scene/17282/stream.mp4?resolution=FOUR_K"} httpResponse={"bytes":2327810,"elapsed":1668.903091,"status":200} service=stash
ERRO[2024-06-29 15:49:56] [transcode] ffmpeg error when running command </usr/bin/ffmpeg -hide_banner -v error -hwaccel qsv -hwaccel_output_format qsv -i /data/SiteRips/[Patreon] AMWednesday/Add Ons/WebRip/2160p_29.97002997002997_14872kbps(3840x2160).mp4 -c:v h264_qsv -global_quality 20 -preset faster -movflags frag_keyframe+empty_moov -vf scale_qsv=-1:1920 -an -f mp4 pipe:>: libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_21
libva info: va_openDriver() returns 0 

I'm also seeing the above when using my i3-12100, but the transcodes are definitely working. The error seems to occur when ffmpeg has finished the transcode. FWIW I get the same thing with the testing branch on my docker image, which also uses jellyfin-ffmpeg6.

feederbox826 commented 1 day ago

yeah, iirc iHD is the old <g8 driver, which means for some reason it's not using the qsv drivers. returns 0 means nothing went wrong, I think it could also be a pipe problem