Issue with Youtube auto subtitle
See original GitHub issueChecklist
- I’m reporting a broken site
- I’ve verified that I’m running yt-dlp version 2022.02.04. (update instructions)
- I’ve checked that all provided URLs are alive and playable in a browser
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- 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
Description
The auto subtitles from youtube no longer work properly. Looking at the generated vtt and then converted ass subtitles the script is fully pulled, but it places the full script within the first few seconds (<5) in the subtitle files. This used to not happen, and does not seem to be caused by a change in yt-dlp since the behaviour changed without a change in yt-dlp. I have also tested and it does not seem to be a one off issue with this video, it seems to happen on all videos (only on auto generated subtitles not traditional subtitles).
Verbose log
[debug] Command-line config: ['-vU', '-i', '--convert-subs', 'ass', '--merge-output-format', 'mkv', '--embed-chapters', '--video-multistreams', '--audio-multistreams', '--embed-subs', '--write-auto-subs', '--write-subs', '--compat-options', 'no-keep-subs', '--sponsorblock-mark', 'all', '--no-check-certificate', 'https://www.youtube.com/watch?v=k00UASRvAiw']
[debug] Encodings: locale cp1252, fs utf-8, out cp1252 (No ANSI), err cp1252 (No ANSI), pref cp1252
[debug] yt-dlp version 2022.02.04 [c1653e9] (win_exe)
[debug] Compatibility options: no-keep-subs
[debug] Python version 3.8.10 (CPython 64bit) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg 4.2.3, ffprobe 4.4-essentials_build-www.gyan.dev
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2022.02.04, Current version: 2022.02.04
yt-dlp is up to date (2022.02.04)
[debug] [youtube] Extracting URL: https://www.youtube.com/watch?v=k00UASRvAiw
[youtube] k00UASRvAiw: Downloading webpage
[youtube] k00UASRvAiw: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, codec:vp9.2, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Downloading subtitles: en
[SponsorBlock] Fetching SponsorBlock segments
[debug] SponsorBlock query: https://sponsor.ajay.app/api/skipSegments/3e51?service=YouTube&categories=%5B%22selfpromo%22%2C+%22outro%22%2C+%22poi_highlight%22%2C+%22preview%22%2C+%22music_offtopic%22%2C+%22interaction%22%2C+%22intro%22%2C+%22filler%22%2C+%22sponsor%22%5D
[SponsorBlock] Found 2 segments in the SponsorBlock database
[debug] Default format spec: bestvideo+bestaudio/best
[info] k00UASRvAiw: Downloading 1 format(s): 313+251
[info] Writing video subtitles to: Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].en.vtt
[debug] Invoking downloader on "https://www.youtube.com/api/timedtext?v=k00UASRvAiw&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&caps=asr&exp=xctw&xoaf=5&hl=en&ip=0.0.0.0&ipbits=0&expire=1646462330&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cexp%2Cxoaf&signature=E9A08B8EBA1E7F1CA73B27A6D96EAFE2A724757B.5E2ADB3AE55B7E07ED61FA3828997EB9A9D80518&key=yt8&kind=asr&lang=en&tlang=en&fmt=vtt"
[download] Destination: Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].en.vtt
[download] 100% of 46.97KiB in 00:00
[SubtitlesConvertor] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].en.vtt" -f ass -movflags "+faststart" "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].en.ass"
Deleting original file Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].en.vtt (pass -k to keep)
[debug] Invoking downloader on "https://rr3---sn-vgqsrnes.googlevideo.com/videoplayback?expire=1646458730&ei=CqMiYsSkKaSV2_gPs7i90AU&ip=73.36.52.228&id=o-AH8f9WXFlRGpbvM5KVPi98M6AmDcGwVp3WZyOOzgftx3&itag=313&source=youtube&requiressl=yes&mh=tR&mm=31%2C26&mn=sn-vgqsrnes%2Csn-p5qddn7k&ms=au%2Conr&mv=m&mvi=3&pl=16&initcwndbps=1961250&vprv=1&mime=video%2Fwebm&gir=yes&clen=897945521&dur=808.307&lmt=1646411175489886&mt=1646436778&fvip=3&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=3310224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRgIhAI4MES-8KwIhMtx9GPNAw-qp2seSV4ri_EIf57bf-Ys-AiEA1EnU37K_sTaU3jomYn6Wf82uYQcF9OBeC02E1es2irI%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAIi7qW4D7RM5lBezrIP6CTmT_QNSIexXJQPdM8XiHExEAiB8lyBz1OKk0O8I7PN9zDPZhqH6KYS77_1AHz4SGrkMLw%3D%3D"
[download] Destination: Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].f313.webm
[download] 100% of 856.35MiB in 00:29
[debug] Invoking downloader on "https://rr3---sn-vgqsrnes.googlevideo.com/videoplayback?expire=1646458730&ei=CqMiYsSkKaSV2_gPs7i90AU&ip=73.36.52.228&id=o-AH8f9WXFlRGpbvM5KVPi98M6AmDcGwVp3WZyOOzgftx3&itag=251&source=youtube&requiressl=yes&mh=tR&mm=31%2C26&mn=sn-vgqsrnes%2Csn-p5qddn7k&ms=au%2Conr&mv=m&mvi=3&pl=16&initcwndbps=1961250&vprv=1&mime=audio%2Fwebm&gir=yes&clen=12034419&dur=808.341&lmt=1646410894049576&mt=1646436778&fvip=3&keepalive=yes&fexp=24001373%2C24007246&c=ANDROID&txp=3310224&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIgCcisW2KTThR3vV5MOZwosSiw4v7Hp890qNYEJrlisOACIQDh1ZQgnVbEd_T72UJUYKOIutvVD1T71R-NL0qT50iHJA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIhAIi7qW4D7RM5lBezrIP6CTmT_QNSIexXJQPdM8XiHExEAiB8lyBz1OKk0O8I7PN9zDPZhqH6KYS77_1AHz4SGrkMLw%3D%3D"
[download] Destination: Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].f251.webm
[download] 100% of 11.48MiB in 00:00
[Merger] Merging formats into "Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].f313.webm" -i "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].f251.webm" -c copy -map "0:v:0" -map "1:a:0" -movflags "+faststart" "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].temp.mkv"
Deleting original file Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].f251.webm (pass -k to keep)
Deleting original file Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].f313.webm (pass -k to keep)
[EmbedSubtitle] Embedding subtitles in "Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].mkv" -i "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].en.ass" -map 0 -dn -ignore_unknown -c copy -map "-0:s" -map "1:0" "-metadata:s:s:0" "language=eng" -movflags "+faststart" "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].temp.mkv"
Deleting original file Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].en.ass (pass -k to keep)
[debug] ffprobe command line: ffprobe -hide_banner -show_format -show_streams -print_format json "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].mkv"
[Metadata] Adding metadata to "Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel "repeat+info" -i "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].mkv" -i "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].meta" -map 0 -dn -ignore_unknown -c copy -map_metadata 1 -movflags "+faststart" "file:Scammer Can't Get His Chicken to be Quiet! [k00UASRvAiw].temp.mkv"
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:12 (4 by maintainers)
Top Results From Across the Web
6 Fixes to YouTube Automatic Captions Not Available
6 Fixes to YouTube Automatic Captions Not Available · Fix 1: Re-enable YouTube Subtitles · Fix 2: Reload or Restart YouTube · Fix...
Read more >10 Fixes for YouTube Subtitles, Automatic or Closed Captions ...
This guide shows 10 simple fixes to try when YouTube subtitles, automatic-captions or closed-captions aren't working or showing up!
Read more >How to fix errors in YouTube's Automatic Captions – a 5-step ...
This tutorial walks through how to use Youtube Automatic Captions to caption your videos and remove errors which may alienate your viewers.
Read more >YouTube captions turning on automatically even when disabled
Several users have reported on the forums, that toggling the “Always show captions” setting to off has fixed the issue for them.
Read more >How to Generate Automatic Subtitles/Captions in YouTube ...
How to Generate Automatic Subtitles/Captions in YouTube Video · Click your account picture in the top right corner. · Select Youtube Studio. ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
idk why the language code looks like
en-nP7-2PuUl7o
. Will need to look into it moreProvide verbose log