找回密码
 加入我们
搜索
      
查看: 8636|回复: 14

[软件] dg1咋样才能在linux下转码啊

[复制链接]
发表于 2023-10-20 17:13 | 显示全部楼层 |阅读模式
系统ubuntu22.04 server安装官网说明6.2内核安装了dkms驱动,还有媒体驱动就是不转码
jellyfin打开视频转码就转圈圈
  1. media:~$ sudo dmesg |grep i915
  2. [    0.000000] Command line: BOOT_IMAGE=/vmlinuz-6.2.0-35-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro i915.force_probe=4908 quiet
  3. [    0.034357] Kernel command line: BOOT_IMAGE=/vmlinuz-6.2.0-35-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro i915.force_probe=4908 quiet
  4. [   17.389108] i915 0000:03:00.0: Force probing unsupported Device ID 4908, tainting kernel
  5. [   17.389563] i915 0000:03:00.0: vgaarb: deactivate vga console
  6. [   17.389609] i915 0000:03:00.0: [drm] Local memory IO size: 0x00000000fb800000
  7. [   17.389611] i915 0000:03:00.0: [drm] Local memory available: 0x00000000fb800000
  8. [   17.411241] i915 0000:03:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=io+mem:owns=none
  9. [   17.412144] i915 0000:03:00.0: [drm] Finished loading DMC firmware i915/dg1_dmc_ver2_02.bin (v2.2)
  10. [   17.417577] i915 0000:03:00.0: [drm] GuC firmware i915/dg1_guc_70.bin version 70.5.1
  11. [   17.417582] i915 0000:03:00.0: [drm] HuC firmware i915/dg1_huc.bin version 7.9.3
  12. [   17.434484] i915 0000:03:00.0: [drm] HuC authenticated
  13. [   17.434489] i915 0000:03:00.0: [drm] GuC submission disabled
  14. [   17.434490] i915 0000:03:00.0: [drm] GuC SLPC disabled
  15. [   17.439440] [drm] Initialized i915 1.6.0 20201103 for 0000:03:00.0 on minor 0
  16. [   17.440321] i915 0000:03:00.0: [drm] Cannot find any crtc or sizes
  17. [   17.441078] i915 0000:03:00.0: [drm] Cannot find any crtc or sizes
  18. [   21.859701] snd_hda_intel 0000:04:00.0: bound 0000:03:00.0 (ops i915_audio_component_bind_ops [i915])
复制代码

