Kodi Community Forum
Kodi from Debian - Support Thread - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Kodi from Debian - Support Thread (/showthread.php?tid=363611)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18


RE: Kodi from Debian - Support Thread - talon2k3 - 2023-03-29

Hey there - might be a silly question, but the link for the 20.0 tar does not seem to be working anymore (worked great a month or so ago!). Any chance 20.1 is out there someplace?


RE: Kodi from Debian - Support Thread - izprtxqkft - 2023-03-30

(2023-03-29, 22:35)talon2k3 Wrote: Hey there - might be a silly question, but the link for the 20.0 tar does not seem to be working anymore (worked great a month or so ago!). Any chance 20.1 is out there someplace?

https://www.deb-multimedia.org/dists/testing/main/binary-amd64/package/kodi


RE: Kodi from Debian - Support Thread - talon2k3 - 2023-03-30

That'll do it! Much thanks!


RE: Kodi from Debian - Support Thread - basilgello - 2023-03-30

@talon2k3 It is already in sid and will be available in bookworm tomorrow.

@jepsizofye I noticed you recommending third-party repositories in this topic for the second time. Please stop recommending anything that is not in Debian official repositories for the following reasons:

* The repo you mentioned is not affiliated with Team Kodi, Debian Project or me in any way. I have absolutely no relation to that but users may think I am supporting unofficial builds.

* The repo builds not only Kodi but FFmpeg and other libraries without timely security fixes. In official Debian, Security Team is responsible for fixing CVEs as soon as possible, and I am doing my best to fix issues spotted in packages related to Kodi.

* I am working hard to introduce timely updates of Kodi into Debian, and users should be aware of that. Instead, many people still think Kodi from Debian is worse in terms of quality than Kodi from unofficial repos. We should unite the users, not spill them.


RE: Kodi from Debian - Support Thread - izprtxqkft - 2023-03-30

my mistake @basilgello

i misunderstood the "official" part of the thread

it will not happen again


RE: Kodi from Debian - Support Thread - TheJezstarr - 2023-04-06

As an aside, we really shouldn't be directing people to dmo anyway. It WILL break your system.


RE: Kodi from Debian - Support Thread - izprtxqkft - 2023-04-06

(2023-04-06, 23:28)TheJezstarr Wrote: As an aside, we really shouldn't be directing people to dmo anyway. It WILL break your system.

point was already made and received, do you have any support questions for this thread?


RE: Kodi from Debian - Support Thread - mirtouf - 2023-04-07

Hi all,

after I while I get back to Kodi and as I had the opportunity to grab a new mini PC with an Intel N95 processor, I decided to give a try to Kodi v20.1 and Debian Bookworm with all software as proposed in the testing repository.
As Bookworm is shipped directly with Linux 6.1 (6.1.20 as this time), Mesa 22.3.6, ffmpeg 5.1.2 I decided to give a try to an AV1 video to see if hw acceleration was working.
Indeed, vainfo is reporting:
Code:
libva info: VA-API version 1.17.0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_17
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.17 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel® Gen Graphics - 23.1.1 ()
vainfo: Supported profile and entrypoints
      VAProfileNone                   :    VAEntrypointVideoProc
      VAProfileNone                   :    VAEntrypointStats
      VAProfileMPEG2Simple            :    VAEntrypointVLD
      VAProfileMPEG2Main              :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointVLD
      VAProfileH264Main               :    VAEntrypointEncSliceLP
      VAProfileH264High               :    VAEntrypointVLD
      VAProfileH264High               :    VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           :    VAEntrypointVLD
      VAProfileJPEGBaseline           :    VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:    VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:    VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :    VAEntrypointVLD
      VAProfileHEVCMain               :    VAEntrypointVLD
      VAProfileHEVCMain               :    VAEntrypointEncSliceLP
      VAProfileHEVCMain10             :    VAEntrypointVLD
      VAProfileHEVCMain10             :    VAEntrypointEncSliceLP
      VAProfileVP9Profile0            :    VAEntrypointVLD
      VAProfileVP9Profile0            :    VAEntrypointEncSliceLP
      VAProfileVP9Profile1            :    VAEntrypointVLD
      VAProfileVP9Profile1            :    VAEntrypointEncSliceLP
      VAProfileVP9Profile2            :    VAEntrypointVLD
      VAProfileVP9Profile2            :    VAEntrypointEncSliceLP
      VAProfileVP9Profile3            :    VAEntrypointVLD
      VAProfileVP9Profile3            :    VAEntrypointEncSliceLP
      VAProfileHEVCMain12             :    VAEntrypointVLD
      VAProfileHEVCMain422_10         :    VAEntrypointVLD
      VAProfileHEVCMain422_12         :    VAEntrypointVLD
      VAProfileHEVCMain444            :    VAEntrypointVLD
      VAProfileHEVCMain444            :    VAEntrypointEncSliceLP
      VAProfileHEVCMain444_10         :    VAEntrypointVLD
      VAProfileHEVCMain444_10         :    VAEntrypointEncSliceLP
      VAProfileHEVCMain444_12         :    VAEntrypointVLD
      VAProfileHEVCSccMain            :    VAEntrypointVLD
      VAProfileHEVCSccMain            :    VAEntrypointEncSliceLP
      VAProfileHEVCSccMain10          :    VAEntrypointVLD
      VAProfileHEVCSccMain10          :    VAEntrypointEncSliceLP
      VAProfileHEVCSccMain444         :    VAEntrypointVLD
      VAProfileHEVCSccMain444         :    VAEntrypointEncSliceLP
      VAProfileAV1Profile0            :    VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :    VAEntrypointVLD
      VAProfileHEVCSccMain444_10      :    VAEntrypointEncSliceLP

