Giter Site home page Giter Site logo

Comments (14)

werimail avatar werimail commented on June 25, 2024

Hello @CastagnaIT @joseluismarti
I already had the problem in an older Kodi version as described here: #20639. With the fixes (#21421) it has worked since then. However, when installing the current Kodi version (21RC1) on an older environment (LineageOS 17.1 with Android 10), the problem occurs again for me.

Greetings Weri

from xbmc.

joseluismarti avatar joseluismarti commented on June 25, 2024

Seems that the device is not returning any codec in getCodecInfos(), as several DVDVideoCodecAndroidMediaCodec::Open Testing codec... messages should appear in the log.

There has probably been an exception in a previous call, probably widevine, use adb logcat to display the system messages to see if it gives us any clues

To make sure that MediaCodec is working properly on this device, play a video locally and check that the above log messages are displayed.

from xbmc.

werimail avatar werimail commented on June 25, 2024

Seems that the device is not returning any codec in getCodecInfos(), as several DVDVideoCodecAndroidMediaCodec::Open Testing codec... messages should appear in the log.

There has probably been an exception in a previous call, probably widevine, use adb logcat to display the system messages to see if it gives us any clues

To make sure that MediaCodec is working properly on this device, play a video locally and check that the above log messages are displayed.

Thanks for your tips @joseluismarti could the error possibly be because I didn't install GAPPS: https://opengapps.org/?arch=arm&api=10.0&variant=pico within my LineageOS environment? I use the β€œfree” version Aurora-Store.

EDIT: I dug through the original issues (xbmc/inputstream.adaptive#771 and #20639) again and I found that the error pattern from back then is almost identical to the current one. The only difference: The test build with fix #21421 shown here #20639 (comment) was created based on arm64-v8a. The Raspberry 3 is still developed based on armv7a. Could it be that the previous fix in Kodi Core only works with arm64-v8a and not for armv7a builds?

Greetings Weri

from xbmc.

joseluismarti avatar joseluismarti commented on June 25, 2024

Thanks for your tips @joseluismarti could the error possibly be because I didn't install GAPPS: https://opengapps.org/?arch=arm&api=10.0&variant=pico within my LineageOS environment? I use the β€œfree” version Aurora-Store.

It has nothing to do with GAPPS, it's related to the OS.

The Raspberry 3 is still developed based on armv7a. Could it be that the previous fix in Kodi Core only works with arm64-v8a and not for armv7a builds?

This fix was merged and is therefore included in v21, works fine with armv7/8 devices. Remains to be investigated what happens on rpi3

from xbmc.

werimail avatar werimail commented on June 25, 2024

hi @joseluismarti , @CastagnaIT I have now created a logcat. I hope that it becomes clear where the error lies.
logcat_lineage_171.txt

Greetings Weri

from xbmc.

joseluismarti avatar joseluismarti commented on June 25, 2024

Hi, in this logs the string CDVDVideoCodecAndroidMediaCodec::Open does not appear. The logs from the start of Kodi until this call and after are of interest.

from xbmc.

werimail avatar werimail commented on June 25, 2024

Hi, in this logs the string CDVDVideoCodecAndroidMediaCodec::Open does not appear. The logs from the start of Kodi until this call and after are of interest.

Ok @joseluismarti here is the 2nd attempt...
lineage_171_new.txt

from xbmc.

joseluismarti avatar joseluismarti commented on June 25, 2024

Try this build, I've caught possible exceptions and added some debug message. Post a comment only with logs containing the string CDVDVideoCodecAndroidMediaCodec .

Note that installing this apk will cause you to lose your current Kodi configuration.

from xbmc.

werimail avatar werimail commented on June 25, 2024

Try this build, I've caught possible exceptions and added some debug message. Post a comment only with logs containing the string CDVDVideoCodecAndroidMediaCodec .

Note that installing this apk will cause you to lose your current Kodi configuration.

Ok @joseluismarti her it is:
lineage_171_debug.txt

EDIT: additionally the complete kodi.log (debug)
kodi_lineage171_debug.log

from xbmc.

joseluismarti avatar joseluismarti commented on June 25, 2024

Another test, ignore the result of DecoderFilterManager...

from xbmc.

werimail avatar werimail commented on June 25, 2024

Another test, ignore the result of DecoderFilterManager...

Great job @joseluismarti !!! With the new test version and Lineage 17.1 with the Rpi3 the output of the streams now also works. Attached is the kodi.log.
kodi_lineage17_debug2.log

EDIT: Can you briefly describe what caused the error @joseluismarti ? Will there be a PR for this too?

Greetings Weri

from xbmc.

joseluismarti avatar joseluismarti commented on June 25, 2024

Kodi uses a configuration file (decoderfilter.xml) to control which decoders should be used to play and which should not by passing the video hints.

if (!CServiceBroker::GetDecoderFilterManager()->isValid(m_codecname, m_hints))
continue;

It seems that all decoders that are available on this device (OMX.google.*) are disabled for this content.

static const char *blacklisted_decoders[] = {
// No software decoders
"OMX.google",

Manually activate a decoder (OMX.google.h264.decoder) by editing the file [userdata]/decoderfilter.xml, restart kodi and check if the modified configuration has taken effect.

from xbmc.

werimail avatar werimail commented on June 25, 2024

Manually activate a decoder (OMX.google.h264.decoder) by editing the file [userdata]/decoderfilter.xml, restart kodi and check if the modified configuration has taken effect.

Ah ok @joseluismarti so I always have to manually adjust the decoder.xml on my Raspberry Pi 3 to make it work?!
Greetings Weri

from xbmc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.