媒体驱动:
  1. root@media:~# vainfo
  2. Trying display: wayland
  3. error: XDG_RUNTIME_DIR not set in the environment.
  4. Trying display: x11
  5. error: can't connect to X server!
  6. Trying display: drm
  7. libva info: VA-API version 1.21.0
  8. libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
  9. libva info: Found init function __vaDriverInit_1_21
  10. libva info: va_openDriver() returns 0
  11. vainfo: VA-API version: 1.21 (libva 2.18.0)
  12. vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.4.0 (11278187f)
  13. vainfo: Supported profile and entrypoints
  14.       VAProfileNone                   : VAEntrypointVideoProc
  15.       VAProfileNone                   : VAEntrypointStats
  16.       VAProfileMPEG2Simple            : VAEntrypointVLD
  17.       VAProfileMPEG2Simple            : VAEntrypointEncSlice
  18.       VAProfileMPEG2Main              : VAEntrypointVLD
  19.       VAProfileMPEG2Main              : VAEntrypointEncSlice
  20.       VAProfileH264Main               : VAEntrypointVLD
  21.       VAProfileH264Main               : VAEntrypointEncSlice
  22.       VAProfileH264Main               : VAEntrypointFEI
  23.       VAProfileH264Main               : VAEntrypointEncSliceLP
  24.       VAProfileH264High               : VAEntrypointVLD
  25.       VAProfileH264High               : VAEntrypointEncSlice
  26.       VAProfileH264High               : VAEntrypointFEI
  27.       VAProfileH264High               : VAEntrypointEncSliceLP
  28.       VAProfileVC1Simple              : VAEntrypointVLD
  29.       VAProfileVC1Main                : VAEntrypointVLD
  30.       VAProfileVC1Advanced            : VAEntrypointVLD
  31.       VAProfileJPEGBaseline           : VAEntrypointVLD
  32.       VAProfileJPEGBaseline           : VAEntrypointEncPicture
  33.       VAProfileH264ConstrainedBaseline: VAEntrypointVLD
  34.       VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
  35.       VAProfileH264ConstrainedBaseline: VAEntrypointFEI
  36.       VAProfileH264ConstrainedBaseline: VAEntrypointEncSliceLP
  37.       VAProfileHEVCMain               : VAEntrypointVLD
  38.       VAProfileHEVCMain               : VAEntrypointEncSlice
  39.       VAProfileHEVCMain               : VAEntrypointFEI
  40.       VAProfileHEVCMain               : VAEntrypointEncSliceLP
  41.       VAProfileHEVCMain10             : VAEntrypointVLD
  42.       VAProfileHEVCMain10             : VAEntrypointEncSlice
  43.       VAProfileHEVCMain10             : VAEntrypointEncSliceLP
  44.       VAProfileVP9Profile0            : VAEntrypointVLD
  45.       VAProfileVP9Profile0            : VAEntrypointEncSliceLP
  46.       VAProfileVP9Profile1            : VAEntrypointVLD
  47.       VAProfileVP9Profile1            : VAEntrypointEncSliceLP
  48.       VAProfileVP9Profile2            : VAEntrypointVLD
  49.       VAProfileVP9Profile2            : VAEntrypointEncSliceLP
  50.       VAProfileVP9Profile3            : VAEntrypointVLD
  51.       VAProfileVP9Profile3            : VAEntrypointEncSliceLP
  52.       VAProfileHEVCMain12             : VAEntrypointVLD
  53.       VAProfileHEVCMain12             : VAEntrypointEncSlice
  54.       VAProfileHEVCMain422_10         : VAEntrypointVLD
  55.       VAProfileHEVCMain422_10         : VAEntrypointEncSlice
  56.       VAProfileHEVCMain422_12         : VAEntrypointVLD
  57.       VAProfileHEVCMain422_12         : VAEntrypointEncSlice
  58.       VAProfileHEVCMain444            : VAEntrypointVLD
  59.       VAProfileHEVCMain444            : VAEntrypointEncSliceLP
  60.       VAProfileHEVCMain444_10         : VAEntrypointVLD
  61.       VAProfileHEVCMain444_10         : VAEntrypointEncSliceLP
  62.       VAProfileHEVCMain444_12         : VAEntrypointVLD
  63.       VAProfileHEVCSccMain            : VAEntrypointVLD
  64.       VAProfileHEVCSccMain            : VAEntrypointEncSliceLP
  65.       VAProfileHEVCSccMain10          : VAEntrypointVLD
  66.       VAProfileHEVCSccMain10          : VAEntrypointEncSliceLP
  67.       VAProfileHEVCSccMain444         : VAEntrypointVLD
  68.       VAProfileHEVCSccMain444         : VAEntrypointEncSliceLP
  69.       VAProfileAV1Profile0            : VAEntrypointVLD
  70.       VAProfileHEVCSccMain444_10      : VAEntrypointVLD
  71.       VAProfileHEVCSccMain444_10      : VAEntrypointEncSliceLP
复制代码
发表于 2023-10-20 17:27 | 显示全部楼层
用的是我的jellyfin镜像么?

https://www.chiphell.com/thread-2375777-1-1.html
 楼主| 发表于 2023-10-20 17:37 | 显示全部楼层
本帖最后由 Exfat 于 2023-10-20 18:00 编辑


镜nyanmisaka/jellyfin:latest

  1. root@media:~# xpu-smi discovery
  2. +-----------+--------------------------------------------------------------------------------------+
  3. | Device ID | Device Information                                                                   |
  4. +-----------+--------------------------------------------------------------------------------------+
  5. | 0         | Device Name: Intel Corporation DG1 [Iris Xe Graphics] (rev 01)                       |
  6. |           | Vendor Name: Intel(R) Corporation                                                    |
  7. |           | UUID: 00000000-0000-0003-0000-000149088086                                           |
  8. |           | PCI BDF Address: 0000:03:00.0                                                        |
  9. |           | DRM Device: /dev/dri/card0                                                           |
  10. |           | Function Type: physical                                                              |
  11. +-----------+--------------------------------------------------------------------------------------+
  12. root@media:~# docker ps -l
  13. CONTAINER ID   IMAGE                        COMMAND                  CREATED        STATUS                    PORTS     NAMES
  14. 207f20204952   nyanmisaka/jellyfin:latest   "./jellyfin/jellyfin…"   17 hours ago   Up 46 minutes (healthy)             Jellyfin