So I downloaded an AV1 from Netflix to test. The file is this one.
Mediainfo is reporting a main profile:
Code:
General
Complete name                            : Sparks-5994fps-AV1-10bit-1920x1080-2194kbps.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : iso4 (iso4/av01)
File size                                : 60.1 MiB
Duration                                 : 9 min 11 s
Overall bit rate                         : 915 kb/s
Encoded date                             : UTC 2022-06-09 03:25:48
Tagged date                              : UTC 2022-06-09 03:25:48
Writing application                      : GPAC-2.1-DEV-rev199-g8e29f6e8b-github_master

Video
ID                                       : 1
Format                                   : AV1
Format/Info                              : AOMedia Video 1
Format profile                           : [email protected]
Codec ID                                 : av01
Duration                                 : 9 min 11 s
Bit rate                                 : 914 kb/s
Maximum bit rate                         : 6 376 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.018
Stream size                              : 60.1 MiB (100%)
Title                                    : [email protected]_master
Encoded date                             : UTC 2022-06-09 03:25:48
Tagged date                              : UTC 2022-06-09 03:25:49
Color range                              : Limited
Codec configuration box                  : av1C

If the file can be read with a software decoding, with an hardware decoding there is a crash where I isolated the interesting part:
Code:
2023-04-07 19:09:32.900 T:2823     info <general>: VideoPlayer::OpenFile: /mnt/seed0/Movies/Sparks-5994fps-AV1-10bit-1920x1080-2194kbps.mp4
2023-04-07 19:09:32.900 T:5344  warning <general>: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
2023-04-07 19:09:32.900 T:5344     info <general>: Creating InputStream
2023-04-07 19:09:32.925 T:5344     info <general>: Creating Demuxer
2023-04-07 19:09:32.988 T:5344     info <general>: Opening stream: 0 source: 256
2023-04-07 19:09:32.988 T:5344     info <general>: [WHITELIST] Searching the whitelist for: width: 1920, height: 1080, fps: 25.000, 3D: false
2023-04-07 19:09:32.989 T:5344     info <general>: Display resolution ADJUST : 3840x2160 @ 50.000000 Hz (27) (weight: 0.000)
2023-04-07 19:09:33.307 T:2823     info <general>: VideoPlayer: OnLostDisplay received
2023-04-07 19:09:33.307 T:2823  warning <general>: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
2023-04-07 19:09:33.307 T:2823  warning <general>: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
2023-04-07 19:09:33.312 T:2823     info <general>: GL: Maximum texture width: 16384
2023-04-07 19:09:33.313 T:5344     info <general>: Creating video codec with codec id: 226
2023-04-07 19:09:33.313 T:5344     info <general>: CDVDVideoCodecFFmpeg::Open() Using codec: Alliance for Open Media AV1
2023-04-07 19:09:33.313 T:5344     info <general>: Creating video thread
2023-04-07 19:09:33.314 T:5346     info <general>: running thread: video_thread
2023-04-07 19:09:33.324 T:2823    error <general>: CDRMAtomic::DrmAtomicCommit - test commit failed: (Invalid argument) - falling back to last successful atomic request
2023-04-07 19:09:33.324 T:2823    error <general>:
                                                   Object: plane        ID: 40
                                                     Property: FB_ID    ID: 17  Value: 208
                                                   Object: crtc ID: 80
                                                   Object: connector    ID: 199
2023-04-07 19:09:33.324 T:2823    error <general>: CDRMAtomic::DrmAtomicCommit - atomic commit failed: Invalid argument
2023-04-07 19:09:36.319 T:2823     info <general>: VideoPlayer: OnResetDisplay received
2023-04-07 19:09:36.319 T:2823  warning <general>: CDVDMessageQueue(audio)::Put MSGQ_NOT_INITIALIZED
2023-04-07 19:09:36.319 T:2839     info <general>: Skipped 1 duplicate messages..
2023-04-07 19:09:36.319 T:2839     info <general>: CActiveAESink::OpenSink - initialize sink
2023-04-07 19:09:36.319 T:2839     info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=PCH,DEV=0"
2023-04-07 19:09:36.329 T:5347     info <general>: COutput::OnStartup: Output Thread created
2023-04-07 19:09:36.329 T:5347  warning <general>: VAAPI::SupportsFilter image format not NV12
2023-04-07 19:09:36.363 T:5346    error <general>: GetPicture - avcodec_receive_frame returned failure
2023-04-07 19:09:36.364 T:2839     info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=PCH,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x00"
2023-04-07 19:09:36.364 T:2839     info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2023-04-07 19:09:36.364 T:2839     info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S32NE
2023-04-07 19:09:36.365 T:5346    error <general>: GetPicture - avcodec_receive_frame returned failure

