TVH live streaming buggy

  • Hi,

    I migrated from LE 9 to LE 11 (it's about time) on my Raspberry Pi 4.

    Everything is working fine except TV.

    I got a Hauppauge soloHD DVB USB dongle and use TVHeadEnd plugin.

    When I play a TV channel, sound plays but I get no image.

    • In kodi.log this line appears several times : error <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: End of file (-541478725)
    • When playing a recording or timeshifting, it works :/ Only live TV sucks
    • When deactivating DRM PRIME HW decoding, it works (but I must reactivate it to play 4K movies ;()
    • It worked on LE 9

    Any idea how I could watch live TV without deactivating HW decoding ?

  • Go to Best Answer
  • Without HW acceleration (working) :

    With HW acceleration (not working) :


    Differences begin at line 18

    Edited once, last by Sal0kyn: Merged a post created by Sal0kyn into this post. (April 20, 2023 at 3:22 PM).

  • Please post a full debug log. Primarily because it contains other information of relevance, but also because repeated failure to provide one when asked just means all the forum staff think you're a pirate trying to hide dirty habits and we ignore the thread.

  • It's not a debug log .. and you don't demonstrate the problem by playing anything. So not much use for investigations.

    Unrelated to the problem, I do see that the Hyperion add-on is continuously faulting in the background. It's not supported under LE10/LE11 so you might as well disable / remove it.

  • Sorry, could you explain how I can obtain this debug log please?

    I posted the kodi.log part where I start playing TV with and without the hw acceleration and you told me it wasnt enough.

  • It is highly likely that this is associated with this:

    Morphy
    December 31, 2022 at 1:55 PM
  • Code
    2023-04-24 18:04:04.764 T:1428     info <general>: Found resolution 1280x720 with 1280x720 @ 60.000000 Hz
    2023-04-24 18:04:04.765 T:1428     info <general>: Found resolution 1920x1080 with 1920x1080i @ 60.000000 Hz
    2023-04-24 18:04:04.765 T:1428     info <general>: Found resolution 1920x1080 with 1920x1080i @ 59.940063 Hz
    2023-04-24 18:04:04.765 T:1428     info <general>: Found resolution 1920x1080 with 1920x1080i @ 50.000000 Hz
    2023-04-24 18:04:04.765 T:1428     info <general>: Found resolution 1280x720 with 1280x720 @ 59.940063 Hz
    2023-04-24 18:04:04.765 T:1428     info <general>: Found resolution 1280x720 with 1280x720 @ 50.000000 Hz

    The mode list ^ shows you haven an older "HD Ready" TV that does 720p max. Kodi only outputs progressive so we ignore the 1080 interlaced modes that are available.

    Code
    2023-04-24 18:24:48.646 T:3321     info <general>: [WHITELIST] Searching the whitelist for: width: 1920, height: 1080, fps: 25.000, 3D: false
    ...
    2023-04-24 18:24:48.646 T:3321    debug <general>: [WHITELIST] Matched a desktop resolution with double the refresh rate 1280x720 @ 50.000000 Hz (22)
    2023-04-24 18:24:48.646 T:3321     info <general>: Display resolution ADJUST : 1280x720 @ 50.000000 Hz (22) (weight: -nan)
    2023-04-24 18:24:48.651 T:3321  warning <general>: OpenStream - Unsupported stream 1001. Stream disabled.

    The 2/3/4 plays in the log follow this format; note the unsupported stream warning. The first play doesn't show the warning .. not sure why but all are trying to play 1080@25 media at 720@50 which probably isn't going to work.

    In most countries channels are broadcast in 540p (PAL) or 480p (NTSC) "SD" versions and 720p or 1080p "HD" versions. As you don't have a 1080p capable TV you will need to remove/ignore the 1080p HD channels in your channel list.

  • Interesting, I will give a try with a 1080p PC screen.

    Anyway, as it worked once (first try) or while playing a recording, there must be another reason. Any other video file, even 4K, plays smoothly with this TV.

    I'll also try to deactivate "Adjust display refresh rate" option and see if it change something.


    Any other video file, even 4K, plays smoothly with this TV.

    Any online video streams work perfectly as well (Youtube, Catchup TV & more, ...)

    Edited once, last by Sal0kyn: Merged a post created by Sal0kyn into this post. (April 25, 2023 at 11:11 AM).

  • So I tested with a 1920x1080 PC screen.

    Almost the same except a frozen image instead of a black screen.

    Here are the logs http://ix.io/4ugC

    I made 3 plays. 1st (@18:43:29) and 2nd (@18:43:58) with "Adjust display refresh rate" = "On start". The 3rd (@18:45:10) with "Adjust display refresh rate" = "Off".

    Still the same kind of errors :

  • Now that you have the logs, i suggest you to open a bug report in official Kodi github.

    Issues · xbmc/xbmc
    Kodi is an award-winning free and open source home theater/media center software and entertainment hub for digital media. With its beautiful interface and…
    github.com

    And just on the off chance that it is not a Kodi bug but a Libreelec bug, you can also open the same bug report in here too:

    Issues · LibreELEC/LibreELEC.tv
    Just enough OS for KODI. Contribute to LibreELEC/LibreELEC.tv development by creating an account on GitHub.
    github.com