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
132.44k stars 10.04k forks source link

[YouTube] HTTP 404 with automatic subtitles prevents download from completing #24269

Open jcjordyn130 opened 4 years ago

jcjordyn130 commented 4 years ago

Checklist

Verbose log

[jordyn@yoshi tmp]$ youtube-dl --embed-subtitle --write-sub --all-subs -v DO-euhzk4dQ
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: no such option: --embed-subtitle
[jordyn@yoshi tmp]$ youtube-dl --embed-subs --write-sub --all-subs -v DO-euhzk4dQ
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--embed-subs', '--write-sub', '--all-subs', '-v', 'DO-euhzk4dQ']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.01.01
[debug] Python version 3.7.6 (CPython) - Linux-5.5.7-200.fc31.x86_64-x86_64-with-fedora-31-Thirty_One
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2
[debug] Proxy map: {}
[youtube] DO-euhzk4dQ: Downloading webpage
[youtube] DO-euhzk4dQ: Downloading video info webpage
WARNING: video doesn't have subtitles
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://r1---sn-nv0uixgoapbiu-hntl.googlevideo.com/videoplayback?expire=1583537525&ei=FYliXombN8L5zLUPv7uCmAo&ip=170.249.173.21&id=o-AOFLVH-hv4VU5JuW6piKNMYGgr7CS8SG7nNoSxA6uDdP&itag=313&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C271%2C278%2C313&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-nv0uixgoapbiu-hntl%2Csn-5uaeznkl&ms=au%2Crdu&mv=m&mvi=0&pl=21&initcwndbps=1777500&vprv=1&mime=video%2Fwebm&gir=yes&clen=1675571404&dur=1022.888&lmt=1582915567719462&mt=1583515836&fvip=4&keepalive=yes&fexp=23842630&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ADKhkGMwRAIgKOuo1iPtFIkeYQ0Qm0xn1Ov4yius_mhaz5-PO409h0ECIF0dcvFyOEcZ1d6j83V8sITsPy_UyCuPvIMmVop_17c2&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ABSNjpQwRQIhAKs0Q_RXcaovZndO8fHatm8D1n-S96khFbxPfh04TX6FAiBlENkZ2IrnUmM2k6cpSXNaObI05uZRxDfwOc8Kb5E5yw%3D%3D&ratebypass=yes'
[download] Destination: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.f313.webm
[download]   4.1% of 1.56GiB at  9.18MiB/s ETA 02:46^C
ERROR: Interrupted by user
[jordyn@yoshi tmp]$ youtube-dl --embed-subs --write-sub --write-auto-subs --all-subs -v DO-euhzk4dQ
Usage: youtube-dl [OPTIONS] URL [URL...]

