Skip to content

YouTube subtitle download problem. #4788

Closed as not planned
Closed as not planned
@Senrt

Description

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I remove or skip any mandatory* field

Checklist

  • I'm requesting a site-specific feature
  • I've verified that I'm running yt-dlp version 2022.08.19 (update instructions) or later (specify commit)
  • I've checked that all provided URLs are playable in a browser with the same IP and same login details
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue
  • I've read about sharing account credentials and I'm willing to share it if required

Region

No response

Example URLs

https://youtu.be/-wJOUAuKZm8

Provide a description that is worded well enough to be understood

It may be a problem with my use, or it may be a bug. Because yt-dlp does not distinguish between the download of original subtitles and automatic subtitles, if the video has English subtitles and automatic English subtitles, yt-dlp will only download one of them. yt-dlp -f "m4a" --write-auto-sub --write-subs --sub-langs "en" --embed-subs "https://youtu.be/-wJOUAuKZm8" like this video. It would be nice if yt-dlp could --sub-langs "all" and --auto-sub-langs "ko-en".

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', '-f', 'm4a', '--write-auto-sub', '--write-subs', '--sub-langs', 'en', '--embed-subs', 'https://youtu.be/-wJOUAuKZm8']
[debug] Encodings: locale cp936, fs utf-8, pref cp936, out gbk (No ANSI), error gbk (No ANSI), screen gbk (No ANSI)
[debug] yt-dlp version 2022.08.19 [48c88e0] (win32_exe)
[debug] Python 3.8.10 (CPython 64bit) - Windows-10-10.0.19042-SP0 
[debug] Checking exe version: ffmpeg -bsfs
[debug] Checking exe version: ffprobe -bsfs
[debug] exe versions: ffmpeg N-104454-gd92fdc7144-20211030 (setts)
[debug] Optional libraries: Cryptodome-3.15.0, brotli-1.0.9, certifi-2022.06.15, mutagen-1.45.1, sqlite3-2.6.0, websockets-10.3
[debug] Proxy map: {'http': 'http://127.0.0.1:19527', 'https': 'https://127.0.0.1:19527', 'ftp': 'ftp://127.0.0.1:19527'}
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version: 2022.08.19, Current version: 2022.08.19
yt-dlp is up to date (2022.08.19)
[debug] [youtube] Extracting URL: https://youtu.be/-wJOUAuKZm8
[youtube] -wJOUAuKZm8: Downloading webpage
[youtube] -wJOUAuKZm8: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Downloading subtitles: en
[info] -wJOUAuKZm8: Downloading 1 format(s): 140
[info] Writing video subtitles to: This GPU SLIDES into this Case! - Silverstone SUGO 16 ITX Case [-wJOUAuKZm8].en.vtt
[debug] Invoking http downloader on "https://www.youtube.com/api/timedtext?v=-wJOUAuKZm8&caps=asr&xoaf=5&xosf=1&hl=en&ip=0.0.0.0&ipbits=0&expire=1661707309&sparams=ip%2Cipbits%2Cexpire%2Cv%2Ccaps%2Cxoaf&signature=C73C7E8F85C2B12D4888A8F32A650ABECDF50A53.A9355DDCF1EB6FB4293143D3129B907E0E333A3A&key=yt8&lang=en&fmt=vtt"
[debug] File locking is not supported. Proceeding without locking
[download] Destination: This GPU SLIDES into this Case! - Silverstone SUGO 16 ITX Case [-wJOUAuKZm8].en.vtt
[download] 100% of 32.79KiB in 00:00 at 119.11KiB/s
[debug] Invoking http downloader on "https://rr4---sn-i3b7knse.googlevideo.com/videoplayback?expire=1661703710&ei=vkELY43ZBN-8vcAP9-m7mAE&ip=103.148.72.13&id=o-AP7FtPaIophJVZNZnlqAQ0A8MrhxT0FCfTYoOiDJtMHv&itag=140&source=youtube&requiressl=yes&mh=yu&mm=31%2C29&mn=sn-i3b7knse%2Csn-i3bssn7e&ms=au%2Crdu&mv=m&mvi=4&pl=24&initcwndbps=1221250&spc=lT-KhurawVs8HJ3-b5FFzyX577Do1kE&vprv=1&svpuc=1&mime=audio%2Fmp4&gir=yes&clen=14500566&dur=895.918&lmt=1639987265488003&mt=1661681825&fvip=4&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&rbqsm=fr&txp=5532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgMQq1lKlPLSh73_iD3azNdIxDy18PhjvFViEB7EDe7C8CIQDPTwXmnYn6ulPpi509vJWzFhtZa858mluagyyN-88q9A%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAN33cu8d6RtE8XwHG4TmjD4DDoZgAL4_p_Xe27IXPiSMAiEAtMXWG-Uu4KpyVdtYZC5_p7-PqiiTsYuspD1Kbx2TR24%3D"
[download] Destination: This GPU SLIDES into this Case! - Silverstone SUGO 16 ITX Case [-wJOUAuKZm8].m4a
[download] 100% of 13.83MiB in 00:13 at 1018.06KiB/s   
[FixupM4a] Correcting container of "This GPU SLIDES into this Case! - Silverstone SUGO 16 ITX Case [-wJOUAuKZm8].m4a"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:This GPU SLIDES into this Case! - Silverstone SUGO 16 ITX Case [-wJOUAuKZm8].m4a" -map 0 -dn -ignore_unknown -c copy -f mp4 -movflags "+faststart" "file:This GPU SLIDES into this Case! - Silverstone SUGO 16 ITX Case [-wJOUAuKZm8].temp.m4a"
[EmbedSubtitle] Embedding subtitles in "This GPU SLIDES into this Case! - Silverstone SUGO 16 ITX Case [-wJOUAuKZm8].m4a"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:This GPU SLIDES into this Case! - Silverstone SUGO 16 ITX Case [-wJOUAuKZm8].m4a" -i "file:This GPU SLIDES into this Case! - Silverstone SUGO 16 ITX Case [-wJOUAuKZm8].en.vtt" -map 0 -dn -ignore_unknown -c copy "-c:s" mov_text -map "-0:s" -map "1:0" "-metadata:s:s:0" "language=eng" "-metadata:s:s:0" "handler_name=English" "-metadata:s:s:0" "title=English" -movflags "+faststart" "file:This GPU SLIDES into this Case! - Silverstone SUGO 16 ITX Case [-wJOUAuKZm8].temp.m4a"

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions