linuxserver / docker-emby

GNU General Public License v3.0
120 stars 40 forks source link

N5015 hardware decode failure #66

Closed noho closed 1 year ago

noho commented 1 year ago

Is there an existing issue for this?

Current Behavior

unraid emby docker, version 4.7.11.0, N5015 CPU, hardware decode failure

here's the ffmpeg log, log file attached:

/app/emby/ffmpeg -loglevel +timing -y -print_graphs_file "/config/logs/ffmpeg-transcode-4e528dfa-69d3-4f94-8dc9-6f81841d4909_1graph.txt" -copyts -start_at_zero -init_hw_device "qsv=vad:hw_any,child_device=/dev/dri/renderD128" -filter_hw_device vad -f matroska,webm -c:v:0 hevc_qsv -hwaccel:v:0 qsv -i "/data/tvshows/绝命毒师S02/video file.mkv" -filter_complex "[0:0]vpp_qsv@f1=format=nv12,hwdownload@f2,format@f3=pix_fmts=nv12,format@f4=pix_fmts=yuv420p[f4_out0];[0:2]scale@f5=width=3840:height=2160[f5_out0];[f4_out0][f5_out0]overlay@f6=x=(W-w)/2:y=(H-h):repeatlast=0,hwupload@f7=extra_hw_frames=32[f7_out0]" -map [f7_out0] -map 0:1 -sn -c:v:0 h264_qsv -b:v:0 19582358 -g:v:0 72 -maxrate:v:0 19582358 -bufsize:v:0 39164716 -level:v:0 51 -keyint_min:v:0 72 -r:v:0 23.976024627685547 -profile:v:0 high -aud:v:0 1 -c:a:0 libmp3lame -ab:a:0 192000 -ac:a:0 2 -metadata:s:a:0 language=eng -filter:a:0 "volume=2" -disposition:a:0 default -max_delay 5000000 -avoid_negative_ts disabled -f segment -map_metadata -1 -map_chapters -1 -segment_format mpegts -segment_list "/config/transcoding-temp/1C1EA2/1C1EA2.m3u8" -segment_list_type m3u8 -segment_time 00:00:03.000 -segment_start_number 0 -individual_header_trailer 0 -write_header_trailer 0 -segment_writetemp 1 "/config/transcoding-temp/1C1EA2/1C1EA2%d.ts"

