Add VTT subtitles support

SS IPTV App for LG Smart TV discussion
Post Reply
ancho85
Ensign
Ensign
Posts: 3
Joined: 16 Feb 2022, 01:07
TV Model: Samsung Tizen TV UN50NU7095
Paraguay

Add VTT subtitles support

Post by ancho85 »

Been using this amazing app for a couple of years now. But I've never figure it out why some channels offer the subtitles option, yet when selected nothing appears.
This is an example of a channel replying with subtitles available in English.

Code: Select all

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-INDEPENDENT-SEGMENTS
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-INDEPENDENT-SEGMENTS

#EXT-X-MEDIA:TYPE=CLOSED-CAPTIONS,GROUP-ID="CC",LANGUAGE="eng",NAME="English",INSTREAM-ID="CC1"
#EXT-X-STREAM-INF:BANDWIDTH=3193687,AVERAGE-BANDWIDTH=3075600,CODECS="avc1.64001f,mp4a.40.2",RESOLUTION=1280x720,FRAME-RATE=29.970,CLOSED-CAPTIONS="CC",SUBTITLES="subs"
https://dai.google.com/linear/hls/pa/event/b102wvjXSLGQWwRTT-QaaA/stream/fb3c5463-aaf2-4a99-a680-bf7b6c264f31:SCL/variant/c9d39d1cc8be4caf1eb6558e293656d3/bandwidth/3193687.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1363709,AVERAGE-BANDWIDTH=1315600,CODECS="avc1.64001f,mp4a.40.2",RESOLUTION=1024x576,FRAME-RATE=29.970,CLOSED-CAPTIONS="CC",SUBTITLES="subs"
https://dai.google.com/linear/hls/pa/event/b102wvjXSLGQWwRTT-QaaA/stream/fb3c5463-aaf2-4a99-a680-bf7b6c264f31:SCL/variant/6242671c13b557005a08247703f0ff6f/bandwidth/1363709.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=791841,AVERAGE-BANDWIDTH=765600,CODECS="avc1.64001e,mp4a.40.2",RESOLUTION=640x360,FRAME-RATE=29.970,CLOSED-CAPTIONS="CC",SUBTITLES="subs"
https://dai.google.com/linear/hls/pa/event/b102wvjXSLGQWwRTT-QaaA/stream/fb3c5463-aaf2-4a99-a680-bf7b6c264f31:SCL/variant/a15f39bd87f5e57b6089b3cc00116fae/bandwidth/791841.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=448720,AVERAGE-BANDWIDTH=435600,CODECS="avc1.4d400d,mp4a.40.2",RESOLUTION=384x216,FRAME-RATE=29.970,CLOSED-CAPTIONS="CC",SUBTITLES="subs"
https://dai.google.com/linear/hls/pa/event/b102wvjXSLGQWwRTT-QaaA/stream/fb3c5463-aaf2-4a99-a680-bf7b6c264f31:SCL/variant/0c0ec38edff848ba015d7d3023bf7e61/bandwidth/448720.m3u8
#EXT-X-MEDIA:TYPE=SUBTITLES,NAME="English",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="eng",GROUP-ID="subs",URI="https://dai.google.com/linear/hls/pa/event/b102wvjXSLGQWwRTT-QaaA/stream/fb3c5463-aaf2-4a99-a680-bf7b6c264f31:SCL/variant/49fef81a9108b2d9f5bbe0ae475ba31d/bandwidth/000.m3u8"
Following that link in the URI tag at the bottom I get a new m3u8 file with these contents:

Code: Select all

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:7
#EXT-X-MEDIA-SEQUENCE:2237430
#EXT-X-DISCONTINUITY-SEQUENCE:29

#EXTINF:6.00600,
#EXT-X-PROGRAM-DATE-TIME:2022-02-15T21:58:45.101Z
https://linear-82.frequency.stream/dist/distrotv/82/hls/master/playlist_webvtt_215846__2237430.vtt
#EXTINF:6.00600,
https://linear-82.frequency.stream/dist/distrotv/82/hls/master/playlist_webvtt_215852__2237431.vtt
#EXTINF:6.00600,
https://linear-82.frequency.stream/dist/distrotv/82/hls/master/playlist_webvtt_215858__2237432.vtt
#EXTINF:6.00600,
and following any of those links I get the actual text for the subtitle that is suppose to be seen:

Code: Select all

WEBVTT
X-TIMESTAMP-MAP=LOCAL:3658:40:33.039,MPEGTS:207000

3664:24:30.055 --> 3664:24:32.694
â– â– (heavy breathing)
Can these several jumps to the final subtitle be supported?

ancho85
Ensign
Ensign
Posts: 3
Joined: 16 Feb 2022, 01:07
TV Model: Samsung Tizen TV UN50NU7095
Paraguay

Re: Add VTT subtitles support

Post by ancho85 »

Just realized that using the options button (yellow) to change audio track won't do anything on TV. Tested with VLC and the audio track is changed successfully. So, maybe is the subtitles option also having this same problem? Changing audio/subtitle doesn't do anything.

Post Reply