GNOME Bugzilla – Bug 661228
No external subtitles for Panasonic
Last modified: 2015-08-06 07:28:58 UTC
Hi, I've got a Panasonic TX-P42G30 and according to the manual it should support external subtitles. Internal (MKV) subtitles work fine but no external subtitles are available on the TV using Rygel. Serviio, on the other hand, does manage. After talking with phako, it might be just the mime-type. Serviio used text/srt for Panasonic subtitles, while Rygel uses text/plain. This is judges by the profiles.xml file provided with Serviio. Attached you'll find a tcpdump log of starting to play a movie on the TV using Serviio, followed by selecting a subtitle from the menu. The command used for logging was: sudo tcpdump -i eth1 -s 1500 -w ~/serviio.pcap "(ip src 192.168.1.5 and ip dst 192.168.1.12) or (ip dst 192.168.0.5 and ip src 192.168.0.12)" Let me know if you need any more information.
It's either the additional thumbnail resource <res protocolInfo="http-get:*:text/srt:*">http://192.168.1.5:8895/resource/163/SUBTITLE.srt</res> or the attributes on the <res> node from the pv namespace (xmlns:pv="http://www.pv.com/pvns/): pv:subtitleFileType="SRT" pv:subtitleFileUri="http://192.168.1.5:8895/resource/162/SUBTITLE.srt" first one is easy to add, the second one is a bit more complex.
For what it's worth: I altered Rygel.Subtitle changing line 37 'mime_type = "text/plain"' to 'mime_type = "text/srt"'. After compilation of 0.10.4 nothing changed. I.e. still no subtitles.
Yes, because I realized we use yet another way
Interesting. I hacked rygel to serve subtitles like this but my WD TV live refuses to use them; it does use them with serviio...
Created attachment 198648 [details] wireshark capture of communication between wdtv and serviio
Created attachment 198649 [details] wireshark capture of communication between wdtv and patched rygel
Created attachment 198854 [details] [review] Hack: Subtitles
Tested the patch with Panasonic and it works. Only the additional attributes to the video RES element are being used for the external subtitle. The separate RES element is not being used and can be omitted for Panasonic. The file extension ".srt" behind the URI could also be omitted. It works both with and without the extension.
Created attachment 257690 [details] [review] server: Support PV subtitles Support serving of external subtitles for devices that support the PV subtitle "standard", namely Panasonic TVs and the WD TV Live
The patch is slightly hackish, though.
hackish is good enough for me ;-)
Attachment 257690 [details] pushed as a49e943 - server: Support PV subtitles
Created attachment 308823 [details] Difference in response between v0.24.2 and v0.26.1 Somewhere between v0.24.2 (Fedora 21) and v0.26.1 (Fedora 22) subtitles stopped working on my Panasonic TX-P50GT60. I captured the difference between the versions, the most obvious differences: The "pv:subtitleFileType" and "pv:subtitleFileUri" attributes are missing from the first res element. 24: <res size="3132991716" protocolInfo="http-get:*:video/mp4:DLNA.ORG_OP=01" pv:subtitleFileType="SRT" pv:subtitleFileUri="http://192.168.1.171:34239/MediaExport/i/(...)/sub/0.srt">http://192.168.1.171:34239/MediaExport/i/(...).mp4</res> 26: <res size="3132991716" protocolInfo="http-get:*:video/mp4:DLNA.ORG_OP=01">http://192.168.1.171:52468/MediaExport/i/(...)/res/primary_http.mp4</res> The other "pv:subtitleFileUri" attributes seem to have an invalid uri (file:///... instead of http://...) 24: <res protocolInfo="http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_EU_ISO;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01700000000000000000000000000000" resolution="720x576" pv:subtitleFileType="SRT" pv:subtitleFileUri="http://192.168.1.171:34239/MediaExport/i/(...)/sub/0.srt">http://192.168.1.171:34239/MediaExport/i/(...)/tr/MPEG_TS_SD_EU_ISO.mpg</res> 26: <res resolution="720x576" protocolInfo="http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_EU_ISO;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01700000000000000000000000000000" pv:subtitleFileType="SRT" pv:subtitleFileUri="file:///home/jan/Videos/wds04/Whatever.srt">http://192.168.1.171:52468/MediaExport/i/(...)/res/MPEG_TS_SD_EU_ISO.mpg</res>
(In reply to jan from comment #13) > Somewhere between v0.24.2 (Fedora 21) and v0.26.1 (Fedora 22) subtitles > stopped working on my Panasonic TX-P50GT60. jan, please file a brand new issue for this.