Recently something broke the subtitle support with my Samsung UE40D7000 TV. My MiniDLNA setup did not change, so I suppose an update for the TV caused this. Curiously, in Windows, with the AllShare DLNA server, subtitles still work.
I did a little investigation and found out that AllShare has a <sec:CaptionInfoEx> tag for the subtitles in the DIDL_Lite item description:
Can you try with the latest code from CVS? We should now be sending the <sec:CaptionInfoEx> tag for Samsung Series C/D models.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-11-30
I'm having trouble compiling from CVS. When I run the autogen.sh script, I get this:
Generating configuration files for minidlna, please wait....
autoreconf: Entering directory `.'
autoreconf: running: autopoint --force
Can't exec "autopoint": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 344.
autoreconf: failed to run autopoint: No such file or directory
autoreconf: autopoint is needed because this package uses Gettext
What distro? With newer Debian derivatives, you can install the autopoint package. With Fedora it should be gettext-devel.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-11-30
Ok, installed autopoint on my Ubuntu machine and successfully compiled the CVS code. The browse action the TV does:
POST/ctl/ContentDirHTTP/1.0HOST:192.168.0.198:8200CONTENT-LENGTH:661CONTENT-TYPE:text/xml;charset="utf-8"USER-AGENT:DLNADOC/1.50 SEC_HHP_[TV]UE40D7000/1.0SOAPACTION:"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><s:Body><u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><ObjectID>2$15$9</ObjectID><BrowseFlag>BrowseDirectChildren</BrowseFlag><Filter>@id,@parentID,@restricted,dc:title,upnp:class,res,dc:date,@childCount,sec:CaptionInfo,sec:CaptionInfoEx, sec:dcmInfo, sec:MetaFileInfo,res@resolution,res@size,upnp:genre,dc:date,upnp:album,res@duration,upnp:albumArtURI,res@bitrate,dc:creator</Filter><StartingIndex>0</StartingIndex><RequestedCount>30</RequestedCount><SortCriteria></SortCriteria></u:Browse></s:Body></s:Envelope>/code]andthe DIDL_Lite Result seems to have the <sec:CaptionInfoEx> field, exactly like AllShare does it:[codeHTTP/1.1200 OKContent-Type:text/xml; charset="utf-8"Connection:closeContent-Length:1320Server:2.6.32-35-generic DLNADOC/1.50 UPnP/1.0 MiniDLNA/1.0<?xmlversion="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><u:BrowseResponse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1"><Result><DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"><itemid="2$15$9$0" parentID="2$15$9" restricted="1"><dc:title>The.Change-Up.UNRATED.1080p.BluRay.x264-BLOW</dc:title><upnp:class>object.item.videoItem</upnp:class><dc:date>2011-11-13T01:05:39</dc:date><sec:dcmInfo>CREATIONDATE=0,FOLDER=The.Change-Up.UNRATED.1080p.BluRay.x264-BLOW,BM=201</sec:dcmInfo><res size="8520673418" duration="1:58:09.088" bitrate="192000" resolution="1920x800" protocolInfo="http-get:*:video/x-mkv:DLNA.ORG_OP=01;DLNA.ORG_CI=0">http://192.168.0.198:8200/MediaItems/53.mkv</res><sec:CaptionInfoEx sec:type="srt">http://192.168.0.198:8200/Captions/53.srt</sec:CaptionInfoEx></item></DIDL-Lite></Result><NumberReturned>1</NumberReturned><TotalMatches>1</TotalMatches><UpdateID>5</UpdateID></u:BrowseResponse></s:Body></s:Envelope>
Unfortunately, subtitles are not playing. The srt file is correctly hosted by minidlna (i.e. I can download it with my browser), but the TV does not HTTP GET it.
After comparing with AllShare further, I noticed that when the video is played, some HTTP HEAD request also included information about the subtitles. This is what AllShare does:
HEAD/FileProvider/M$7089000/O$1/S$391.srt/P$/I$video/x-mkv/391HTTP/1.0getCaptionInfo.sec:1HTTP/1.0200 OKContent-Type:video/x-mkvContent-Length:8520673418Date:Wed, 30 Nov 2011 22:26:35 GMTConnection:closecontentFeatures.dlna.org:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000CaptionInfo.sec:http://192.168.0.198:17679/SubtitleProvider/391.srttransferMode.dlna.org:Streaming
Here is where minidlna makes a mistake by using 127.0.0.1 as IP address:
Unfortunately, subtitles are not playing. The srt file is correctly hosted by minidlna (i.e. I can download it with my browser), but the TV does not HTTP GET it.
After comparing with AllShare further, I noticed that when the video is played, some HTTP HEAD request also included information about the subtitles. This is what AllShare does:
HEAD/FileProvider/M$7089000/O$1/S$391.srt/P$/I$video/x-mkv/391HTTP/1.0getCaptionInfo.sec:1HTTP/1.0200 OKContent-Type:video/x-mkvContent-Length:8520673418Date:Wed, 30 Nov 2011 22:26:35 GMTConnection:closecontentFeatures.dlna.org:DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000CaptionInfo.sec:http://192.168.0.198:17679/SubtitleProvider/391.srttransferMode.dlna.org:Streaming
Here is where minidlna makes a mistake by using 127.0.0.1 as IP address:
All right, that should also be fixed now. The problem there is that Samsung uses an HTTP 1.0 request, without a Host header, so we weren't able to detect which interface we should be representing. I just checked in some fallback code for this situation, so we should now be able to guess the interface.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using minidlna version 1.1.4 and a Samsung Smart TV UE65JU7000 and external srt subtitles do not show. I can send debug information like HTTP headers if you need.
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-12-03
New code from CVS works, thanks!
dvrslype
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had a simular problem the other day, when subtitles were suddenly not picked up anymore. I stopped the minidlna server removed the tmp db in /tmp/minidlna and started the server again to rebuild db, which worked. I am wondering though why I had to do this - shouldn't minidlna automatically discover the subttitles even if they are added after the movie has been added. I believe there is a default 15 min. rescan with inotify - maybe I was not patient enough, but i doubt it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for the quick reply….maybe my db was corrupted….I will check if things have improved after cleaning up.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-04-29
Hello everybody
I'm trying to use the .srt subtitles support for streaming through DLNA via LAN o my samsung U40D5500 and I cant't
My LAN is composed by:
eTrayz Linux miniDLNA 1.0.24 server -> LAN -> Samsung TV LCD U40D5500
This patch re-enable this freature and is included in the 1.0.23 release, but I have not able to run it.
I questioning myself:
1 - Have I to apply the patch for subtitles support? maybe have I to compile CVS?
2 - Could be a problem from MY TV, only my TV?
3 - Is possible that the compilation of miniDLNA 1.0.24 (through ipkg) comes without subtitles support?
Thank you very much!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey guys,
Recently something broke the subtitle support with my Samsung UE40D7000 TV. My MiniDLNA setup did not change, so I suppose an update for the TV caused this. Curiously, in Windows, with the AllShare DLNA server, subtitles still work.
I did a little investigation and found out that AllShare has a <sec:CaptionInfoEx> tag for the subtitles in the DIDL_Lite item description:
However MiniDLNA has nothing like that for the same item:
So now I wonder why it worked previously, since it does not seem to describe the srt file.
Can you post the browse request that the TV sends? Of particular interest is the "Filter" field.
This is the Browse request the TV sends:
and this is the response:
Can you try with the latest code from CVS? We should now be sending the <sec:CaptionInfoEx> tag for Samsung Series C/D models.
I'm having trouble compiling from CVS. When I run the autogen.sh script, I get this:
I saw this thread on the help forum: https://sourceforge.net/projects/minidlna/forums/forum/879957/topic/4802181, but it didn't work for me: gettext is installed, unable to find gettext-devel or similar package.
Help?
What distro? With newer Debian derivatives, you can install the autopoint package. With Fedora it should be gettext-devel.
Ok, installed autopoint on my Ubuntu machine and successfully compiled the CVS code. The browse action the TV does:
Unfortunately, subtitles are not playing. The srt file is correctly hosted by minidlna (i.e. I can download it with my browser), but the TV does not HTTP GET it.
After comparing with AllShare further, I noticed that when the video is played, some HTTP HEAD request also included information about the subtitles. This is what AllShare does:
Here is where minidlna makes a mistake by using 127.0.0.1 as IP address:
So I guess when this ip address is filled in correctly, the subtitles should play.
regards,
dvrslype
excuse me for the messy code tag usage, this should be more readable:
Ok, installed autopoint on my Ubuntu machine and successfully compiled the CVS code. The browse action the TV does:
and the DIDL_Lite Result seems to have the <sec:CaptionInfoEx> field, exactly like AllShare does it:
Unfortunately, subtitles are not playing. The srt file is correctly hosted by minidlna (i.e. I can download it with my browser), but the TV does not HTTP GET it.
After comparing with AllShare further, I noticed that when the video is played, some HTTP HEAD request also included information about the subtitles. This is what AllShare does:
Here is where minidlna makes a mistake by using 127.0.0.1 as IP address:
So I guess when this ip address is filled in correctly, the subtitles should play.
regards,
dvrslype
All right, that should also be fixed now. The problem there is that Samsung uses an HTTP 1.0 request, without a Host header, so we weren't able to detect which interface we should be representing. I just checked in some fallback code for this situation, so we should now be able to guess the interface.
Hi.
I am using minidlna version 1.1.4 and a Samsung Smart TV UE65JU7000 and external srt subtitles do not show. I can send debug information like HTTP headers if you need.
Thanks!
New code from CVS works, thanks!
dvrslype
I had a simular problem the other day, when subtitles were suddenly not picked up anymore. I stopped the minidlna server removed the tmp db in /tmp/minidlna and started the server again to rebuild db, which worked. I am wondering though why I had to do this - shouldn't minidlna automatically discover the subttitles even if they are added after the movie has been added. I believe there is a default 15 min. rescan with inotify - maybe I was not patient enough, but i doubt it.
Does anyone know if there is a good practice of some kind to make minidlna discover newly added subtitles?
Yes, if inotify is enabled and working, it should detect new caption files, basically immediately.
Thanks for the quick reply….maybe my db was corrupted….I will check if things have improved after cleaning up.
Hello everybody
I'm trying to use the .srt subtitles support for streaming through DLNA via LAN o my samsung U40D5500 and I cant't
My LAN is composed by:
eTrayz Linux miniDLNA 1.0.24 server -> LAN -> Samsung TV LCD U40D5500
This patch re-enable this freature and is included in the 1.0.23 release, but I have not able to run it.
I questioning myself:
1 - Have I to apply the patch for subtitles support? maybe have I to compile CVS?
2 - Could be a problem from MY TV, only my TV?
3 - Is possible that the compilation of miniDLNA 1.0.24 (through ipkg) comes without subtitles support?
Thank you very much!!