Jump to content

DLNA configuration profile error


almaster

Recommended Posts

kelepop
7 hours ago, kelepop said:

I tried but it will cause another bug: a SQL error when I click the OK button in the confirmation page of   Identify context menu 

 

2022-10-08 14:07:47.430 Error SqliteItemRepository: Error saving items
	*** Error Report ***
	Version: 4.7.8.0
	Command line: /storage/.kodi/addons/service.emby4/libs/system/EmbyServer.dll -programdata /storage/.kodi/userdata/addon_data/service.emby4 -ffmpeg /storage/.kodi/addons/tools.ffmpeg-tools/bin/ffmpeg -ffprobe /storage/.kodi/addons/tools.ffmpeg-tools/bin/ffprobe
	Operating system: Linux version 5.10.76 (ice@dev-91) (aarch64-none-linux-gnu-gcc.real (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 10.2.1 202
	Framework: .NET 6.0.8
	OS/Process: arm/arm
	Runtime: storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.NETCore.App/6.0.8/System.Private.CoreLib.dll
	Processor count: 6
	Data path: /storage/.kodi/userdata/addon_data/service.emby4
	Application path: /storage/.kodi/addons/service.emby4/libs/system
	SQLitePCL.pretty.SQLiteException: Error: near "returning": syntax error - Insert into MediaItems (guid,type,Path,Filename,StartDate,EndDate,IsMovie,IsSeries,IsKids,IsSports,IsNews,IsRepeat,CommunityRating,CustomRating,IndexNumber,IsLocked,Name,OfficialRating,MediaType,Overview,ParentIndexNumber,PremiereDate,ProductionYear,ParentId,InheritedParentalRatingValue,SortName,RunTimeTicks,DateCreated,DateModified,PreferredMetadataLanguage,PreferredMetadataCountryCode,Width,Height,DateLastRefreshed,DateLastSaved,IsInMixedFolder,LockedFields,IsFolder,UnratedType,TopParentId,CriticRating,PresentationUniqueKey,OriginalTitle,IsVirtualItem,SeriesName,UserDataKeyId,Album,AlbumId,SeriesId,Tagline,ProviderIds,Images,ProductionLocations,TotalBitrate,ExtraType,ExternalId,SeriesPresentationUniqueKey,OwnerId,Size,Container,Status,DisplayOrder,ThreeDFormat,ChannelNumber,RemoteTrailers,SortIndexNumber,SortParentIndexNumber,IndexNumberEnd) values (@guid,@type,@Path,@Filename,@StartDate,@EndDate,@IsMovie,@IsSeries,@IsKids,@IsSports,@IsNews,@IsRepeat,@CommunityRating,@CustomRating,@IndexNumber,@IsLocked,@Name,@OfficialRating,@MediaType,@Overview,@ParentIndexNumber,@PremiereDate,@ProductionYear,@ParentId,@InheritedParentalRatingValue,@SortName,@RunTimeTicks,@DateCreated,@DateModified,@PreferredMetadataLanguage,@PreferredMetadataCountryCode,@Width,@Height,@DateLastRefreshed,@DateLastSaved,@IsInMixedFolder,@LockedFields,@IsFolder,@UnratedType,@TopParentId,@CriticRating,@PresentationUniqueKey,@OriginalTitle,@IsVirtualItem,@SeriesName,@UserDataKeyId,@Album,@AlbumId,@SeriesId,@Tagline,@ProviderIds,@Images,@ProductionLocations,@TotalBitrate,@ExtraType,@ExternalId,@SeriesPresentationUniqueKey,@OwnerId,@Size,@Container,@Status,@DisplayOrder,@ThreeDFormat,@ChannelNumber,@RemoteTrailers,@SortIndexNumber,@SortParentIndexNumber,@IndexNumberEnd) returning Id
	SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
	   at SQLitePCL.pretty.SQLiteDatabaseConnection.PrepareStatement(ReadOnlySpan`1 sqlUtf8Bytes, String& tail)
	   at SQLitePCL.pretty.DatabaseConnection.PrepareStatement(IDatabaseConnection This, ReadOnlySpan`1 sqlUtf8)
	   at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItemsInTranscation(IDatabaseConnection db, List`1 tuples, MetadataRefreshOptions metadataRefreshOptions)
	   at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItems(List`1 items, MetadataRefreshOptions metadataRefreshOptions, Action`1 afterSave, CancellationToken cancellationToken)
	Source: SQLitePCL.pretty
	TargetSite: SQLitePCL.pretty.IStatement PrepareStatement(System.ReadOnlySpan`1[System.Byte], System.String ByRef)

 

here is full log sql-error.log

I will test  whether   this version  works  or not  when  DLNA with  any subtitle ,later

 

v4.7.8 still not working

the reason is still  TranscodeReasons=SubtitleCodecNotSupported

Edited by kelepop
Link to comment
Share on other sites

14 hours ago, kelepop said:

I tried but it will cause another bug: a SQL error when I click the OK button in the confirmation page of   Identify context menu 

 

2022-10-08 14:07:47.430 Error SqliteItemRepository: Error saving items
	*** Error Report ***
	Version: 4.7.8.0
	Command line: /storage/.kodi/addons/service.emby4/libs/system/EmbyServer.dll -programdata /storage/.kodi/userdata/addon_data/service.emby4 -ffmpeg /storage/.kodi/addons/tools.ffmpeg-tools/bin/ffmpeg -ffprobe /storage/.kodi/addons/tools.ffmpeg-tools/bin/ffprobe
	Operating system: Linux version 5.10.76 (ice@dev-91) (aarch64-none-linux-gnu-gcc.real (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)) 10.2.1 202
	Framework: .NET 6.0.8
	OS/Process: arm/arm
	Runtime: storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.NETCore.App/6.0.8/System.Private.CoreLib.dll
	Processor count: 6
	Data path: /storage/.kodi/userdata/addon_data/service.emby4
	Application path: /storage/.kodi/addons/service.emby4/libs/system
	SQLitePCL.pretty.SQLiteException: Error: near "returning": syntax error - Insert into MediaItems (guid,type,Path,Filename,StartDate,EndDate,IsMovie,IsSeries,IsKids,IsSports,IsNews,IsRepeat,CommunityRating,CustomRating,IndexNumber,IsLocked,Name,OfficialRating,MediaType,Overview,ParentIndexNumber,PremiereDate,ProductionYear,ParentId,InheritedParentalRatingValue,SortName,RunTimeTicks,DateCreated,DateModified,PreferredMetadataLanguage,PreferredMetadataCountryCode,Width,Height,DateLastRefreshed,DateLastSaved,IsInMixedFolder,LockedFields,IsFolder,UnratedType,TopParentId,CriticRating,PresentationUniqueKey,OriginalTitle,IsVirtualItem,SeriesName,UserDataKeyId,Album,AlbumId,SeriesId,Tagline,ProviderIds,Images,ProductionLocations,TotalBitrate,ExtraType,ExternalId,SeriesPresentationUniqueKey,OwnerId,Size,Container,Status,DisplayOrder,ThreeDFormat,ChannelNumber,RemoteTrailers,SortIndexNumber,SortParentIndexNumber,IndexNumberEnd) values (@guid,@type,@Path,@Filename,@StartDate,@EndDate,@IsMovie,@IsSeries,@IsKids,@IsSports,@IsNews,@IsRepeat,@CommunityRating,@CustomRating,@IndexNumber,@IsLocked,@Name,@OfficialRating,@MediaType,@Overview,@ParentIndexNumber,@PremiereDate,@ProductionYear,@ParentId,@InheritedParentalRatingValue,@SortName,@RunTimeTicks,@DateCreated,@DateModified,@PreferredMetadataLanguage,@PreferredMetadataCountryCode,@Width,@Height,@DateLastRefreshed,@DateLastSaved,@IsInMixedFolder,@LockedFields,@IsFolder,@UnratedType,@TopParentId,@CriticRating,@PresentationUniqueKey,@OriginalTitle,@IsVirtualItem,@SeriesName,@UserDataKeyId,@Album,@AlbumId,@SeriesId,@Tagline,@ProviderIds,@Images,@ProductionLocations,@TotalBitrate,@ExtraType,@ExternalId,@SeriesPresentationUniqueKey,@OwnerId,@Size,@Container,@Status,@DisplayOrder,@ThreeDFormat,@ChannelNumber,@RemoteTrailers,@SortIndexNumber,@SortParentIndexNumber,@IndexNumberEnd) returning Id
	SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.
	   at SQLitePCL.pretty.SQLiteDatabaseConnection.PrepareStatement(ReadOnlySpan`1 sqlUtf8Bytes, String& tail)
	   at SQLitePCL.pretty.DatabaseConnection.PrepareStatement(IDatabaseConnection This, ReadOnlySpan`1 sqlUtf8)
	   at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItemsInTranscation(IDatabaseConnection db, List`1 tuples, MetadataRefreshOptions metadataRefreshOptions)
	   at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItems(List`1 items, MetadataRefreshOptions metadataRefreshOptions, Action`1 afterSave, CancellationToken cancellationToken)
	Source: SQLitePCL.pretty
	TargetSite: SQLitePCL.pretty.IStatement PrepareStatement(System.ReadOnlySpan`1[System.Byte], System.String ByRef)

 

here is full log sql-error.log

I will test  whether   this version  works  or not  when  DLNA with  any subtitle ,later

 

How did you install Emby Server? The sqlite version is out of date. 

Link to comment
Share on other sites

kelepop
5 hours ago, Luke said:

How did you install Emby Server? The sqlite version is out of date. 

did you means for the dot Net core bundled sqlite driver?

I download and start EMBY4 use this builtin script of LIBREELEC https://github.com/LibreELEC/LibreELEC.tv/blob/10.0.3/packages/addons/service/emby4/source/bin/emby4.start

which will download and extract emby4 from https://github.com/MediaBrowser/Emby.Releases/releases/download/4.7.8.0/embyserver-netcore_4.7.8.0.zip for now

dotnet --info

global.json file:
  Not found

Host:
  Version:      6.0.8
  Architecture: arm
  Commit:       55fb7ef977

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.16 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.7 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.8 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.16 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.7 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.8 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

 

find . -iname "*sqlite*" |xargs md5sum
8809de5394d8c40ce51f306ea1c162bc  ./system/SQLitePCLRawEx.core.dll
88cf66fbc4057a5d0dfcb14330694a1b  ./system/SQLitePCL.pretty.dll
be4323811896194d80ef3f4e9010b715  ./system/Emby.Sqlite.dll

 

Edited by kelepop
Link to comment
Share on other sites

49 minutes ago, kelepop said:

did you means for the dot Net core bundled sqlite driver?

I download and start EMBY4 use this builtin script of LIBREELEC https://github.com/LibreELEC/LibreELEC.tv/blob/10.0.3/packages/addons/service/emby4/source/bin/emby4.start

which will download and extract emby4 from https://github.com/MediaBrowser/Emby.Releases/releases/download/4.7.8.0/embyserver-netcore_4.7.8.0.zip for now

dotnet --info

global.json file:
  Not found

Host:
  Version:      6.0.8
  Architecture: arm
  Commit:       55fb7ef977

.NET SDKs installed:
  No SDKs were found.

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.16 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.7 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.8 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.16 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.7 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.8 [/storage/.kodi/addons/tools.dotnet-runtime/bin/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

 

find . -iname "*sqlite*" |xargs md5sum
8809de5394d8c40ce51f306ea1c162bc  ./system/SQLitePCLRawEx.core.dll
88cf66fbc4057a5d0dfcb14330694a1b  ./system/SQLitePCL.pretty.dll
be4323811896194d80ef3f4e9010b715  ./system/Emby.Sqlite.dll

 

OK so it's using our generic package which does not include it's own sqlite, therefore the server will use whatever sqlite version you have on the system.

The latest code of the server uses newer sqlite features that are only available in sqlite 3.35.0 and up. What version of sqlite do you have installed?

Link to comment
Share on other sites

kelepop
2 minutes ago, Luke said:

OK so it's using our generic package which does not include it's own sqlite, therefore the server will use whatever sqlite version you have on the system.

The latest code of the server uses newer sqlite features that are only available in sqlite 3.35.0 and up. What version of sqlite do you have installed?

it's 3.34.1 https://github.com/LibreELEC/LibreELEC.tv/blob/10.0.3/packages/databases/sqlite/package.mk#L6

I will build a new version of sqlite and to load via LD_LIBRARY_PATH to have a new try ,then report it later

 

mean while ,I think the problem  of force transcoding  when DLNA  with any subtitle still exists

Link to comment
Share on other sites

Yea you're going to need 3.35.0+ due to our use of the returning keyword now.

 

Quote

mean while ,I think the problem  of force transcoding  when DLNA  with any subtitle still exists

Can we please look at an example log file from the latest version? Thanks.

Link to comment
Share on other sites

kelepop
51 minutes ago, Luke said:

Yea you're going to need 3.35.0+ due to our use of the returning keyword now.

 

Can we please look at an example log file from the latest version? Thanks.

the SQL error is resolved after I upgrade SQLite version  to 3.35.5 , a document about dependency version is suggested :)

--------------------------------------

talking about the DLNA problem, a new error was occurred ,here attached the log 4.7.8.0-dnla-error-log.txt

ffmpeg  -version
ffmpeg version 4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (GCC)
configuration: --enable-ffmpeg --disable-ffplay --enable-ffprobe --enable-static --pkg-config-flags=--static --disable-shared --enable-gpl --disable-doc --enable-libvpx --enable-encoder=libvpx_vp8 --enable-encoder=libvpx_vp9 --enable-libaom --enable-encoder=libaom_av1 --enable-encoder=aac --enable-encoder=ac3 --enable-encoder=eac3 --enable-encoder=flac --enable-libmp3lame --enable-encoder=libmp3lame --enable-libopus --enable-encoder=libopus --enable-libvorbis --enable-encoder=libvorbis --enable-avresample --disable-lzma --disable-alsa --disable-libxcb --disable-libxcb-shm --disable-libxcb-xfixes --disable-libxcb-shape --arch=arm --cpu=cortex-a53 --cross-prefix=/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf- --enable-cross-compile --sysroot=/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot --sysinclude=/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/armv8a-libreelec-linux-gnueabihf/sysroot/usr/include --target-os=linux --nm=/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-nm --ar=/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-ar --as=/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-gcc --cc=/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-gcc --ld=/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/bin/armv8a-libreelec-linux-gnueabihf-gcc --pkg-config=/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/bin/pkg-config --host-cc=/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/bin/host-gcc --host-cflags='-march=native -O2 -Wall -pipe -I/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/include -Wno-format-security' --host-ldflags='-Wl,-rpath,/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/lib -L/build/build.LibreELEC-ARMv8.arm-10.0-devel/toolchain/lib' --host-extralibs=-lm --extra-cflags='-march=armv8-a+crc -mtune=cortex-a53 -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated -mfloat-abi=hard -mfpu=neon-fp-armv8 -Wall -pipe -O2 -fomit-frame-pointer' --extra-ldflags='-march=armv8-a+crc -mtune=cortex-a53 -Wl,--as-needed' --extra-libs= --enable-pic --enable-gnutls --disable-openssl --disable-hardcoded-tables
libavutil      56. 70.100 / 56. 70.100
libavcodec     58.134.100 / 58.134.100
libavformat    58. 76.100 / 58. 76.100
libavdevice    58. 13.100 / 58. 13.100
libavfilter     7.110.100 /  7.110.100
libavresample   4.  0.  0 /  4.  0.  0
libswscale      5.  9.100 /  5.  9.100
libswresample   3.  9.100 /  3.  9.100
libpostproc    55.  9.100 / 55.  9.100

 

Edited by kelepop
Link to comment
Share on other sites

OK I'm pushing an update of the dlna plugin to the catalog. Please let me know if that helps. Thanks.

Link to comment
Share on other sites

kelepop
32 minutes ago, Luke said:

OK I'm pushing an update of the dlna plugin to the catalog. Please let me know if that helps. Thanks.

updated the dlna plugin to 1.0.89 and tested the play can start but subtitle selection is not working,no subtitle is show on kodi

here attached the log dlna-subtitle-not-woring.txt

-----------------------------------------

before update to 1.0.89

it turns out that some video has different error

here is the summary

if video has not any  subtitle,the DLNA playbak is ok

if video has a built in/embed subtitle, the log is attached above 4.7.8.0-dnla-error-log.txt

if video has an external subtitle, and i selected it  ,the log is attached here , just like the log before external subtitle.txt  (TranscodeReasons=SubtitleCodecNotSupported)

 

Edited by kelepop
Link to comment
Share on other sites

OK in the upnp xml output that we're sending, kodi is probably looking for something that we're not providing. that's my best guess at least.

Link to comment
Share on other sites

kelepop
2 minutes ago, Luke said:

OK in the upnp xml output that we're sending, kodi is probably looking for something that we're not providing. that's my best guess at least.

I've tried some video, here is the conclusion

Video Id

Embed Sub

External Sub

Subtitle Selection Working

Kodi show subtitle

15325794

N

Y,ASS

N

N

12593682

N

Y,ASS/SRT

N

Y,

SRT only,

even when I didn’t select any sub

1270797

Y,hdmv_pgs_subtitle

Y,ASS

N

Y,

the default embed subtitle is selected,

even when I didn’t select any sub

0371746

Y,SRT(subrip)

Y,SRT

N

Y,

embed subtitle only,

even when I didn’t select any sub

 

 

Link to comment
Share on other sites

kelepop

 

1 hour ago, Luke said:

OK in the upnp xml output that we're sending, kodi is probably looking for something that we're not providing. that's my best guess at least.

when kodi is showing a sub, you can see that kodi request a subtitle sub-srt.txt

when it comes to the ass subtitle sub-ass.txt kodi never requested

How can I get the upnp XML we send to kodi ?

Link to comment
Share on other sites

kelepop

I launched wireshark to sniff the packet

it seems that we've send to kodi the subtitle

POST /AVTransport/761351fa-1dfd-efaa-402b-fb3883dc538c/control.xml HTTP/1.1
Host: 192.168.114.145:1690
User-Agent: Microsoft-Windows/6.2 UPnP/1.0 Microsoft-DLNA DLNADOC/1.50
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"
Pragma: no-cache
FriendlyName.DLNA.ORG: Emby
contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01D00000000000000000000000000000
Accept-Encoding: deflate
traceparent: 00-cdaf1ffe58fecdd8975205fa78e3f441-6e479c886bc5388c-00
Content-Type: text/xml; charset=utf-8
Content-Length: 3678

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:SetAVTransportURI xmlns:m="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui4">0</InstanceID><CurrentURI xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">http://192.168.69.12:8096/videos/94/stream.mp4?DeviceProfileId=d64b3d8d574e1ba950bb091bd74ef0a1&amp;DeviceId=uuid:761351fa-1dfd-efaa-402b-fb3883dc538c&amp;MediaSourceId=e2743f4f2d7c745e121e0e83a22178d7&amp;Static=true&amp;StartTimeTicks=24668680000&amp;PlaySessionId=a31e005e83b042198986e16f99135ecb&amp;api_key=dfd182b6aef14fb6832e6eaf8c0de15d</CurrentURI><CurrentURIMetaData xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:sec="http://www.sec.co.kr/" xmlns:pv="http://www.pv.com/pvns/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"&gt;&lt;item restricted="1" id="94" parentID="6"&gt;&lt;dc:title&gt;......&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem.movie&lt;/upnp:class&gt;&lt;dc:date&gt;2022-08-10T16:00:00.0000000Z&lt;/dc:date&gt;&lt;upnp:genre&gt;......&lt;/upnp:genre&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;Lionsgate&lt;/dc:publisher&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;BuzzFeed Studios&lt;/dc:publisher&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;Tea Shop Productions&lt;/dc:publisher&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;Capstone Studios&lt;/dc:publisher&gt;&lt;dc:description&gt;............................. ......................................... ..............................................................................610.......................................................................................................................................... ............https://divedigital.vip/movie/985939/fall&lt;/dc:description&gt;&lt;upnp:rating&gt;PG-13&lt;/upnp:rating&gt;&lt;upnp:playbackCount&gt;13&lt;/upnp:playbackCount&gt;&lt;upnp:lastPlaybackPosition&gt;00:41:06.000&lt;/upnp:lastPlaybackPosition&gt;&lt;upnp:lastPlaybackTime&gt;2022-10-09&lt;/upnp:lastPlaybackTime&gt;&lt;res duration="01:42:24.7150000" size="1711871433" nrAudioChannels="6" resolution="1916x992" sampleFrequency="48000" bitrate="2222698" protocolInfo="http-get:*:video/mp4:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01D00000000000000000000000000000"&gt;http://192.168.69.12:8096/videos/94/stream.mp4?DeviceProfileId=d64b3d8d574e1ba950bb091bd74ef0a1&amp;amp;DeviceId=uuid:761351fa-1dfd-efaa-402b-fb3883dc538c&amp;amp;MediaSourceId=e2743f4f2d7c745e121e0e83a22178d7&amp;amp;Static=true&amp;amp;StartTimeTicks=24668680000&amp;amp;PlaySessionId=a31e005e83b042198986e16f99135ecb&amp;amp;api_key=dfd182b6aef14fb6832e6eaf8c0de15d&lt;/res&gt;&lt;res protocolInfo="http-get:*:text/ass:*"&gt;http://192.168.69.12:8096/Videos/94/e2743f4f2d7c745e121e0e83a22178d7/Subtitles/2/0/Stream.ass?api_key=dfd182b6aef14fb6832e6eaf8c0de15d&lt;/res&gt;&lt;upnp:albumArtURI dlna:profileID="JPEG_SM"&gt;http://192.168.69.12:8096/Items/94/Images/Primary/0/60392e5bf8e0ebefec91fba66929b169/jpg/640/480/0/0&lt;/upnp:albumArtURI&gt;&lt;upnp:icon&gt;http://192.168.69.12:8096/Items/94/Images/Primary/0/60392e5bf8e0ebefec91fba66929b169/jpg/48/48/0/0&lt;/upnp:icon&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</CurrentURIMetaData></m:SetAVTransportURI></s:Body></s:Envelope>

HTTP/1.1 200 OK
Ext: 
Date: Sun, 09 Oct 2022 07:52:18 GMT
Content-Length: 277
Content-Type: text/xml; charset="utf-8"
Server: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:SetAVTransportURIResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"/></s:Body></s:Envelope>

 

when it comes to SRT,the payload the the similar

 

POST /AVTransport/761351fa-1dfd-efaa-402b-fb3883dc538c/control.xml HTTP/1.1
Host: 192.168.114.145:1541
User-Agent: Microsoft-Windows/6.2 UPnP/1.0 Microsoft-DLNA DLNADOC/1.50
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"
Pragma: no-cache
FriendlyName.DLNA.ORG: Emby
contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01D00000000000000000000000000000
Accept-Encoding: deflate
traceparent: 00-3d627e1e9986611489144bfd67f6ae35-f7200ce8fa058ee2-00
Content-Type: text/xml; charset=utf-8
Content-Length: 3476

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:SetAVTransportURI xmlns:m="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui4">0</InstanceID><CurrentURI xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">http://192.168.69.12:8096/videos/34631/stream.mp4?DeviceProfileId=d64b3d8d574e1ba950bb091bd74ef0a1&amp;DeviceId=uuid:761351fa-1dfd-efaa-402b-fb3883dc538c&amp;MediaSourceId=0f65e6dd1bf5dcc9ad2a6514b6403f1e&amp;Static=true&amp;StartTimeTicks=22196080000&amp;PlaySessionId=9e8c20f852de47b8ab8a6d23dfacbb68&amp;api_key=dfd182b6aef14fb6832e6eaf8c0de15d</CurrentURI><CurrentURIMetaData xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:sec="http://www.sec.co.kr/" xmlns:pv="http://www.pv.com/pvns/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"&gt;&lt;item restricted="1" id="34631" parentID="6"&gt;&lt;dc:title&gt;Bullet Train&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem.movie&lt;/upnp:class&gt;&lt;dc:date&gt;2022-07-02T16:00:00.0000000Z&lt;/dc:date&gt;&lt;upnp:genre&gt;......&lt;/upnp:genre&gt;&lt;upnp:genre&gt;......&lt;/upnp:genre&gt;&lt;upnp:genre&gt;......&lt;/upnp:genre&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;Columbia Pictures&lt;/dc:publisher&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;87North Productions&lt;/dc:publisher&gt;&lt;dc:description&gt;...................................................................................................5...................................................................................................................................................&lt;/dc:description&gt;&lt;upnp:rating&gt;R&lt;/upnp:rating&gt;&lt;upnp:playbackCount&gt;3&lt;/upnp:playbackCount&gt;&lt;upnp:lastPlaybackPosition&gt;00:36:59.000&lt;/upnp:lastPlaybackPosition&gt;&lt;upnp:lastPlaybackTime&gt;2022-10-09&lt;/upnp:lastPlaybackTime&gt;&lt;res duration="02:06:47.2430000" size="2120761242" nrAudioChannels="6" resolution="1920x800" sampleFrequency="48000" bitrate="2224766" protocolInfo="http-get:*:video/mp4:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01D00000000000000000000000000000"&gt;http://192.168.69.12:8096/videos/34631/stream.mp4?DeviceProfileId=d64b3d8d574e1ba950bb091bd74ef0a1&amp;amp;DeviceId=uuid:761351fa-1dfd-efaa-402b-fb3883dc538c&amp;amp;MediaSourceId=0f65e6dd1bf5dcc9ad2a6514b6403f1e&amp;amp;Static=true&amp;amp;StartTimeTicks=22196080000&amp;amp;PlaySessionId=9e8c20f852de47b8ab8a6d23dfacbb68&amp;amp;api_key=dfd182b6aef14fb6832e6eaf8c0de15d&lt;/res&gt;&lt;res protocolInfo="http-get:*:text/srt:*"&gt;http://192.168.69.12:8096/Videos/34631/0f65e6dd1bf5dcc9ad2a6514b6403f1e/Subtitles/2/0/Stream.srt?api_key=dfd182b6aef14fb6832e6eaf8c0de15d&lt;/res&gt;&lt;upnp:albumArtURI dlna:profileID="JPEG_SM"&gt;http://192.168.69.12:8096/Items/34631/Images/Primary/0/d7830cce7350ac1f409d5ec06efb7a2c/jpg/640/480/0/0&lt;/upnp:albumArtURI&gt;&lt;upnp:icon&gt;http://192.168.69.12:8096/Items/34631/Images/Primary/0/d7830cce7350ac1f409d5ec06efb7a2c/jpg/48/48/0/0&lt;/upnp:icon&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</CurrentURIMetaData></m:SetAVTransportURI></s:Body></s:Envelope>

HTTP/1.1 200 OK
Ext: 
Date: Sun, 09 Oct 2022 08:09:46 GMT
Content-Length: 277
Content-Type: text/xml; charset="utf-8"
Server: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:SetAVTransportURIResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"/></s:Body></s:Envelope>

 

Edited by kelepop
Link to comment
Share on other sites

kelepop
20 minutes ago, kelepop said:

I launched wireshark to sniff the packet

it seems that we've send to kodi the subtitle

POST /AVTransport/761351fa-1dfd-efaa-402b-fb3883dc538c/control.xml HTTP/1.1
Host: 192.168.114.145:1690
User-Agent: Microsoft-Windows/6.2 UPnP/1.0 Microsoft-DLNA DLNADOC/1.50
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"
Pragma: no-cache
FriendlyName.DLNA.ORG: Emby
contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01D00000000000000000000000000000
Accept-Encoding: deflate
traceparent: 00-cdaf1ffe58fecdd8975205fa78e3f441-6e479c886bc5388c-00
Content-Type: text/xml; charset=utf-8
Content-Length: 3678

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:SetAVTransportURI xmlns:m="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui4">0</InstanceID><CurrentURI xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">http://192.168.69.12:8096/videos/94/stream.mp4?DeviceProfileId=d64b3d8d574e1ba950bb091bd74ef0a1&amp;DeviceId=uuid:761351fa-1dfd-efaa-402b-fb3883dc538c&amp;MediaSourceId=e2743f4f2d7c745e121e0e83a22178d7&amp;Static=true&amp;StartTimeTicks=24668680000&amp;PlaySessionId=a31e005e83b042198986e16f99135ecb&amp;api_key=dfd182b6aef14fb6832e6eaf8c0de15d</CurrentURI><CurrentURIMetaData xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:sec="http://www.sec.co.kr/" xmlns:pv="http://www.pv.com/pvns/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"&gt;&lt;item restricted="1" id="94" parentID="6"&gt;&lt;dc:title&gt;......&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem.movie&lt;/upnp:class&gt;&lt;dc:date&gt;2022-08-10T16:00:00.0000000Z&lt;/dc:date&gt;&lt;upnp:genre&gt;......&lt;/upnp:genre&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;Lionsgate&lt;/dc:publisher&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;BuzzFeed Studios&lt;/dc:publisher&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;Tea Shop Productions&lt;/dc:publisher&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;Capstone Studios&lt;/dc:publisher&gt;&lt;dc:description&gt;............................. ......................................... ..............................................................................610.......................................................................................................................................... ............https://divedigital.vip/movie/985939/fall&lt;/dc:description&gt;&lt;upnp:rating&gt;PG-13&lt;/upnp:rating&gt;&lt;upnp:playbackCount&gt;13&lt;/upnp:playbackCount&gt;&lt;upnp:lastPlaybackPosition&gt;00:41:06.000&lt;/upnp:lastPlaybackPosition&gt;&lt;upnp:lastPlaybackTime&gt;2022-10-09&lt;/upnp:lastPlaybackTime&gt;&lt;res duration="01:42:24.7150000" size="1711871433" nrAudioChannels="6" resolution="1916x992" sampleFrequency="48000" bitrate="2222698" protocolInfo="http-get:*:video/mp4:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01D00000000000000000000000000000"&gt;http://192.168.69.12:8096/videos/94/stream.mp4?DeviceProfileId=d64b3d8d574e1ba950bb091bd74ef0a1&amp;amp;DeviceId=uuid:761351fa-1dfd-efaa-402b-fb3883dc538c&amp;amp;MediaSourceId=e2743f4f2d7c745e121e0e83a22178d7&amp;amp;Static=true&amp;amp;StartTimeTicks=24668680000&amp;amp;PlaySessionId=a31e005e83b042198986e16f99135ecb&amp;amp;api_key=dfd182b6aef14fb6832e6eaf8c0de15d&lt;/res&gt;&lt;res protocolInfo="http-get:*:text/ass:*"&gt;http://192.168.69.12:8096/Videos/94/e2743f4f2d7c745e121e0e83a22178d7/Subtitles/2/0/Stream.ass?api_key=dfd182b6aef14fb6832e6eaf8c0de15d&lt;/res&gt;&lt;upnp:albumArtURI dlna:profileID="JPEG_SM"&gt;http://192.168.69.12:8096/Items/94/Images/Primary/0/60392e5bf8e0ebefec91fba66929b169/jpg/640/480/0/0&lt;/upnp:albumArtURI&gt;&lt;upnp:icon&gt;http://192.168.69.12:8096/Items/94/Images/Primary/0/60392e5bf8e0ebefec91fba66929b169/jpg/48/48/0/0&lt;/upnp:icon&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</CurrentURIMetaData></m:SetAVTransportURI></s:Body></s:Envelope>

HTTP/1.1 200 OK
Ext: 
Date: Sun, 09 Oct 2022 07:52:18 GMT
Content-Length: 277
Content-Type: text/xml; charset="utf-8"
Server: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:SetAVTransportURIResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"/></s:Body></s:Envelope>

 

when it comes to SRT,the payload the the similar

 

POST /AVTransport/761351fa-1dfd-efaa-402b-fb3883dc538c/control.xml HTTP/1.1
Host: 192.168.114.145:1541
User-Agent: Microsoft-Windows/6.2 UPnP/1.0 Microsoft-DLNA DLNADOC/1.50
SOAPAction: "urn:schemas-upnp-org:service:AVTransport:1#SetAVTransportURI"
Pragma: no-cache
FriendlyName.DLNA.ORG: Emby
contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01D00000000000000000000000000000
Accept-Encoding: deflate
traceparent: 00-3d627e1e9986611489144bfd67f6ae35-f7200ce8fa058ee2-00
Content-Type: text/xml; charset=utf-8
Content-Length: 3476

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><m:SetAVTransportURI xmlns:m="urn:schemas-upnp-org:service:AVTransport:1"><InstanceID xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="ui4">0</InstanceID><CurrentURI xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">http://192.168.69.12:8096/videos/34631/stream.mp4?DeviceProfileId=d64b3d8d574e1ba950bb091bd74ef0a1&amp;DeviceId=uuid:761351fa-1dfd-efaa-402b-fb3883dc538c&amp;MediaSourceId=0f65e6dd1bf5dcc9ad2a6514b6403f1e&amp;Static=true&amp;StartTimeTicks=22196080000&amp;PlaySessionId=9e8c20f852de47b8ab8a6d23dfacbb68&amp;api_key=dfd182b6aef14fb6832e6eaf8c0de15d</CurrentURI><CurrentURIMetaData xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">&lt;DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:sec="http://www.sec.co.kr/" xmlns:pv="http://www.pv.com/pvns/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"&gt;&lt;item restricted="1" id="34631" parentID="6"&gt;&lt;dc:title&gt;Bullet Train&lt;/dc:title&gt;&lt;upnp:class&gt;object.item.videoItem.movie&lt;/upnp:class&gt;&lt;dc:date&gt;2022-07-02T16:00:00.0000000Z&lt;/dc:date&gt;&lt;upnp:genre&gt;......&lt;/upnp:genre&gt;&lt;upnp:genre&gt;......&lt;/upnp:genre&gt;&lt;upnp:genre&gt;......&lt;/upnp:genre&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;Columbia Pictures&lt;/dc:publisher&gt;&lt;dc:publisher xmlns:dc="urn:schemas-upnp-org:metadata-1-0/upnp/"&gt;87North Productions&lt;/dc:publisher&gt;&lt;dc:description&gt;...................................................................................................5...................................................................................................................................................&lt;/dc:description&gt;&lt;upnp:rating&gt;R&lt;/upnp:rating&gt;&lt;upnp:playbackCount&gt;3&lt;/upnp:playbackCount&gt;&lt;upnp:lastPlaybackPosition&gt;00:36:59.000&lt;/upnp:lastPlaybackPosition&gt;&lt;upnp:lastPlaybackTime&gt;2022-10-09&lt;/upnp:lastPlaybackTime&gt;&lt;res duration="02:06:47.2430000" size="2120761242" nrAudioChannels="6" resolution="1920x800" sampleFrequency="48000" bitrate="2224766" protocolInfo="http-get:*:video/mp4:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01D00000000000000000000000000000"&gt;http://192.168.69.12:8096/videos/34631/stream.mp4?DeviceProfileId=d64b3d8d574e1ba950bb091bd74ef0a1&amp;amp;DeviceId=uuid:761351fa-1dfd-efaa-402b-fb3883dc538c&amp;amp;MediaSourceId=0f65e6dd1bf5dcc9ad2a6514b6403f1e&amp;amp;Static=true&amp;amp;StartTimeTicks=22196080000&amp;amp;PlaySessionId=9e8c20f852de47b8ab8a6d23dfacbb68&amp;amp;api_key=dfd182b6aef14fb6832e6eaf8c0de15d&lt;/res&gt;&lt;res protocolInfo="http-get:*:text/srt:*"&gt;http://192.168.69.12:8096/Videos/34631/0f65e6dd1bf5dcc9ad2a6514b6403f1e/Subtitles/2/0/Stream.srt?api_key=dfd182b6aef14fb6832e6eaf8c0de15d&lt;/res&gt;&lt;upnp:albumArtURI dlna:profileID="JPEG_SM"&gt;http://192.168.69.12:8096/Items/34631/Images/Primary/0/d7830cce7350ac1f409d5ec06efb7a2c/jpg/640/480/0/0&lt;/upnp:albumArtURI&gt;&lt;upnp:icon&gt;http://192.168.69.12:8096/Items/34631/Images/Primary/0/d7830cce7350ac1f409d5ec06efb7a2c/jpg/48/48/0/0&lt;/upnp:icon&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;</CurrentURIMetaData></m:SetAVTransportURI></s:Body></s:Envelope>

HTTP/1.1 200 OK
Ext: 
Date: Sun, 09 Oct 2022 08:09:46 GMT
Content-Length: 277
Content-Type: text/xml; charset="utf-8"
Server: UPnP/1.0 DLNADOC/1.50 Platinum/1.0.5.13

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><u:SetAVTransportURIResponse xmlns:u="urn:schemas-upnp-org:service:AVTransport:1"/></s:Body></s:Envelope>

 

I Make some compare that the difference is 

<res protocolInfo="http-get:*:text/ass:*">http://192.168.69.12:8096/Videos/94/e2743f4f2d7c745e121e0e83a22178d7/Subtitles/2/0/Stream.ass?api_key=***</res>
VS
<res protocolInfo="http-get:*:text/srt:*">http://192.168.69.12:8096/Videos/34631/0f65e6dd1bf5dcc9ad2a6514b6403f1e/Subtitles/2/0/Stream.srt?api_key=***</res>

 so I look into kodi's source code and find this  https://github.com/xbmc/xbmc/blob/0b3a2c0085717b0fdc1f5025cfeb70f96790d3ce/xbmc/network/upnp/UPnPInternal.cpp#L1158-L1162

It seems that kodi has a white list of subtitle , i will try to add `text/ass` and rebuild kodi to test if it works

  • Thanks 1
Link to comment
Share on other sites

kelepop
7 hours ago, kelepop said:

I Make some compare that the difference is 

<res protocolInfo="http-get:*:text/ass:*">http://192.168.69.12:8096/Videos/94/e2743f4f2d7c745e121e0e83a22178d7/Subtitles/2/0/Stream.ass?api_key=***</res>
VS
<res protocolInfo="http-get:*:text/srt:*">http://192.168.69.12:8096/Videos/34631/0f65e6dd1bf5dcc9ad2a6514b6403f1e/Subtitles/2/0/Stream.srt?api_key=***</res>

 so I look into kodi's source code and find this  https://github.com/xbmc/xbmc/blob/0b3a2c0085717b0fdc1f5025cfeb70f96790d3ce/xbmc/network/upnp/UPnPInternal.cpp#L1158-L1162

It seems that kodi has a white list of subtitle , i will try to add `text/ass` and rebuild kodi to test if it works

I tried ,it works, now KODI will accept  ASS subtitle when dlna , I will open a pull request to kodi upstream later

 now dlna playback is working after upgrade to 1.0.89 ,thanks to @Luke

the only problem is subtitle selection is broken ,and according to the sniff result of wireshark ,it's emby that always send a subtitle that I didn't select

I will continue to discuss about that here 

 

Edited by kelepop
  • Thanks 1
Link to comment
Share on other sites

  • 1 year later...
  • 2 weeks later...
kelepop
On 12/28/2023 at 5:26 AM, Luke said:

@kelepopcan you please test again with the Emby Dlna 1.3.0+ plugin update and let us know if it is still behaving the same way? Thanks !

Tested with the combination of `kodi 20` + `DLNA 1.3.0.0`

it is still behaving the same way !

Link to comment
Share on other sites

2 minutes ago, kelepop said:

Tested with the combination of `kodi 20` + `DLNA 1.3.0.0`

it is still behaving the same way !

Meaning what exactly?

Link to comment
Share on other sites

kelepop
On 1/5/2024 at 2:28 PM, Luke said:

Meaning what exactly?

Means that it works well, I can select and switch subtitles from kodi 20

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...