(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/mp4LNA.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 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