复制代码
发表于 2023-10-20 18:29 | 显示全部楼层
Exfat 发表于 2023-10-20 17:37
镜nyanmisaka/jellyfin:latest

链接: https://pan.baidu.com/s/17dwm0haoQGEmaBGEr3INDg?pwd=3itf 提取码: 3itf

把这个测试版jellyfin-ffmpeg装进这个docker里再试试?既然会装dkms那用dpkg应该不是什么难事。
 楼主| 发表于 2023-10-20 19:58 | 显示全部楼层
本帖最后由 Exfat 于 2023-10-20 20:00 编辑


装了还是转圈
  1. /videos/18a092e4-9c4d-8364-eafa-cb0521ea2229/live.m3u8

  2. {"Protocol":1,"Id":"9dc8951fd888f2df1335569d00121d74","Path":"https://cntv.sbs/tv?auth=2310201855\u0026id=cctv1","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"hls","Size":424,"Name":null,"IsRemote":true,"ETag":null,"RunTimeTicks":null,"ReadAtNativeFramerate":false,"IgnoreDts":true,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":true,"RequiresOpening":true,"OpenToken":null,"RequiresClosing":true,"LiveStreamId":"a17c75760a04e99b68cf766e11316e1c_09efa0d56b934a82adec00a87b837fb0_9dc8951fd888f2df1335569d00121d74","BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":null,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"h264","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":null,"Title":null,"VideoRange":"SDR","VideoRangeType":"SDR","VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"1080p H264 SDR","NalLengthSize":"0","IsInterlaced":false,"IsAVC":null,"ChannelLayout":null,"BitRate":20000000,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":false,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":25,"RealFrameRate":25,"Profile":"High","Type":1,"AspectRatio":"16:9","Index":-1,"Score":null,"I**ternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"I**ternalUrl":null,"IsTextSubtitleStream":false,"Support**ternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":51,"IsAnamorphic":false},{"Codec":"aac","CodecTag":null,"Language":null,"ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":null,"Title":null,"VideoRange":null,"VideoRangeType":null,"VideoDoViTitle":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"AAC - 5.1","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"5.1","BitRate":320000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"LC","Type":0,"AspectRatio":null,"Index":-1,"Score":null,"I**ternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"I**ternalUrl":null,"IsTextSubtitleStream":false,"Support**ternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":20320000,"Timestamp":null,"RequiredHttpHeaders":{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.85 Safari/537.36"},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":3000,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}

  3. /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 3000000 -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.85 Safari/537.36" -fflags +igndts -init_hw_device vaapi=va:,driver=iHD,kernel_driver=i915 -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i "https://cntv.sbs/tv?auth=2310201855&id=cctv1" -autoscale 0 -map_metadata -1 -map_chapters -1 -threads 0 -sn -codec:v:0 h264_qsv -low_power 1 -preset veryfast -look_ahead 0 -b:v 7616000 -maxrate 7616000 -bufsize 15232000 -profile:v:0 high -level 51 -g:v:0 100 -keyint_min:v:0 100 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24,hwmap=derive_device=qsv,format=qsv" -flags -global_header -codec:a:0 libfdk_aac -bsf:a aac_adtstoasc -ac 2 -ab 384000 -ar 48000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 4 -hls_segment_type fmp4 -hls_fmp4_init_filename "57057be180a7c18199aea3f77aa372e9-1.mp4" -start_number 0 -hls_base_url "hls/57057be180a7c18199aea3f77aa372e9/" -hls_segment_filename "/config/transcodes/57057be180a7c18199aea3f77aa372e9%d.mp4" -hls_playlist_type event -hls_list_size 0 -y "/config/transcodes/57057be180a7c18199aea3f77aa372e9.m3u8"


  4. ffmpeg version 6.0-Jellyfin Copyright (c) 2000-2023 the FFmpeg developers
  5.   built with gcc 12 (Debian 12.2.0-14)
  6.   configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libsvtav1 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  7.   libavutil      58.  2.100 / 58.  2.100
  8.   libavcodec     60.  3.100 / 60.  3.100
  9.   libavformat    60.  3.100 / 60.  3.100
  10.   libavdevice    60.  1.100 / 60.  1.100
  11.   libavfilter     9.  3.100 /  9.  3.100
  12.   libswscale      7.  1.100 /  7.  1.100
  13.   libswresample   4. 10.100 /  4. 10.100
  14.   libpostproc    57.  1.100 / 57.  1.100
  15. libva info: VA-API version 1.20.0
  16. libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
  17. libva info: Found init function __vaDriverInit_1_20
  18. libva info: va_openDriver() returns 0
  19. libva info: VA-API version 1.20.0
  20. libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/iHD_drv_video.so
  21. libva info: Found init function __vaDriverInit_1_20
  22. libva info: va_openDriver() returns 0
  23. [hls @ 0x56455d0b55c0] Skip ('#EXT-X-VERSION:3')
  24. [hls @ 0x56455d0b55c0] Opening 'http://ts-gitv-hb-yh.189smarthome.com/live/program/live/cctv1hd8m/8000000/2023102019/169780298.ts' for reading
  25. [hls @ 0x56455d0b55c0] Opening 'http://ts-gitv-hb-yh.189smarthome.com/live/program/live/cctv1hd8m/8000000/2023102019/169780299.ts' for reading
  26. Input #0, hls, from 'https://cntv.sbs/tv?auth=2310201855&id=cctv1':
  27.   Duration: N/A, start: 78040.441000, bitrate: N/A
  28.   Program 0
  29.     Metadata:
  30.       variant_bitrate : 0
  31.   Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn
  32.     Metadata:
  33.       variant_bitrate : 0
  34.   Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp
  35.     Metadata:
  36.       variant_bitrate : 0
  37. Stream mapping:
  38.   Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_qsv))
  39.   Stream #0:1 -> #0:1 (aac (native) -> aac (libfdk_aac))
  40. Press [q] to stop, [?] for help
  41. [h264 @ 0x56455c5d8200] Failed to end picture decode issue: 23 (internal decoding error).
  42. [h264 @ 0x56455c5d8200] hardware accelerator failed to decode picture
  43. [h264 @ 0x56455d72d3c0] Failed to end picture decode issue: 23 (internal decoding error).
  44. [h264 @ 0x56455d72d3c0] hardware accelerator failed to decode picture
  45. [h264 @ 0x56455d501a80] Failed to end picture decode issue: 23 (internal decoding error).
  46. [h264 @ 0x56455d501a80] hardware accelerator failed to decode picture
  47. Error while decoding stream #0:0: Input/output error
  48. [h264 @ 0x56455dceafc0] Failed to end picture decode issue: 23 (internal decoding error).
  49. [h264 @ 0x56455dceafc0] hardware accelerator failed to decode picture
  50. [h264 @ 0x56455dd76900] Failed to end picture decode issue: 23 (internal decoding error).
  51. [h264 @ 0x56455dd76900] hardware accelerator failed to decode picture
  52. Error while decoding stream #0:0: Input/output error
  53.     Last message repeated 1 times
  54. [h264 @ 0x56455c5d8200] Failed to end picture decode issue: 23 (internal decoding error).
  55. [h264 @ 0x56455c5d8200] hardware accelerator failed to decode picture
  56. Error while decoding stream #0:0: Input/output error
  57. [h264 @ 0x56455d72d3c0] Failed to end picture decode issue: 23 (internal decoding error).
  58. [h264 @ 0x56455d72d3c0] hardware accelerator failed to decode picture
  59. [h264 @ 0x56455d501a80] Failed to end picture decode issue: 23 (internal decoding error).
  60. [h264 @ 0x56455d501a80] hardware accelerator failed to decode picture
  61. Error while decoding stream #0:0: Input/output error
  62. [h264 @ 0x56455dceafc0] Failed to end picture decode issue: 23 (internal decoding error).
  63. [h264 @ 0x56455dceafc0] hardware accelerator failed to decode picture
  64. [h264 @ 0x56455dd76900] Failed to end picture decode issue: 23 (internal decoding error).
  65. [h264 @ 0x56455dd76900] hardware accelerator failed to decode picture
  66. Error while decoding stream #0:0: Input/output error
  67. [h264 @ 0x56455c5d8200] Failed to end picture decode issue: 23 (internal decoding error).
  68. [h264 @ 0x56455c5d8200] hardware accelerator failed to decode picture
  69. Error while decoding stream #0:0: Input/output error
  70.     Last message repeated 1 times
  71. [h264 @ 0x56455d72d3c0] Failed to end picture decode issue: 23 (internal decoding error).
  72. [h264 @ 0x56455d72d3c0] hardware accelerator failed to decode picture
  73. Error while decoding stream #0:0: Input/output error
  74. [h264 @ 0x56455d501a80] Failed to end picture decode issue: 23 (internal decoding error).
  75. [h264 @ 0x56455d501a80] hardware accelerator failed to decode picture
  76. Error while decoding stream #0:0: Input/output error
  77. [h264 @ 0x56455dceafc0] Failed to end picture decode issue: 23 (internal decoding error).
  78. [h264 @ 0x56455dceafc0] hardware accelerator failed to decode picture
  79. Error while decoding stream #0:0: Input/output error
  80. [h264 @ 0x56455dd76900] Failed to end picture decode issue: 23 (internal decoding error).
  81. [h264 @ 0x56455dd76900] hardware accelerator failed to decode picture
  82. [h264 @ 0x56455c5d8200] Failed to end picture decode issue: 23 (internal decoding error).
  83. [h264 @ 0x56455c5d8200] hardware accelerator failed to decode picture
  84. Error while decoding stream #0:0: Input/output error
  85. [h264 @ 0x56455d72d3c0] Failed to end picture decode issue: 23 (internal decoding error).
  86. [h264 @ 0x56455d72d3c0] hardware accelerator failed to decode picture
  87. Error while decoding stream #0:0: Input/output error
  88. [h264 @ 0x56455d501a80] Failed to end picture decode issue: 23 (internal decoding error).
  89. [h264 @ 0x56455d501a80] hardware accelerator failed to decode picture
  90. Error while decoding stream #0:0: Input/output error
  91. [h264 @ 0x56455dceafc0] Failed to end picture decode issue: 23 (internal decoding error).
  92. [h264 @ 0x56455dceafc0] hardware accelerator failed to decode picture
  93. Error while decoding stream #0:0: Input/output error
  94. [h264 @ 0x56455dd76900] Failed to end picture decode issue: 23 (internal decoding error).
  95. [h264 @ 0x56455dd76900] hardware accelerator failed to decode picture
  96. Error while decoding stream #0:0: Input/output error
  97. [h264 @ 0x56455c5d8200] Failed to end picture decode issue: 23 (internal decoding error).
  98. [h264 @ 0x56455c5d8200] hardware accelerator failed to decode picture
  99. Error while decoding stream #0:0: Input/output error
  100. [h264 @ 0x56455d72d3c0] Failed to end picture decode issue: 23 (internal decoding error).
  101. [h264 @ 0x56455d72d3c0] hardware accelerator failed to decode picture
  102. Error while decoding stream #0:0: Input/output error
  103. [h264 @ 0x56455d501a80] Failed to end picture decode issue: 23 (internal decoding error).
  104. [h264 @ 0x56455d501a80] hardware accelerator failed to decode picture
  105. Error while decoding stream #0:0: Input/output error
  106. [h264 @ 0x56455dceafc0] Failed to end picture decode issue: 23 (internal decoding error).
  107. [h264 @ 0x56455dceafc0] hardware accelerator failed to decode picture
  108. Error while decoding stream #0:0: Input/output error
  109. [h264 @ 0x56455dd76900] Failed to end picture decode issue: 23 (internal decoding error).
  110. [h264 @ 0x56455dd76900] hardware accelerator failed to decode picture
  111. Error while decoding stream #0:0: Input/output error
  112. [h264 @ 0x56455c5d8200] Failed to end picture decode issue: 23 (internal decoding error).
  113. [h264 @ 0x56455c5d8200] hardware accelerator failed to decode picture
  114. Error while decoding stream #0:0: Input/output error
  115.     Last message repeated 1 times
  116. [h264 @ 0x56455d72d3c0] Failed to end picture decode issue: 23 (internal decoding error).
  117. [h264 @ 0x56455d72d3c0] hardware accelerator failed to decode picture
  118. [h264 @ 0x56455d501a80] Failed to end picture decode issue: 23 (internal decoding error).
  119. [h264 @ 0x56455d501a80] hardware accelerator failed to decode picture
  120. Error while decoding stream #0:0: Input/output error
  121. [h264 @ 0x56455dceafc0] Failed to end picture decode issue: 23 (internal decoding error).
  122. [h264 @ 0x56455dceafc0] hardware accelerator failed to decode picture
  123. Error while decoding stream #0:0: Input/output error
  124. [h264 @ 0x56455dd76900] Failed to end picture decode issue: 23 (internal decoding error).
  125. [h264 @ 0x56455dd76900] hardware accelerator failed to decode picture
  126. Error while decoding stream #0:0: Input/output error
  127. [h264 @ 0x56455c5d8200] Failed to end picture decode issue: 23 (internal decoding error).
  128. [h264 @ 0x56455c5d8200] hardware accelerator failed to decode picture
  129. Error while decoding stream #0:0: Input/output error
  130.     Last message repeated 1 times
