kodi-svtplay / xbmc-svtplay

Unofficial addon for watching SVT Play on Kodi
GNU General Public License v3.0
66 stars 34 forks source link

"Channels"/"Kanaler" don't have any available subtitles #233

Closed linqcan closed 5 years ago

linqcan commented 5 years ago

Problem description

Channels under the "Channels"/"Kanaler" submenu doesn't have any subtitles available in Kodi. Though they have subtitles in SVT's player.

Steps to reproduce

Expected: There is a subtitle to choose from. Actual: No subtitles available.

System information

Kodi version: 18.x

Platform: Windows

Plugin version: 4.1.0

Log

linqcan commented 5 years ago

Branched from #227

linqcan commented 5 years ago

Kodi issue. The subtitle format used by SVT is not supported by Kodi yet.

SVT uses a m3u8 playlist of VTT subtitles files, references in the HLS video m3u8 as an m3u8 playlist.

video m3u8

...
#EXT-X-MEDIA:TYPE=SUBTITLES,URI="URL/s0.m3u8",GROUP-ID="subs",LANGUAGE="sv",NAME="Svenska",DEFAULT=NO,AUTOSELECT=YES,CHARACTERISTICS="public.accessibility.transcribes-spoken-dialog"
...

subtitle m3u8:

#EXTM3U
#EXT-X-VERSION:4
#EXT-X-TARGETDURATION:4
#EXT-X-MEDIA-SEQUENCE:10529609
#EXTINF:3.2,
s0-10529609.vtt
...
linqcan commented 5 years ago

Tried a "Kanaler" stream with ffmpeg 4.2 (standalone on Windows) and got this error:

[hls demuxer @ 00000202ec81eec0] Can't support the subtitle(uri: 36603052-54ff-4835-a041-a1c25feee9a1/hls-s0/s0.m3u8)

So ffmpeg does not support the kind of subtitles embedded in the "Kanaler" streams which means Kodi won't either (until ffmpeg does and that version is lifted into Kodi).

Kodi 18.4 uses ffmpeg 4.0.4 (https://kodi.tv/article/kodi-leia-184-release).

linqcan commented 5 years ago

Closing as this is not fixable by the addon.