Bonjour,
Selon le manuel yt-dlp, cet outil permet d'intégrer des sous-titres dans une vidéo en téléchargement, mais il n'y a aucun exemple de la façon de le faire.
Quelqu'un a-t-il connu de tels problèmes ?
Voici l'exemple de comment j'ai procédé : malgré le message de log il n'y a pas de sous-titre dans le fichier aaa.mp4.
Thanks.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
(arte_env) pavel@ALABAMA:~/arte_env$ yt-dlp --embed-subs -o "aaa.mp4" "www.arte.tv/fr/videos/092925-000-A/un-million-d-annees/"
WARNING: [generic] The url doesn't specify the protocol, trying with http
[ArteTV] 092925-000-A: Downloading JSON metadata
[ArteTV] 092925-000-A: Downloading m3u8 information
[ArteTV] 092925-000-A: Downloading m3u8 information
[info] 092925-000-A: Downloading 1 format(s): VO-STF-2232+VO-STF-program_audio_0-VO
[info] Writing video subtitles to: aaa.fr.vtt
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 1
[download] Destination: aaa.fr.vtt
[download] 100% of 7.40KiB in 00:00
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 199
[download] Destination: aaa.fVO-STF-2232.mp4
[download] 100% of 599.54MiB in 02:22
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 200
[download] Destination: aaa.fVO-STF-program_audio_0-VO.mp4
[download] 100% of 35.42MiB in 00:29
[Merger] Merging formats into "aaa.mp4"
Deleting original file aaa.fVO-STF-2232.mp4 (pass -k to keep)
Deleting original file aaa.fVO-STF-program_audio_0-VO.mp4 (pass -k to keep)
[EmbedSubtitle] Embedding subtitles in "aaa.mp4"
Deleting original file aaa.fr.vtt (pass -k to keep)
(arte_env) pavel@ALABAMA:~/arte_env$