Full log: https://paste.kodi.tv/enaziruwuf.kodi
Please note, my remote share was disconnected on my behalf at some time.

Did I miss something about AV1 hw decoding or is this a real bug ?
If needed I can start kodi with gdb.


RE: Kodi from Debian - Support Thread - basilgello - 2023-04-08

@mirtouf Yes, please run under GDB - afaik you dont even need installing debug symbols separately as gdb now supports dynamic debug symbol retrieval


RE: Kodi from Debian - Support Thread - mirtouf - 2023-04-24

Hi, the forum is back online and so I am, to make it short this is the output I get within gdb:
Code:
Thread 103 "VideoPlayer" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff3dbf46c0 (LWP 1341)]
0x00007ffff5bc8688 in ?? () from /lib/x86_64-linux-gnu/libavcodec.so.59

Full trace: https://paste.kodi.tv/xoromidosi

So, it seems libavcodec59 (src:ffmpeg) has an issue, should I fill a bug now in Debian tracker (against libavcodec59 or src:ffmpeg) ?


RE: Kodi from Debian - Support Thread - basilgello - 2023-04-24

@mirtouf Thanks for the stacktrace! What I need now from you is to get a "bt full" trace: 
shell:
export DEBUGINFOD_URLS="https://debuginfod.debian.net"gdb -p $(pidof kodi.bin)# reproduce the crashbt full
 If you dont have function names in the "bt full" output, you need to install debug symbols folowiing this guide https://wiki.debian.org/HowToGetABacktrace and retry getting bt full.


RE: Kodi from Debian - Support Thread - mirtouf - 2023-04-24

Is this error critical for the debug ?
Code:
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f639d88b345 in __GI___clock_nanosleep (clock_id=clock_id@entry=0, flags=flags@entry=0, req=0x7fff7541c800, rem=0x7fff7541c800) at ../sysdeps/unix/sysv/linux/clock_nanosleep.c:48
Download failed: Argument invalide. Continuing without source file ./time/../sysdeps/unix/sysv/linux/clock_nanosleep.c.
48 ../sysdeps/unix/sysv/linux/clock_nanosleep.c: Aucun fichier ou dossier de ce type.



RE: Kodi from Debian - Support Thread - mirtouf - 2023-04-24

Begining of full trace: https://paste.kodi.tv/ewipeyuwow

I am not sure this will help fully:
Code:
Thread 91 "VideoPlayer" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff977fe6c0 (LWP 5827)]
0x00007ffff5bc8688 in skip_mode_params (s=0x55555cc413c0) at src/libavcodec/av1dec.c:273
Download failed: Invalid Argument. Continuing without source file ./debian/standard/src/libavcodec/av1dec.c.
273 src/libavcodec/av1dec.c: No such file or directory.

Sorry I forgot to add the end of full trace: https://paste.kodi.tv/leroqaqija.kodi


RE: Kodi from Debian - Support Thread - basilgello - 2023-04-25

@mirtouf Yes, this helps! Does

shell:

ffplay -i Sparks-5994fps-AV1-10bit-1920x1080-2194kbps.mp4

play the video correctly?


RE: Kodi from Debian - Support Thread - mirtouf - 2023-04-25

Hi, it plays the file:
Code:
ffplay version 5.1.2-3 Copyright © 2003-2022 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --prefix=/usr --extra-version=3 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-sndio --enable-libjxl --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[libdav1d @ 0x7f6734002680] libdav1d 1.0.0 0KB sq= 0B f=0/0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/seed0/Movies/Sparks-5994fps-AV1-10bit-1920x1080-2194kbps.mp4':
Metadata:
major_brand : iso4
minor_version : 1
compatible_brands: iso4av01
creation_time : 2022-06-09T03:25:48.000000Z
encoder : GPAC-2.1-DEV-rev199-g8e29f6e8b-github_master
Duration: 00:09:11.00, start: 0.000000, bitrate: 915 kb/s
Stream #0:0[0x1](und): Video: av1 (Main) (av01 / 0x31307661), yuv420p10le(tv), 1920x1080, 914 kb/s, 25 fps, 25 tbr, 25k tbn (default)
Metadata:
creation_time : 2022-06-09T03:25:48.000000Z
handler_name : [email protected]_master
vendor_id : [0][0][0][0]
[libdav1d @ 0x7f6734008100] libdav1d 1.0.0
27.49 M-V: 0.000 fd= 0 aq= 0KB vq= 373KB sq= 0B f=0/0