Some media won't play

  • Today I moved from OpenElec to LibreElec. Installed from scratch on a cubox-i using the latest nightly build (LibreELEC-iMX6.arm-12.0-nightly-20231219-865d980-cubox.img.gz) for iMX6 for v12 from here.

    The problem I have now is that some videos are not playing at all. Others are working fine.

    LibreElec seems to simply restart after the loading circle is shown for some seconds. Recently on OpenElec I was able to play the files. So hardware should not be the problem I guess.


    Codec info from one example:


    Here's the crashlog: https://drive.google.com/file/d/11a0EEV…iew?usp=sharing

    The relevant video is played in line 867 but I do not see any relevant or useful info why the system is stopping and restarting.


    Any chance to have LibreElec running smoothly on a cubox-i?

    This also seems to be the first post for cubox here in this forum area.

  • Hi Init5,

    same case here cubox-i 4x4 with last week's nightly (tried with 12 and 13), my crashlog is identical, SIGSEGV in libavcodec:

    Code
    Program terminated with signal SIGSEGV, Segmentation fault.
    #0  0xb581a974 in ?? () from /usr/lib/libavcodec.so.60

    and subtitle library initializing in log's last lines:

    Code
    2023-12-21 18:10:17.860 T:1013     info <general>: CDVDSubtitlesLibass: Using libass version 1701000
    2023-12-21 18:10:17.860 T:1013     info <general>: CDVDSubtitlesLibass: Creating ASS library structure
    2023-12-21 18:10:17.860 T:1013     info <general>: CDVDSubtitlesLibass: Initializing ASS Renderer
    2023-12-21 18:10:17.867 T:1013     info <general>: CDVDSubtitlesLibass: Initializing ASS library font settings

    I have narrowed down to file integrated subtitles in the .mkv file with hardware acceleration enabled.

    • If I play the .mkv file with integrated subtitles and DRM PRIME disabled => video plays fine
    • If I play the .mkv file with integratedsubtitles and DRM PRIME enabled => SIGSEGV crash.
    • If I remove subtitles from the .mkv file with mkvmerge -o output.mkv --no-subtitles input.mkv and DRM PRIME enabled => video plays fine.

    I'm a little bit lost about next steps for fixing the problem.

    Kind regards,

    Miguel

    • If I play the .mkv file with integrated subtitles and DRM PRIME enabled => SIGSEGV crash.
    • If I remove subtitles from the .mkv file with mkvmerge -o output.mkv --no-subtitles input.mkv and DRM PRIME enabled => video plays fine.

    Then it's a bug at mkvmerge or DRM Prime. The DRM Prime error should be visible somewhere at kodi.log.

    Please provide a full debug log.

    How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)

    use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link
  • Hi Da Flex, thank you for your guidance!

    With DRM Prime enabled I have played the original file "Amelie.mkv", it has 4 streams:

    • Stream 0 video
    • Stream 1 spanish audio
    • Stream 2 french audio
    • Stream 3 subtitles

    It crashes on play, this is the crash log from original file: https://paste.libreelec.tv/needed-mutt.log

    Then I have created "Amelie_no_subs.mkv" file with the following command:

    mkvmerge -o Amelie_no_subs.mkv --no-subtitles Amelie.mkv

    This file only has 3 streams:

    • Stream 0 video
    • Stream 1 spanish audio
    • Stream 2 french audio

    No subtitles.

    This file plays fine, this is the play log: https://paste.libreelec.tv/welcome-viper.log

    The video played fine for 5 minutes and then I stopped it, you can see the log playing between OpenFile and CloseFile:

    Code
    2024-09-19 22:45:22.067 T:1081     info <general>: VideoPlayer::OpenFile: /storage/videos/Amelie_no_subs.mkv
    2024-09-19 22:50:19.200 T:1081     info <general>: CVideoPlayer::CloseFile()

    I have tried to compare both logs looking for the crash reason but I'm afraid it is beyond my knowledge, can you take a look at it?

  • Hmm, pretty much the same errors at both logs. I'm not familiar with NXP hardware. Search for cache settings (GUI or advancedsettings.xml), and increase values. Maybe the video needs too much cache with subtitles.