youtube-dl: error: no such option: --write-auto-subs
[jordyn@yoshi tmp]$ youtube-dl --embed-subs --write-sub --write-auto-sub --all-subs -v DO-euhzk4dQ
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--embed-subs', '--write-sub', '--write-auto-sub', '--all-subs', '-v', 'DO-euhzk4dQ']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.01.01
[debug] Python version 3.7.6 (CPython) - Linux-5.5.7-200.fc31.x86_64-x86_64-with-fedora-31-Thirty_One
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2
[debug] Proxy map: {}
[youtube] DO-euhzk4dQ: Downloading webpage
[youtube] DO-euhzk4dQ: Downloading video info webpage
WARNING: video doesn't have subtitles
[youtube] DO-euhzk4dQ: Looking for automatic captions
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.af.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.sq.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.am.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ar.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.hy.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.az.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.bn.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.eu.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.be.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.bs.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.bg.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.my.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ca.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ceb.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.zh-Hans.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.zh-Hant.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.co.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.hr.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.cs.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.da.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.nl.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.en.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.eo.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.et.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.fil.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.fi.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.fr.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.gl.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ka.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.de.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.el.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.gu.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ht.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ha.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.haw.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.iw.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.hi.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.hmn.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.hu.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.is.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ig.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.id.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ga.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.it.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ja.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.jv.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.kn.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.kk.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.km.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.rw.vtt
WARNING: Unable to download subtitle for "rw": Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ko.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ku.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ky.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.lo.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.la.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.lv.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.lt.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.lb.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.mk.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.mg.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ms.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ml.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.mt.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.mi.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.mr.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.mn.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ne.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.no.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ny.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.or.vtt
WARNING: Unable to download subtitle for "or": Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ps.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.fa.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.pl.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.pt.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.pa.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ro.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ru.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.sm.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.gd.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.sr.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.sn.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.sd.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.si.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.sk.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.sl.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.so.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.st.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.es.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.su.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.sw.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.sv.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.tg.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ta.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.tt.vtt
WARNING: Unable to download subtitle for "tt": Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.te.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.th.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.tr.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.tk.vtt
WARNING: Unable to download subtitle for "tk": Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.uk.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ur.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.ug.vtt
WARNING: Unable to download subtitle for "ug": Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.uz.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.vi.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.cy.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.fy.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.xh.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.yi.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.yo.vtt
[info] Writing video subtitles to: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.zu.vtt
[debug] Invoking downloader on 'https://r1---sn-nv0uixgoapbiu-hntl.googlevideo.com/videoplayback?expire=1583537555&ei=M4liXsLjMs314QSr4KyICw&ip=170.249.173.21&id=o-AKOb8sfoQdTFY-1kNEYwveDLDkVa48uEnFfprgoZwjoH&itag=313&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C271%2C278%2C313&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-nv0uixgoapbiu-hntl%2Csn-5uaeznkl&ms=au%2Crdu&mv=m&mvi=0&pl=21&initcwndbps=1777500&vprv=1&mime=video%2Fwebm&gir=yes&clen=1675571404&dur=1022.888&lmt=1582915567719462&mt=1583515836&fvip=4&keepalive=yes&fexp=23842630&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ADKhkGMwRQIhAMW2eTQvn3wEZvAeDtQYpvhnVpqyLS58Lr9P7zwD3zgpAiBILDf1KIzokVQxGSuxyExRNET9ODXHqdLfytffUYy4DQ%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ABSNjpQwRgIhALRPZ1hXY5JFr9zv5Rb-S1EXt2ISlMlaDp6LVLMyUZsIAiEAoRm1V6cMIAQEtFZMgv_eXS9yjfOJEnxedZySEb-xCG4%3D&ratebypass=yes'
[download] Resuming download at byte 69450779
[download] Destination: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.f313.webm
[download] 100% of 1.56GiB in 09:18
[debug] Invoking downloader on 'https://r1---sn-nv0uixgoapbiu-hntl.googlevideo.com/videoplayback?expire=1583537555&ei=M4liXsLjMs314QSr4KyICw&ip=170.249.173.21&id=o-AKOb8sfoQdTFY-1kNEYwveDLDkVa48uEnFfprgoZwjoH&itag=251&source=youtube&requiressl=yes&mm=31%2C29&mn=sn-nv0uixgoapbiu-hntl%2Csn-5uaeznkl&ms=au%2Crdu&mv=m&mvi=0&pl=21&initcwndbps=1777500&vprv=1&mime=audio%2Fwebm&gir=yes&clen=15746932&dur=1022.921&lmt=1582911402171523&mt=1583515836&fvip=4&keepalive=yes&fexp=23842630&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=ADKhkGMwRQIgcX_F5tZa9Hwz0ja_70oLyLMG6O8mv1RTc_3R5ifeKcwCIQD8Nm3TIvJKbGUKmvzJp0wb9GYHreei-ESzyVRZyx8Bpw%3D%3D&lsparams=mm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ABSNjpQwRgIhALRPZ1hXY5JFr9zv5Rb-S1EXt2ISlMlaDp6LVLMyUZsIAiEAoRm1V6cMIAQEtFZMgv_eXS9yjfOJEnxedZySEb-xCG4%3D&ratebypass=yes'
[download] Destination: IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.f251.webm
[download] 100% of 15.02MiB in 00:05
[ffmpeg] Merging formats into "IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.webm"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.f313.webm' -i 'file:IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.f251.webm' -c copy -map 0:v:0 -map 1:a:0 'file:IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.temp.webm'
Deleting original file IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.f313.webm (pass -k to keep)
Deleting original file IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.f251.webm (pass -k to keep)
[ffmpeg] Embedding subtitles in 'IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.webm'
Traceback (most recent call last):
  File "/home/jordyn/.local/bin/youtube-dl", line 10, in <module>
    sys.exit(main())
  File "/home/jordyn/.local/lib/python3.7/site-packages/youtube_dl/__init__.py", line 474, in main
    _real_main(argv)
  File "/home/jordyn/.local/lib/python3.7/site-packages/youtube_dl/__init__.py", line 464, in _real_main
    retcode = ydl.download(all_urls)
  File "/home/jordyn/.local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 2018, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/home/jordyn/.local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 807, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/home/jordyn/.local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 862, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/home/jordyn/.local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 1643, in process_video_result
    self.process_info(new_info)
  File "/home/jordyn/.local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 1999, in process_info
    self.post_process(filename, info_dict)
  File "/home/jordyn/.local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 2064, in post_process
    files_to_delete, info = pp.run(info)
  File "/home/jordyn/.local/lib/python3.7/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 426, in run
    self.run_ffmpeg_multiple_files(input_files, temp_filename, opts)
  File "/home/jordyn/.local/lib/python3.7/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 210, in run_ffmpeg_multiple_files
    os.stat(encodeFilename(path)).st_mtime for path in input_paths)
  File "/home/jordyn/.local/lib/python3.7/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 210, in <genexpr>
    os.stat(encodeFilename(path)).st_mtime for path in input_paths)
