Code Monkey home page Code Monkey logo

inputstream.adaptive's Introduction

inputstream.adaptive (2.3.22)

This is an adaptive file addon for kodi's new InputStream Interface.

  • this addon is part of the official kodi repository and part of each kodi installation
  • configure the addon by adding URL prefixes wich are allowed to be played by this addon
  • create a .strm file / or addon with passes an url with sets inputstream.adaptive.manifest_type to either "mpd", "ism" or "hls" and open the strm file in kodi
  • or write an addon wich passes an mpd or ism manifest file to kodi
Examples:

1.) mpd dash example with one video and one audio stream

2.) mpd dash example with one video and multiple audio streams

Decrypting:

Decrypting is not implemented. But it is prepared!
Decrypting takes place in separate decrypter shared libraries, wich are identified by the inputstream.mpd.licensetype listitem property.
Only one shared decrypter library can be active during playing decrypted media. Building decrypter libraries do not require kodi sources.
Simply check out the sources of this addon and you are able to build decrypters including full access to existing decrypters implemented in bento4.

Bandwidth and resolution:

When using inputstream.adaptive the first time, the selection of stream quality / stream resolution is done with a guess of 4MBit/s. This default value will be updated at the time you watch your first movie by measuring the download speed of the media streams.
Always you start a new video, the average bandwidth of the previous media watched will be taken to calculate the initial stream representation from the set of existing qualities.
If this leads to problems in your environment, you can override / adjust this value using Min. bandwidth in the inputstream.adaptive settings dialog. Setting Min. bandwidth e.g. to 10.000.000, the media selection will never be done with a bandwidth value below this value.
Currently the complete media is played with the selection from this initial step, adaptive stream changes during a running video is still under development.
There is a new Max. resolution select field in the inputstream.adaptive settings dialog. Auto will select the best resolution matching to your videoplayer display rect without any limits. If your display resolution is 720p, you will not be able to watch 1080p videos if there are video representations available closer to 720p.

TODO's:
  • Adaptive bitrate switching is prepared but currently not yet activated
  • Automatic / fixed video stream selection depending on max. visible display rect (some work has to be done at the inputstream interface).
  • DASH implementation of periods (currently only the first period is considered)
  • There will be many dash mpd, smoothstream or hls manifest types currently not supported - must be extended.
Notes:
  • This addon uses threads to download segments. The memory consumption is the sum of single segment from each stream currently playing. Refering to known streams it is < 10MB for 720p videos.
Credits:

@fernetmenta Best support I ever got regarding streams / codecs and kodi internals.
@notspiff Thanks for your ideas / tipps regarding kodi file system
bento4 library For me the best library choice for mp4 streams. Well written and extensible!

Continuous integration:

Travis CI build state: alt tag
Appveyor: alt tag

inputstream.adaptive's People

Contributors

afedchin avatar akaridn avatar alleschonweg avatar alwinesch avatar andred avatar arvvoid avatar brunoduc avatar castagnait avatar dagwieers avatar frodo19 avatar gizmocuz avatar glennguy avatar iranl avatar matthuisman avatar mediaminister avatar misterd81 avatar notoco avatar olafhering avatar peak3d avatar rbuehlma avatar rechi avatar roliverosc avatar sopor avatar stefansaraev avatar thunderbird2086 avatar vlmaksime avatar wsnipex avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.