Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
UPnP Server - File Types
#1
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?
Reply
#2
Thread moved to OS independent
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#3
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)
Reply
#4
(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.
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#5
(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
Running with the Mezzmo Kodi addon.  The easier way to share your media with multiple Kodi clients.
Service.autostop , CBC Sports, Kodi Selective Cleaner and Mezzmo Kodi addon author.
Reply
#6
(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
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#7
Mind opening an issue in GitHub? I've been looking into upnp lately.
Reply
#8
(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
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
#9
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
Reply
#10
(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.
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply

Logout Mark Read Team Forum Stats Members Help
UPnP Server - File Types0