FileNotFoundError: [Errno 2] No such file or directory: 'IKEA Frekvens Speaker Review and Teardown-DO-euhzk4dQ.rw.vtt'

Description

Whenever I tell youtube-dl to download all automatic subtitles and embed them into the resulting video file if any of them fail to download the whole process fails. Would it be possible to either figure out why these URLs are returning HTTP 404 or adding a command line switch for youtube-dl to ignore them? The video URL that I'm trying to download is https://www.youtube.com/watch?v=DO-euhzk4dQ.

IEWbgfnYDwHRoRRSKtkdyMDUzgdwuBYgDKtDJWd commented 4 years ago

I have been trying to find a work around for this for days now. Saw you posted this days ago, was hoping it would have a fix by now.

The issue for me is with youtube livestream videos. ydl will not recognize the auto subs until the video is finished streaming AND once youtube has converted it to a non HLS video container, usually taking hours for longer videos on youtube's end.

Have you found any useful way to grab them in the interim?

jegfish commented 4 years ago

I have found my own hacky workaround. Here is a description of it with the old code and my new code: https://gist.github.com/jegfish/6aa9337516f213ed18b8145abedd87e4 Here is a git diff of it, which may be easier to read: https://gist.github.com/jegfish/90f605bd55b239215036996e478acfdf

Essentially I keep track of the subtitle languages that fail to download in the list failed_sub_langs, then delete those sub_langs from the dictionary info_dict['requested_subtitles'].

I have never looked at nor touched the youtube-dl code base before this, so I will not pretend that this is the right solution or even a good one. I don't like the idea of changing the 'requested_subtitles' to something it's not, and that may cause issues somewhere else in the code that I don't know about. The real problem here might be the code that tries to download certain subtitle languages that runs into a 404. Maybe it is generating the wrong URL. Maybe it's YouTube's fault. I haven't looked at that bit of code, so I don't know. I just hope that my workaround might be helpful to others.

denilsonsa commented 3 years ago

I can confirm this bug.

While trying to download player.vimeo.com video 294967001 with --all-subs --embed-subs arguments, the tool will fail to download one of the subtitle languages (the server returns 404, even if I open the video in the browser), and then it crashes when trying to embed the subtitles into a single file.

WARNING: Unable to download subtitle for "es": Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
…
[ffmpeg] Embedding subtitles in 'foobar-294967001.mp4'
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.7/youtube-dl", line 11, in <module>
    load_entry_point('youtube-dl==2020.7.28', 'console_scripts', 'youtube-dl')()
  File "/usr/lib/python3.7/site-packages/youtube_dl/__init__.py", line 474, in main
    _real_main(argv)
  File "/usr/lib/python3.7/site-packages/youtube_dl/__init__.py", line 464, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 2019, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 808, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 863, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 1644, in process_video_result
    self.process_info(new_info)
  File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 2000, in process_info
    self.post_process(filename, info_dict)
  File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 2065, in post_process
    files_to_delete, info = pp.run(info)
  File "/usr/lib/python3.7/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 426, in run
    self.run_ffmpeg_multiple_files(input_files, temp_filename, opts)
  File "/usr/lib/python3.7/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 210, in run_ffmpeg_multiple_files
    os.stat(encodeFilename(path)).st_mtime for path in input_paths)
  File "/usr/lib/python3.7/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 210, in <genexpr>
    os.stat(encodeFilename(path)).st_mtime for path in input_paths)
FileNotFoundError: [Errno 2] No such file or directory: 'foobar-294967001.es.vtt'

I can confirm the workaround from the previous comment works: the not-found subtitle is correctly ignored and the final file is assembled correctly. @jegfish, how about you submit your little patch as a pull request?