Kodi Community Forum
UPnP Server - File Types - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: UPnP Server - File Types (/showthread.php?tid=319945)



UPnP Server - File Types - MatthewLundberg - 2017-08-15

I enabled the UPnP server in Kodi, but it doesn't serve all content.

Some folders show all of their contents, others are empty. These are all with the MP4 extension, but I'm not sure of the nature of the content.
There are also .wtv files on my system (from WMC) which do not show up.

All of these files can be played by VNC through SMB. What controls whether Kodi offers a file through UPnP?


RE: UPnP Server - File Types - DarrenHill - 2017-08-15

Thread moved to OS independent


RE: UPnP Server - File Types - Epedemic - 2022-02-03

Hi, i would also like Kodi to support .ts / .m2ts files in the DLNA/UPNP server:

It seems kodi just ignores these files, not based on player specifications as theorized elsewhere, as my player (Sony X700) will play these .ts/.m2ts files fine over DLNA from either Plex or Emby (and no: no transcoding is happening) Also, renaming to .mpeg/.mkv does not work, as the X700 gets confused (fairly)


RE: UPnP Server - File Types - ray1112 - 2023-03-16

(2022-02-03, 03:34)Epedemic Wrote: Hi, i would also like Kodi to support .ts / .m2ts files in the DLNA/UPNP server:

It seems kodi just ignores these files, not based on player specifications as theorized elsewhere, as my player (Sony X700) will play these .ts/.m2ts files fine over DLNA from either Plex or Emby (and no: no transcoding is happening) Also, renaming to .mpeg/.mkv does not work, as the X700 gets confused (fairly)
The problem is wrong Kodi's mime type for m2ts video (video/m2ts).
Correct mime type (used in Plex & Emby) is video/vnd.dlna.mpeg-tts.


RE: UPnP Server - File Types - jbinkley60 - 2023-03-16

(2023-03-16, 11:41)ray1112 Wrote:
(2022-02-03, 03:34)Epedemic Wrote: Hi, i would also like Kodi to support .ts / .m2ts files in the DLNA/UPNP server:

It seems kodi just ignores these files, not based on player specifications as theorized elsewhere, as my player (Sony X700) will play these .ts/.m2ts files fine over DLNA from either Plex or Emby (and no: no transcoding is happening) Also, renaming to .mpeg/.mkv does not work, as the X700 gets confused (fairly)
The problem is wrong Kodi's mime type for m2ts video (video/m2ts).
Correct mime type (used in Plex & Emby) is video/vnd.dlna.mpeg-tts.

I see no problem with Kodi's UPnP server serving up m2ts files.  I just tested and they are fine.  The original post was about .wtv and .mp4 files not showing up.  Here's a capture of the SOAP response from a Kodi 19 instance serving up an m2ts file:

python:
protocolInfo="http-get:*:video/mp4Big GrinLNA.ORG_PN=AVC_MP4_BL_L31_HD_AAC;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01700000000000000000000000000000"

With UPnP mime types aren't used per se' like a normal browser.  UPnP embeds the information about the file being served (i.e. protocol info, resolution, bitrate, metadata etc..) via a SOAP response.  I captured this response using the Mezzmo Kodi addon and enabling diagnostic logging.   You can have a lot of fun with that if you like reading SOAP and XML responses Smile  I don't have any .ts files handy to test with.



Thanks,

Jeff


RE: UPnP Server - File Types - ray1112 - 2023-03-16

(2023-03-16, 21:52)jbinkley60 Wrote:
(2023-03-16, 11:41)ray1112 Wrote:
(2022-02-03, 03:34)Epedemic Wrote: Hi, i would also like Kodi to support .ts / .m2ts files in the DLNA/UPNP server:

It seems kodi just ignores these files, not based on player specifications as theorized elsewhere, as my player (Sony X700) will play these .ts/.m2ts files fine over DLNA from either Plex or Emby (and no: no transcoding is happening) Also, renaming to .mpeg/.mkv does not work, as the X700 gets confused (fairly)
The problem is wrong Kodi's mime type for m2ts video (video/m2ts).
Correct mime type (used in Plex & Emby) is video/vnd.dlna.mpeg-tts.

I see no problem with Kodi's UPnP server serving up m2ts files.  I just tested and they are fine.  The original post was about .wtv and .mp4 files not showing up.  Here's a capture of the SOAP response from a Kodi 19 instance serving up an m2ts file:

python:
protocolInfo="http-get:*:video/mp4Big GrinLNA.ORG_PN=AVC_MP4_BL_L31_HD_AAC;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01700000000000000000000000000000"

With UPnP mime types aren't used per se' like a normal browser.  UPnP embeds the information about the file being served (i.e. protocol info, resolution, bitrate, metadata etc..) via a SOAP response.  I captured this response using the Mezzmo Kodi addon and enabling diagnostic logging.   You can have a lot of fun with that if you like reading SOAP and XML responses Smile  I don't have any .ts files handy to test with.



Thanks,

Jeff
I made the tests with the same m2ts file.

Kodi UPNP server XML:
<res duration="0:47:12.000" resolution="1920x1080" protocolInfo="http-get:*:video/m2ts:*">http://192.168.1.5:1782/%25/d29d7c1164e2eb9852f723f494204d15/file.m2ts</res>
BD player does not see this video.

Plex UPNP server XML (the same from Emby):
<res duration="0:47:12.000" size="1389533184" resolution="1920x1080" bitrate="490500" nrAudioChannels="2" protocolInfo="http-get:*:video/vnd.dlna.mpeg-tts: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000">http://192.168.1.5:32469/object/6ff06b80f68469b60739/file.ts</res>
BD player sees and plays this video

Only Kodi UPNP client can see Kodi UPNP server for m2ts files.

Media Type 'video/vnd.dlna.mpeg-tts' Details
This media type identifies audiovisual streams multiplexed using an extended MPEG-2 Transport Stream packet format.
From: Media Type


UPnP Server - File Types - enen92 - 2023-03-17

Mind opening an issue in GitHub? I've been looking into upnp lately.


RE: UPnP Server - File Types - ray1112 - 2023-03-17

(2023-03-17, 00:06)enen92 Wrote: Mind opening an issue in GitHub? I've been looking into upnp lately.
https://github.com/xbmc/xbmc/issues/22994


RE: UPnP Server - File Types - enen92 - 2023-03-18

Thanks for opening the issue, this is a really particular/localized fix affecting a specific mimetype (https://github.com/xbmc/xbmc/pull/22996).
For other issues which mention empty directories or misbehaving of specific folders (specially for tv shows) I think they'll get fixed with https://github.com/xbmc/xbmc/pull/22869 (at least it does for me).
Cheers


RE: UPnP Server - File Types - ray1112 - 2023-03-18

(2023-03-18, 12:49)enen92 Wrote: Thanks for opening the issue, this is a really particular/localized fix affecting a specific mimetype (https://github.com/xbmc/xbmc/pull/22996).
For other issues which mention empty directories or misbehaving of specific folders (specially for tv shows) I think they'll get fixed with https://github.com/xbmc/xbmc/pull/22869 (at least it does for me).
Cheers
I tested your PR #22997.
I applied your patch (f229077) to Kodi 20.1 (20.1-Nexus),
built test Kodi 20.1 (on VM based Ubuntu 22.04, Wayland) and tested m2ts video.
It's working well with my BD player (Sony UBR-X700). I can see this video and play it.
Thank you.