After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 661228 - No external subtitles for Panasonic
No external subtitles for Panasonic
Status: RESOLVED FIXED
Product: rygel
Classification: Applications
Component: IOP
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Zeeshan Ali
rygel-maint
Depends on: 695990
Blocks:
 
 
Reported: 2011-10-07 20:06 UTC by Age Bosma (IRC: Forage)
Modified: 2015-08-06 07:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wireshark capture of communication between wdtv and serviio (55.50 KB, application/cap)
2011-10-09 09:53 UTC, Jens Georg
  Details
wireshark capture of communication between wdtv and patched rygel (145.17 KB, application/cap)
2011-10-09 09:54 UTC, Jens Georg
  Details
Hack: Subtitles (4.01 KB, patch)
2011-10-12 15:08 UTC, Jens Georg
none Details | Review
server: Support PV subtitles (2.94 KB, patch)
2013-10-19 09:14 UTC, Jens Georg
committed Details | Review
Difference in response between v0.24.2 and v0.26.1 (6.43 KB, text/plain)
2015-08-05 22:36 UTC, jan
  Details

Description Age Bosma (IRC: Forage) 2011-10-07 20:06:02 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.
Comment 1 Jens Georg 2011-10-07 21:44:28 UTC
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.
Comment 2 Age Bosma (IRC: Forage) 2011-10-07 22:18:35 UTC
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.
Comment 3 Jens Georg 2011-10-08 06:35:40 UTC
Yes, because I realized we use yet another way
Comment 4 Jens Georg 2011-10-09 09:06:33 UTC
Interesting. I hacked rygel to serve subtitles like this but my WD TV live refuses to use them; it does use them with serviio...
Comment 5 Jens Georg 2011-10-09 09:53:35 UTC
Created attachment 198648 [details]
wireshark capture of communication between wdtv and serviio
Comment 6 Jens Georg 2011-10-09 09:54:39 UTC
Created attachment 198649 [details]
wireshark capture of communication between wdtv and patched rygel
Comment 7 Jens Georg 2011-10-12 15:08:03 UTC
Created attachment 198854 [details] [review]
Hack: Subtitles
Comment 8 Age Bosma (IRC: Forage) 2011-10-12 15:51:00 UTC
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.
Comment 9 Jens Georg 2013-10-19 09:14:19 UTC
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
Comment 10 Jens Georg 2013-10-19 09:17:51 UTC
The patch is slightly hackish, though.
Comment 11 Age Bosma (IRC: Forage) 2013-10-23 15:18:44 UTC
hackish is good enough for me ;-)
Comment 12 Jens Georg 2013-11-17 17:19:31 UTC
Attachment 257690 [details] pushed as a49e943 - server: Support PV subtitles
Comment 13 jan 2015-08-05 22:36:38 UTC
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>
Comment 14 Jussi Kukkonen 2015-08-06 07:28:58 UTC
(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.