18:08:01.105 ffmpeg version 5.0.0-emby_2022_05_27-u1 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC 18:08:01.105 built with gcc 8.3.0 (crosstool-NG 1.24.0) 18:08:01.105 Execution Date: 2023-03-05 18:08:01 18:08:01.301 [matroska,webm @ 0x759c40] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle (pgssub)): unspecified size Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options 18:08:01.301 WARNING: defaulting hwaccel_output_format to qsv for compatibility with old commandlines. This behaviour is DEPRECATED and will be removed in the future. Please explicitly set "-hwaccel_output_format qsv". 18:08:01.301 Input #0, matroska,webm, from '/data/tvshows/绝命毒师S02/video file.mkv': 18:08:01.301 Metadata: 18:08:01.301 title : cXcY@FRDS 18:08:01.301 encoder : libebml v1.3.1 + libmatroska v1.4.2 18:08:01.301 creation_time : 2022-09-10T08:23:56.000000Z 18:08:01.301 Duration: 00:47:16.42, start: 0.000000, bitrate: 9791 kb/s 18:08:01.301 Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv), 3840x2160 [SAR 1:1 DAR 16:9], Level 150, 23.98 fps, 23.98 tbr, 1k tbn, Start-Time 0.005s (default) 18:08:01.301 Metadata: 18:08:01.301 BPS : 9134369 18:08:01.302 BPS-eng : 9134369 18:08:01.302 DURATION : 00:47:13.539000000 18:08:01.302 DURATION-eng : 00:47:13.539000000 18:08:01.302 NUMBER_OF_FRAMES: 67937 18:08:01.302 NUMBER_OF_FRAMES-eng: 67937 18:08:01.302 NUMBER_OF_BYTES : 3235324173 18:08:01.302 NUMBER_OF_BYTES-eng: 3235324173 18:08:01.302 Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default) 18:08:01.302 Metadata: 18:08:01.302 title : English-DD5.1£cXcY 18:08:01.302 BPS : 640000 18:08:01.302 BPS-eng : 640000 18:08:01.302 DURATION : 00:47:16.416000000 18:08:01.302 DURATION-eng : 00:47:16.416000000 18:08:01.302 NUMBER_OF_FRAMES: 88638 18:08:01.302 NUMBER_OF_FRAMES-eng: 88638 18:08:01.302 NUMBER_OF_BYTES : 226913280 18:08:01.302 NUMBER_OF_BYTES-eng: 226913280 18:08:01.302 Stream #0:2(chi): Subtitle: hdmv_pgs_subtitle (default) (forced) 18:08:01.302 Metadata: 18:08:01.302 title : 中上英下-SUP_YYeTs字幕£cXcY 18:08:01.302 BPS : 25406 18:08:01.302 BPS-eng : 25406 18:08:01.302 DURATION : 00:43:58.886000000 18:08:01.302 DURATION-eng : 00:43:58.886000000 18:08:01.302 NUMBER_OF_FRAMES: 1103 18:08:01.302 NUMBER_OF_FRAMES-eng: 1103 18:08:01.302 NUMBER_OF_BYTES : 8380744 18:08:01.302 NUMBER_OF_BYTES-eng: 8380744 18:08:01.302 Stream #0:3(chi): Subtitle: ass 18:08:01.302 Metadata: 18:08:01.302 title : 简体中文-ASS_R3-官方字幕£cXcY 18:08:01.302 BPS : 107 18:08:01.302 BPS-eng : 107 18:08:01.302 DURATION : 00:43:59.010000000 18:08:01.302 DURATION-eng : 00:43:59.010000000 18:08:01.302 NUMBER_OF_FRAMES: 507 18:08:01.302 NUMBER_OF_FRAMES-eng: 507 18:08:01.302 NUMBER_OF_BYTES : 35591 18:08:01.302 NUMBER_OF_BYTES-eng: 35591 18:08:01.302 Stream #0:4(chi): Subtitle: subrip 18:08:01.302 Metadata: 18:08:01.302 title : 简体中文-SRT_YYeTs字幕£cXcY 18:08:01.302 BPS : 41 18:08:01.302 BPS-eng : 41 18:08:01.302 DURATION : 00:43:58.900000000 18:08:01.302 DURATION-eng : 00:43:58.900000000 18:08:01.302 NUMBER_OF_FRAMES: 552 18:08:01.302 NUMBER_OF_FRAMES-eng: 552 18:08:01.302 NUMBER_OF_BYTES : 13667 18:08:01.302 NUMBER_OF_BYTES-eng: 13667 18:08:01.302 Stream #0:5(eng): Subtitle: ass 18:08:01.302 Metadata: 18:08:01.302 title : 英文-ASS_官方字幕£cXcY 18:08:01.302 BPS : 100 18:08:01.302 BPS-eng : 100 18:08:01.302 DURATION : 00:43:28.500000000 18:08:01.302 DURATION-eng : 00:43:28.500000000 18:08:01.302 NUMBER_OF_FRAMES: 499 18:08:01.302 NUMBER_OF_FRAMES-eng: 499 18:08:01.302 NUMBER_OF_BYTES : 32677 18:08:01.302 NUMBER_OF_BYTES-eng: 32677 18:08:01.311 Stream mapping: 18:08:01.311 Stream #0:0 (hevc_qsv) -> vpp_qsv:default (graph 0) 18:08:01.311 Stream #0:2 (pgssub) -> scale:default (graph 0) 18:08:01.311 hwupload:default (graph 0) -> Stream #0:0 (h264_qsv) 18:08:01.311 Stream #0:1 -> #0:1 (eac3 (native) -> mp3 (libmp3lame)) 18:08:01.311 Press [q] to stop, [?] for help 18:08:02.671 [hevc_qsv @ 0x7ba940] get_buffer() failed 18:08:02.671 Error while decoding stream #0:0: Cannot allocate memory 18:08:02.671 [hevc_qsv @ 0x7ba940] get_buffer() failed 18:08:02.671 Error while decoding stream #0:0: Cannot allocate memory 18:08:02.671 [hevc_qsv @ 0x7ba940] get_buffer() failed 18:08:02.671 Error while decoding stream #0:0: Cannot allocate memory 18:08:02.672 [hevc_qsv @ 0x7ba940] get_buffer() failed 18:08:02.672 Error while decoding stream #0:0: Cannot allocate memory 18:08:02.672 [hevc_qsv @ 0x7ba940] get_buffer() failed 18:08:02.672 Error while decoding stream #0:0: Cannot allocate memory 18:08:02.672 [hevc_qsv @ 0x7ba940] get_buffer() failed 18:08:02.672 Error while decoding stream #0:0: Cannot allocate memory 18:08:02.699 [hevc_qsv @ 0x7ba940] get_buffer() failed ffmpeg-transcode-4e528dfa-69d3-4f94-8dc9-6f81841d4909_1.txt

Expected Behavior

No response

Steps To Reproduce

in emby, play video file.mkv.

not all video failed, just x265 encoded video.

Environment

- OS:unraid 6.11.5
- How docker service was installed: lscr.io/linuxserver/emby

CPU architecture

x86-64

Docker creation

<img width="1118" alt="截屏2023-03-05 19 22 21" src="https://user-images.githubusercontent.com/14158367/222957498-88a1381f-2540-4fe6-9c2e-16a8608f02d4.png">

Container logs

N/A

Edited to remove copywrited material references

github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity