Kodi Community Forum

Full Version: .mpd
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

Does Kodi 17 supports .mpd format?
If yes, how can we play that in Kodi?

Regards
That is a Microsoft Database file isn't it?

There is nothing to play.
Its mpeg-dash file.
What happens when you try?
I am not sure how to start.
Do I just send that link to player?

ie. This is the link I want to play in Kodi 17.

http://download.tsi.telecom-paristech.fr...-AV-BS.mpd

How do I start ? I am not sure.
https://github.com/peak3d/inputstream.ad.../README.md

Use example 1 to create a .strm file.
(2018-04-04, 08:13)jchirag Wrote: [ -> ]I am not sure how to start.
Do I just send that link to player?

ie. This is the link I want to play in Kodi 17.

http://download.tsi.telecom-paristech.fr...-AV-BS.mpd

How do I start ? I am not sure.
If you just want to play from Kodi Videos menu, then you create a test.strm file with the below contents and select it from Kodi videos menu
Code:
#KODIPROP:inputstreamaddon=inputstream.adaptive
#KODIPROP:inputstream.adaptive.manifest_type=mpd
http://download.tsi.telecom-paristech.fr/gpac/DASH_CONFORMANCE/TelecomParisTech/mp4-live/mp4-live-mpd-AV-BS.mpd

However if you are doing from within an addon, then to the listitem you need to add
Code:
listitem.setProperty('inputstreamaddon', 'inputstream.adaptive')
listitem.setProperty('inputstream.adaptive.manifest_type', 'mpd')
listitem.setMimeType('application/dash+xml')
listitem.setContentLookup(False)
Thanks will try that.

Also one more question, can I pass any header information. 
ie. X-Forwarded-For or something else ?
If so, how ?
(2018-04-05, 09:29)jchirag Wrote: [ -> ]Thanks will try that.

Also one more question, can I pass any header information. 
ie. X-Forwarded-For or something else ?
If so, how ?
Yes you can pass headers

In STRM file, as below, any combination of headers
Code:
#KODIPROP:inputstream.adaptive.stream_headers=Referer=blah&User-Agent=Blah

And in python code as follows
Code:
listitem.setProperty('inputstream.adaptive.stream_headers', 'Referer=blah&User-Agent=Blah')
hi, i know its an old post, but do you have an example of how to add an x forwarded to an mpd?

wha should the header be?

thanks
(2022-04-24, 17:43)markeymark Wrote: [ -> ]hi, i know its an old post, but do you have an example of how to add an x forwarded to an mpd?

wha should the header be?

thanks

This is how I have added

#KODIPROP:inputstreamaddon=inputstream.adaptive
#KODIPROP:inputstream.adaptive.manifest_type=mpd
#KODIPROP:inputstream.adaptive.stream_headers=X-Forwarded-For=182.77.85.84
http://xxxxxxx.mpd
(2022-04-28, 13:54)jchirag Wrote: [ -> ]
(2022-04-24, 17:43)markeymark Wrote: [ -> ]hi, i know its an old post, but do you have an example of how to add an x forwarded to an mpd?

wha should the header be?

thanks

This is how I have added

#KODIPROP:inputstreamaddon=inputstream.adaptive
#KODIPROP:inputstream.adaptive.manifest_type=mpd
#KODIPROP:inputstream.adaptive.stream_headers=X-Forwarded-For=182.77.85.84
http://xxxxxxx.mpd
Thanks going to try this on my streams