ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132k stars 10.01k forks source link

TV4Play.se - Subtitles not working #23609

Open Sopor opened 4 years ago

Sopor commented 4 years ago

Checklist

Verbose log

youtube-dl.exe -f bestvideo+bestaudio/best --write-sub --all-subs --convert-subs srt -v https://www.tv4play.se/program/agnetas-ny%C3%A5rskarameller/12490846
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'bestvideo+bestaudio/best', '--write-sub', '--all-subs', '--convert-subs', 'srt', '-v', 'https://www.tv4play.se/program/agnetas-ny%C3%A5rskarameller/12490846']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.01.01
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.18362
[debug] exe versions: ffmpeg 4.2.1
[debug] Proxy map: {}
[debug] Using fake IP 78.64.58.81 (SE) as X-Forwarded-For.
[TV4] 12490846: Downloading video info JSON
[TV4] 12490846: Downloading JSON metadata
[TV4] 12490846: Downloading m3u8 information
[TV4] 12490846: Downloading MPD manifest
WARNING: [TV4] Unknown MIME type application/mp4 in DASH manifest
[TV4] 12490846: Downloading f4m manifest
[TV4] 12490846: Downloading ISM manifest
[debug] Invoking downloader on 'https://lbs-usp-hls-vod.cmore.se/vod/71e61/ldlgqtdtl1s(12490846_ISMUSP).ism/ldlgqtdtl1s(12490846_ISMUSP)-video=5603650.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 997
[download] Destination: Agnetas nyårskarameller-12490846.fhls-6073.mp4
[download] 100% of 2.66GiB in 05:59
[debug] Invoking downloader on 'https://lbs-usp-hls-vod.cmore.se/vod/71e61/ldlgqtdtl1s(12490846_ISMUSP).ism/ldlgqtdtl1s(12490846_ISMUSP)-audio=128000.m3u8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 997
[download] Destination: Agnetas nyårskarameller-12490846.fhls-133.mp4
[download] 100% of 61.90MiB in 01:19
[ffmpeg] Merging formats into "Agnetas nyårskarameller-12490846.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Agnetas nyårskarameller-12490846.fhls-6073.mp4" -i "file:Agnetas nyårskarameller-12490846.fhls-133.mp4" -c copy -map "0:v:0" -map "1:a:0" "file:Agnetas nyårskarameller-12490846.temp.mp4"
Deleting original file Agnetas nyårskarameller-12490846.fhls-6073.mp4 (pass -k to keep)
Deleting original file Agnetas nyårskarameller-12490846.fhls-133.mp4 (pass -k to keep)
[ffmpeg] There aren't any subtitles to convert

Description

Is seems that there is another way to get non segmented subtitles from TV4.

Sample manifest of segmented subtitle:

https://lbs-usp-hls-vod.cmore.se/vod/71e61/ldlgqtdtl1s(12490846_ISMUSP).ism/ldlgqtdtl1s(12490846_ISMUSP)-video=5603650.m3u8

Sample segment:

https://lbs-usp-hls-vod.cmore.se/vod/71e61/ldlgqtdtl1s(12490846_ISMUSP).ism/ldlgqtdtl1s(12490846_ISMUSP)-textstream_swe=3000-1.webvtt

Sample of complete webvtt (NOT segmented)

https://lbs-usp-hls-vod.cmore.se/vod/71e61/ldlgqtdtl1s(12490846_ISMUSP).ism/ldlgqtdtl1s(12490846_ISMUSP)-textstream_swe=3000.webvtt

I don't know if you want to use this instead of the segmented ones?

SYSophie commented 4 years ago

@Sopor Reference: https://github.com/retrospect-addon/plugin.video.retrospect/issues/1188