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
131.24k stars 9.93k forks source link

[France.tv] How to download WebVTT subtitles from the France 2 site?? #17837

Open NiesmialyGosc opened 5 years ago

NiesmialyGosc commented 5 years ago

Please follow the guide below


Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.10.05. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

Before submitting an issue make sure you have:

What is the purpose of your issue?


The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

D:\MOVIE\TOOLS&BATCHFILES\AUDIO\SERIAL\VIDEOS\ffmpeg\bin\FRANCE-2\AMOUR, GLOIRE
ET BEAUTÉ>youtube-dl --proxy socks4://185.204.160.34:4145 --all-subs --convert-s
ubs srt --skip-download -v https://www.france.tv/france-2/amour-gloire-et-beaute
/754969-amour-gloire-et-beaute.html
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--proxy', 'socks4://185.204.160.34:4145', '--all-su
bs', '--convert-subs', 'srt', '--skip-download', '-v', 'https://www.france.tv/fr
ance-2/amour-gloire-et-beaute/754969-amour-gloire-et-beaute.html']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2018.08.22
[debug] Python version 3.4.4 (CPython) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-89508-g1f1207145a, ffprobe N-89508-g1f1207145a
[debug] Proxy map: {'http': 'socks4://185.204.160.34:4145', 'https': 'socks4://1
85.204.160.34:4145'}
[FranceTVSite] 754969-amour-gloire-et-beaute: Downloading webpage
[FranceTV] 68baf388-f8c1-404c-9e9c-1578692fb9f1: Downloading video JSON
[FranceTV] 68baf388-f8c1-404c-9e9c-1578692fb9f1: Downloading geo restriction inf
o
[FranceTV] 68baf388-f8c1-404c-9e9c-1578692fb9f1: Downloading signed m3u8-downloa
d manifest URL
[FranceTV] 68baf388-f8c1-404c-9e9c-1578692fb9f1: Downloading m3u8 information
[FranceTV] 68baf388-f8c1-404c-9e9c-1578692fb9f1: Downloading signed hls_v5_os ma
nifest URL
[FranceTV] 68baf388-f8c1-404c-9e9c-1578692fb9f1: Downloading m3u8 information
[debug] Default format spec: bestvideo+bestaudio/best

D:\MOVIE\TOOLS&BATCHFILES\AUDIO\SERIAL\VIDEOS\ffmpeg\bin\FRANCE-2\AMOUR, GLOIRE
ET BEAUTÉ>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


I can't seem to find a quick way to download the WebVtt subtitles from the following page & merge them into a single srt file even if I've added the parameters "--all-subs --convert-subs srt" (please see the traces above):

https://www.france.tv/france-2/amour-gloire-et-beaute/754969-amour-gloire-et-beaute.html https://www.france.tv/france-3/plus-belle-la-vie/plus-belle-la-vie-saison-9/736187-plus-belle-la-vie.html

Could anyone walk me through the steps to download the HTML 5 WebVTT subtitles from the site above?

Thank you in advance! NiesmialyGosc

NiesmialyGosc commented 5 years ago

OK I've found the way: "--skip-download --sub-format vtt --write-sub": https://github.com/rg3/youtube-dl/issues/11026

But I can't seem to convert it to srt by default: adding "--skip-download --sub-format srt --write-sub" doesn't work. Anyone has any thoughts?

Thank you! NiesmialyGosc

weisenhan commented 5 years ago

The website most likely does not have srt format available for download.