复制代码
发表于 2023-10-20 20:29 | 显示全部楼层

用户空间这边我是没办法了,这个错误(Failed to end picture decode issue: 23 (internal decoding error).)说明还是内核驱动的问题。

另外你dmesg日志里不太正常,这个GuC submission在DG1上需要被启用。
([   17.434489] i915 0000:03:00.0: [drm] GuC submission disabled)

https://github.com/intel-gpu/int ... /intel_uc.c#L54-L55
 楼主| 发表于 2023-10-21 00:02 | 显示全部楼层
Misaka_9993 发表于 2023-10-20 20:29
用户空间这边我是没办法了,这个错误(Failed to end picture decode issue: 23 (internal decoding erro ...

好了破案了CMDLINE要用i915.enable_guc=3"这个参数
发表于 2023-10-21 08:48 | 显示全部楼层
Exfat 发表于 2023-10-21 00:02
好了破案了CMDLINE要用i915.enable_guc=3"这个参数

能用了?速度画质怎么样
发表于 2023-10-21 10:39 | 显示全部楼层
请问看的是哪个教程安装的dkms,我也学习一下,谢谢lz
 楼主| 发表于 2023-10-21 15:35 | 显示全部楼层
Misaka_9993 发表于 2023-10-21 08:48
能用了?速度画质怎么样

画质还行速度也挺快
 楼主| 发表于 2023-10-21 15:36 | 显示全部楼层
Icarus_Radio 发表于 2023-10-21 10:39
请问看的是哪个教程安装的dkms,我也学习一下,谢谢lz

6.2内核的dkms驱动要自己编译
项目地址https://github.com/intel-gpu/int ... /tree/backport/main
发表于 2023-10-21 15:47 | 显示全部楼层
Exfat 发表于 2023-10-21 15:36
6.2内核的dkms驱动要自己编译
项目地址https://github.com/intel-gpu/intel-gpu-i915-backports/tree/ba ...

好的,谢谢,有时间研究一下
 楼主| 发表于 2023-10-21 16:29 | 显示全部楼层
本帖最后由 Exfat 于 2023-10-21 16:43 编辑
Icarus_Radio 发表于 2023-10-21 15:47
好的,谢谢,有时间研究一下


安装两个包intel-platform-vsec-dkms intel-platform-cse-dkms
这两个包的源
  1. sudo apt-get install -y gpg-agent wget
  2. wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | \
  3.   sudo gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg
  4. echo 'deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu jammy arc' | \
  5.   sudo tee  /etc/apt/sources.list.d/intel.gpu.jammy.list
复制代码

教程源地址:https://dgpu-docs.intel.com/inst ... untu-jammy-arc.html
装完这两个包自己编译backport/RELEASE_2335_23.6这个分支的源码用参数make i915dkmsdeb-pkg OS_DISTRIBUTION=UBUNTU_22.04_DESKTOP
发表于 2023-10-21 17:08 来自手机 | 显示全部楼层
DG1的Linux支持性真的是离谱,明明和11代移动端的核显是一样的东西还是Arc系列方便,还支持AV1编码
发表于 2024-1-12 15:09 来自手机 | 显示全部楼层
你好,我是ubuntu-desktop,按照你发的教程源,编译也成功了,/drv/dri也有了,桌面正常显示,但是我想emby转码,转码设置里面不显示相关解码器,请问你是怎么操作的
您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

Archiver|手机版|小黑屋|Chiphell ( 沪ICP备12027953号-5 )沪公网备310112100042806 上海市互联网违法与不良信息举报中心

GMT+8, 2025-4-27 01:43 , Processed in 0.011715 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2007-2024 Chiphell.com All rights reserved.

快速回复 返回顶部 返回列表