Jump to content

HW Acceleration broken, DS918+


echoghost

Recommended Posts

echoghost

as title, hardware acceleration works fine with plex on the same machine. paid up premium member, HW Acceleration all turned on in the options 

 

for reference the DS918+ has an Apollolake Intel Celeron J3455 which is supposed to be supported

 

log attached, seems like this is the obviously relevant part 

/var/packages/EmbyServer/target/ffmpeg/bin/ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -f matroska -i file:"/volume1/storage/video/extra-video/audiovideotest/jellyfish-20-mbps-hd-hevc.mkv" -threads 0 -map 0:0 -an -sn -c:v:0 h264_vaapi  -b:v:0 39760906 -maxrate 39760906 -bufsize 79521812 -profile:v:0 high -level:v:0 4.1 -g:v:0 90 -keyint_min:v:0 90 -sc_threshold:v:0 0  -copyts -vsync -1  -f segment -max_delay 5000000 -avoid_negative_ts disabled -map_metadata -1 -map_chapters -1 -start_at_zero -segment_time 3  -individual_header_trailer 0 -segment_format mpegts -segment_write_temp 1 -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/packages/EmbyServer/target/var/transcoding-temp/8c30a644e29c8fb4faa7c402aa27ebb2.m3u8" -y "/var/packages/EmbyServer/target/var/transcoding-temp/8c30a644e29c8fb4faa7c402aa27ebb2%d.ts"

ffmpeg version 4.0.3-emby_2019_04_09-20190419T215104UTC Copyright (c) 2000-2018 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 7.3.0 (GCC)
Local Time: 17:13:45
T=0.001s
T=0.011s
Input #0, matroska,webm, from 'file:/volume1/storage/video/extra-video/audiovideotest/jellyfish-20-mbps-hd-hevc.mkv':
  Metadata:
    COMPATIBLE_BRANDS: iso4hvc1iso6
    MAJOR_BRAND     : iso4
    MINOR_VERSION   : 1
    ENCODER         : Lavf56.3.100
  Duration: 00:00:30.10, start: 0.067000, bitrate: 19880 kb/s
    Stream #0:0(und): Video: hevc (Main), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], Level 120, 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc, Start-Time 0.067s (default)
    Metadata:
      CREATION_TIME   : 2016-02-05 01:39:02
      LANGUAGE        : und
      HANDLER_NAME    : hevc@GPAC0.5.2-DEV-rev565-g71748d7-ab-suite
T=0.012s
    Last message repeated 2 times
[AVHWDeviceContext @ 0x2274300] No VA display found for device: /dev/dri/renderD128.
Device creation failed: -22.
[hevc @ 0x226e700] No device available for decoder: device type vaapi needed for codec hevc.
Stream mapping:
  Stream #0:0 -> #0:0 (hevc (native) -> h264 (h264_vaapi))
Device setup failed for decoder on input stream #0:0 : Invalid argument
T=0.012s
Local Time: 17:13:45

test file can be found here: http://jell.yfish.us/

ffmpeg-transcode-f602cebb-3b32-4b61-9835-9382df6b2bfe_1.txt

Edited by echoghost
Link to comment
Share on other sites

echoghost

hi,

 

i'm not quite sure how to respond, that's not a guide, it's an overview without action items to complete, therefore no setup

 

did you look at the logs and the quoted output? again plex hardware transcodes just fine 

Link to comment
Share on other sites

@echoghost 

  • Does hw acceleration fail with all files or just with some?
  • How about an h264 source video?

You say that it works with Plex - could you post a Plex transcoder log with hw acceleration?

Link to comment
Share on other sites

echoghost

HW acceleration fails with all files, I haven't found a file it works with

plex logs attached of playing the same file I noted in my first post, as well as a screenshot showing the transcoding in plex

 

5da70920bc758_Annotation20191016130557.p

 

 

plex.log

Link to comment
Share on other sites

  • 3 weeks later...

@@echoghost - Sorry for replying late and thanks for providing the Plex log.

 

Could you please try to set 'HW Acceleration' to 'Advanced' and then disable the HEVC decoder (leaving the H264 encoder enabled) and see what happens?

Thanks

Link to comment
Share on other sites

echoghost

Apparently, No i can't, I don't have any options to do that, see attached image. the forum wouldn't let me actually just paste the image in so I had to attach it..

 

post-340610-0-18013800-1572873005_thumb.png

Link to comment
Share on other sites

@@echoghost - There are no hw acceleration devices available. That's different from the hw detection log you posted earlier (16 Oct). Did you make any change to your system?

Link to comment
Share on other sites

echoghost

I haven't made any changes. Plex is also still hardware transcoding just fine on the same NAS. it's only emby that has these problems 

Link to comment
Share on other sites

echoghost

Restarted emby not the entire system (not possible for now).

That made emby realise there were codecs available, HWAcceleration now seems to work with HVEC decoding enabled or disabled. I've not rebooted the system or updated anything at any point so I imagine there is still a bug, I just can't trigger it anymore

 

New logs attached

ffmpeg-transcode-95d70555-9ab0-4b34-8842-47615080a5c4_1.txt

Link to comment
Share on other sites

  • 3 weeks later...
frotzamuta

Hi all,

 

I just updated to premier to have HW aacceleration on my DS918+. But I also have problems. The framerate is below 20 for transcoded videos.

 

Any suggestions?

Link to comment
Share on other sites

Hi all,

 

I just updated to premier to have HW aacceleration on my DS918+. But I also have problems. The framerate is below 20 for transcoded videos.

 

Any suggestions?

 

Hi there, can we please look at an example? Please attach the information requested in how to report a problem. thanks !

Link to comment
Share on other sites

processcreative

Hi guys, having the same issue with my DS718+, its HW acceleration is broken, so it attempts a SW transcode thus using 99% processor power on a single 720p transcode. Tried the suggestions about switching off the DEcoding setting and it's still the same. Please fix!!

Link to comment
Share on other sites

Hi guys, having the same issue with my DS718+, its HW acceleration is broken, so it attempts a SW transcode thus using 99% processor power on a single 720p transcode. Tried the suggestions about switching off the DEcoding setting and it's still the same. Please fix!!

 

@@processcreative, please see how to report a problem. thanks !

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...