Jump to content


Photo

HW Acceleration broken, DS918+


  • Please log in to reply
16 replies to this topic

#1 echoghost OFFLINE  

echoghost

    Member

  • Members
  • 19 posts
  • Local time: 03:46 AM

Posted 10 October 2019 - 01:18 PM

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/

Attached Files


Edited by echoghost, 10 October 2019 - 01:19 PM.


#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139859 posts
  • Local time: 10:46 PM

Posted 10 October 2019 - 01:24 PM

Hi there, did you follow our hardware acceleration setup guide?

https://github.com/M...ration-Overview



#3 echoghost OFFLINE  

echoghost

    Member

  • Members
  • 19 posts
  • Local time: 03:46 AM

Posted 10 October 2019 - 02:44 PM

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 



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139859 posts
  • Local time: 10:46 PM

Posted 11 October 2019 - 04:47 PM

@echoghost

Can you attach the hardware detection log as well? Thanks.



#5 echoghost OFFLINE  

echoghost

    Member

  • Members
  • 19 posts
  • Local time: 03:46 AM

Posted 12 October 2019 - 07:05 AM

i sure can

 

Attached Files



#6 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1854 posts
  • Local time: 04:46 AM

Posted 15 October 2019 - 09:55 PM

@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?



#7 echoghost OFFLINE  

echoghost

    Member

  • Members
  • 19 posts
  • Local time: 03:46 AM

Posted 16 October 2019 - 08:13 AM

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

 

 

Attached Files

  • Attached File  plex.log   26.11KB   3 downloads


#8 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1854 posts
  • Local time: 04:46 AM

Posted 02 November 2019 - 10:32 PM

@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



#9 echoghost OFFLINE  

echoghost

    Member

  • Members
  • 19 posts
  • Local time: 03:46 AM

Posted 04 November 2019 - 09:10 AM

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..

 

Attached Files



#10 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139859 posts
  • Local time: 10:46 PM

Posted 04 November 2019 - 12:32 PM

Please attach the hardware detection log. Thanks.

#11 echoghost OFFLINE  

echoghost

    Member

  • Members
  • 19 posts
  • Local time: 03:46 AM

Posted 06 November 2019 - 12:09 PM

i will if this attach button ever works

Attached Files



#12 softworkz OFFLINE  

softworkz

    Advanced Member

  • Developers
  • 1854 posts
  • Local time: 04:46 AM

Posted 06 November 2019 - 04:01 PM

@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?



#13 echoghost OFFLINE  

echoghost

    Member

  • Members
  • 19 posts
  • Local time: 03:46 AM

Posted 06 November 2019 - 07:18 PM

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 



#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139859 posts
  • Local time: 10:46 PM

Posted 06 November 2019 - 07:30 PM

Can you try rebooting the NAS and then try what softworkz asked? Thanks.



#15 chacawaca OFFLINE  

chacawaca

    Advanced Member

  • Members
  • 122 posts
  • Local time: 10:46 PM
  • LocationQuebec, Canada

Posted 07 November 2019 - 12:50 PM

For information 4.3.0.19 with DS918+, i dont have problem with HW.



#16 echoghost OFFLINE  

echoghost

    Member

  • Members
  • 19 posts
  • Local time: 03:46 AM

Posted 08 November 2019 - 12:09 PM

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

Attached Files



#17 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 139859 posts
  • Local time: 10:46 PM

Posted 08 November 2019 - 03:30 PM

Thanks for the info.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users