Posts by viper4le

    From my understanding of how these whitelists work, Kodi will directly output the media in 4k if the 4k mode is whitelisted (but I'll check my logs to be sure). You can also do the same with lower modes and it will directly output in 720p for example. There's a bit of information about it in the PR for whitelists:

    Mode whitelist by lrusak · Pull Request #13274 · xbmc/xbmc · GitHub

    Edit: And if you haven't set a 720p whitelist, it kodi should upscale to whatever is set in settings (1080p)

    I tested it and it works in general. But this is a workaround only, because the black screens only occur on 4K with 50 and 60 Hz refresh rates in my case.

    And if I set Kodi to 1080p @ 60 Hz, automatic refresh rate changes enabled and whitelist all 4K and 1080p refresh rates (1080p is needed to set Kodi itself to 1080p) then I never get 4K@50Hz or 60 Hz, because I have no 4K video with such a high refresh rate.

    In addition to confirm: a 720p video is upscaled by Kodi to 1080p and a 4K video is outputted in 4k in this case.

    I further checked my TV and WeTek box for the HDMI specification, both have 2.0. That means they are able to handle up to 3840 × 2160p @ 60 Hz, just to rule that out.

    I have a WeTek Play 2, connected via HDMI to a TV and the optical out is connected to a Pioneer receiver for the audio signals.

    Then used a LE9 fresh install.

    Kodi settings:

    - audio device AML-M8AUDIO HDMI

    - AC3 and DTS passthrough enabled

    - other settings -> Screenhots

    All videos with AC3 and DTS have no problem, because of the direct passthrough.

    Other videos with an audio sample rate of 44.1 kHz also seem to work, tested 2 files with it.

    For all other videos where the audio stream has a sample rate of 48 kHz I get no audio, tested videos with audio codecs AAC or mp3.

    I saw the following difference for the same video file between 8.2.5 und 9.0.0 in the debug log. I don't know if this is an indication.

    8.2.5 - working:

    Code
    20:10:50.801 T:547734155488   DEBUG:   Output Device : AML-M8AUDIO
    20:10:50.801 T:547734155488   DEBUG:   Sample Rate   : 48000
    20:10:50.801 T:547734155488   DEBUG:   Sample Format : AE_FMT_S32NE
    20:10:50.801 T:547734155488   DEBUG:   Channel Count : 2
    20:10:50.801 T:547734155488   DEBUG:   Channel Layout: FL,FR
    20:10:50.801 T:547734155488   DEBUG:   Frames        : 256
    20:10:50.801 T:547734155488   DEBUG:   Frame Size    : 8

    9.0.0 fresh installation - not working

    Code
    19:02:21.905 T:4058620784   DEBUG:   Output Device : AML-M8AUDIO
    19:02:21.905 T:4058620784   DEBUG:   Sample Rate   : 48000
    19:02:21.905 T:4058620784   DEBUG:   Sample Format : AE_FMT_S16NE
    19:02:21.905 T:4058620784   DEBUG:   Channel Count : 2
    19:02:21.906 T:4058620784   DEBUG:   Channel Layout: FL, FR
    19:02:21.906 T:4058620784   DEBUG:   Frames        : 256
    19:02:21.906 T:4058620784   DEBUG:   Frame Size    : 4

    debug_logs.zip - filenames masked

    I also had a bit of a wonky experience with the play 2 on a 4k LG. In the end, I just changed the resolution in the settings to 1080p and whitelisted the 4k modes. There isn't much point running the GUI in 4k anyway. When I start a 4k video, the resolution correctly switches to 4k and back again after stopping.

    Maybe you can give this a shot.

    But what happens with a 720p video then?
    If the setting is on 4K Kodi outputs it in 4K, at least that's what the log says in my post above.

    In this case it would mean that Kodi is doing the complete upscaling to 4K.

    What happens if you set it to 1080p like you said. Kodi upscales to 1080p and the TV from 1080p to 4K? Or is Kodi directly upscaling to 4K, too?

    I tested with a fresh LE9 installation yesterday.

    And there I have not the same problem(UPDATE 16.02.: that is incorrect, tested again, both have a problem with 48kHz sample rate) .

    First of all the new installation sets the audio device default to "AML-M8AUDIO Analog" on my WeTek Play 2. The Box is connected via optical out to a Pioneer receiver.

    I switched it to "AML-M8AUDIO, HDMI".

    It was then possible to play a video file with AAC 2.0 (Details from VLC: AAC 44100Hz stereo 96kbps, 32 Bit per Sample ), mmmhh interesting.

    I switched then the SD card to the upgraded LE9, problem still there.

    I changed the audio device to "AML-M8AUDIO Analog", played the video with AAC 2.0 and audio was there -> cunfusion, why did I get audio on a digital output if the audio device is setup to "Analog"?

    Then I started a video with DTS and the passthrough was also working. I was happy then, but unfortunately too early.

    I started the video with AAC 2.0 again and now the audio was "dull", played in lower frequency and cuts every few seconds.

    Further the "click" sounds in the main menu had this dull sound, too. I had to switch the audio device to bring the menu sound back to the normal sounds.

    In result I can choose between 2 problems:
    - no audio for stereo streams if the audio device is set to "AML-M8AUDIO, HDMI"

    - corrupted audio for stereo streams if the audio device is set to "AML-M8AUDIO Analog"

    Log for the "no audio" case:

    Log for the corrupted audio case:

    I think I have the same problem as Xianghua.

    I tested a little bit more yesterday with a fresh installation, where the problem also occurs.

    And yes it happens after refresh rate changes.

    In Settings -> System -> Video the display is configured to 3840x2160 @ 60 Hz.

    I have the automatic refresh rate switching enabled under Settings->Player, which is configured to "everytime" (I have it on german, don't exactly know which it is in english).

    If I then open a video with 25 fps (Details: MPEG4 Video (H264) 1280x720 25fps 3167kbps [V: German [deu] (h264 main L3.1, yuv420p, 1280x720, 3167 kb/s)]) Kodi switches to 50 Hz and the following happens:

    Video

    There are generated no log entries in the standard kodi.log when the black screens occur ("wéight" is censored by the forum, I changed it this way/ Samba share is masked):

    If I stop the playback then the black screens further occur in the main menu.

    The black screens not happen if playing a 24 fps movie. But when stopping the playback the video signal is often completely lost and I have to switch the TV to another HDMI input and back again.

    Further if I disable the automatic refresh rate switching the black screens not occur, only if I manually change the refresh rate in the video settings from 60 to 50 Hz for example. Then it occurs directly in the main menu without starting a playback. 24Hz seems to have no problem.

    These problems not happen with LE 8.2.5.

    I have a LG 4K TV.

    That is all I have so far.
    Next step is to higher the log level to debug and further check dmesg, maybe they show more.

    @Xianghua: can you confirm if it is the same problem?

    Sorry, had not enough time for further troubleshooting and collect log data.
    No audio for stereo streams and these black screens, that was not acceptable for a productive system, sorry ;)
    I reverted my system back to 8.2.5. for the moment.

    If I find time I will use a second SD card with a fresh installation and check again.

    I have a similar problem after upgrading to 9.0:
    A WeTek Play 2, connected via optical out to a pioneer receiver.

    AC3 and DTS passthrough enabled in the Kodi settings. AC3/DTS works, but all other audio not. Tested with TV streams from TVHeadend and other video files.
    In 8.2.5 there was no problem with the following settings (it is in german, sorry):