Giter Club home page Giter Club logo

docker-timeshift-x's Introduction

docker-timeshift-x's People

Contributors

dependabot[bot] avatar masnagam avatar mergify[bot] avatar

Watchers

 avatar

docker-timeshift-x's Issues

"Invalid resource protocol info" warning occurs in Kodi

The following warning message is recorded in kodi.log:

warning : [platinum.media.server.item]: Invalid resource protocol info: http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=01;DLNA.ORG_CI=0:DLNA.ORG_PN=MPEG_PS_PAL;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000

The above protocol info contains 5 parts, not 4.

https://github.com/xbmc/xbmc/blob/e3978a1feb96cf4442629db04ec71c1faa7dc9bd/lib/libUPnP/Platinum/Source/Core/PltProtocolInfo.cpp#L171-L179:

NPT_Result
PLT_ProtocolInfo::SetProtocolInfo(const char* protocol_info)
{
    if (!protocol_info || protocol_info[0] == '\0') 
        return NPT_ERROR_INVALID_PARAMETERS;
    
    NPT_List<NPT_String> parts = NPT_String(protocol_info).Split(":");
    if (parts.GetItemCount() != 4) 
        return NPT_ERROR_INVALID_SYNTAX;

The following line:

GERBERA_VIDEO_MIMETYPE: >-
        video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=01;DLNA.ORG_CI=0

should be

GERBERA_VIDEO_MIMETYPE: video/mpeg

However, some of TVs cannot play any media if we change like the above.

Kodi cannot start a playback in a short time

Kodi looks start the playback after the entire media data is loaded.

2023-07-02 12:56:46.553 T:82      debug <general>: CCurlFile::GetMimeType - <http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/file.mpeg> -> video/mpeg
2023-07-02 12:56:46.553 T:82       info <general>: Creating InputStream
2023-07-02 12:56:46.553 T:82      debug <general>: CurlFile::Open - <http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/file.mpeg>
2023-07-02 12:56:46.554 T:32      debug <general>: Loading settings for upnp://4e4f8da3-9bdd-4570-a67c-69ba6f514883/3748/
2023-07-02 12:56:46.569 T:7       debug <general>: CGLContextEGL::SwapBuffers: sync check blocking
2023-07-02 12:56:46.585 T:7       debug <general>: CGLContextEGL::SwapBuffers: sync sleep: 16368
2023-07-02 12:56:46.619 T:82    warning <general>: CCurlFile::Open - <http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/file.mpeg> Disabling multi session due to broken libupnp server
2023-07-02 12:56:46.619 T:82      debug <general>: CFileCache::Open - <http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/file.mpeg> opening
2023-07-02 12:56:46.619 T:82      debug <general>: CurlFile::Open - <http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/file.mpeg>
2023-07-02 12:56:46.642 T:82    warning <general>: CCurlFile::Open - <http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/file.mpeg> Disabling multi session due to broken libupnp server
2023-07-02 12:56:46.642 T:82      debug <general>: CFileCache::Open - <http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/file.mpeg> source chunk size is 0, setting cache chunk size to 131072
2023-07-02 12:56:46.642 T:82      debug <general>: CFileCache::Open - <http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/file.mpeg> using single memory cache sized 20971520 bytes
2023-07-02 12:56:46.642 T:84      debug <general>: Thread FileCache start, auto delete: false
2023-07-02 12:56:46.642 T:82      debug <general>: ScanForExternalSubtitles: Searching for subtitles...
2023-07-02 12:56:46.642 T:82      debug <general>: CurlFile::Open - <http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/>
2023-07-02 12:56:46.642 T:82      debug <general>: easy_acquire - Created session to http://mirakc
2023-07-02 12:56:46.705 T:82    warning <general>: CCurlFile::Open - <http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/> Disabling multi session due to broken libupnp server

Kodi sended reqeusts for the following two URLs:

  1. http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/file.mpeg
  2. http://mirakc:49494/content/media/object_id/3748/res_id/0/group/default/ext/

The first one is for getting the media data and the second one is for listing files in the folder in order to check whether any external subtitle files exist or not.
However, Gerbera returned the media data for the second request.
This is NOT the behavior Kodi expects.

Gerbera returns the media data for requests to the following URL:

  • content/media/object_id/3748/res_id/0/group/default/ext/file.mpeg
  • content/media/object_id/3748/res_id/0/group/default/ext
  • content/media/object_id/3748/res_id/0/group/default/
  • content/media/object_id/3748/res_id/0/group/
  • content/media/object_id/3748/res_id/0/
  • content/media/object_id/3748/res_id/
  • content/media/object_id/3748/

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.