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.37k stars 9.95k forks source link

Add command line parameter to select track name of caption - not always default to "closed captions" #30759

Open himslm01 opened 2 years ago

himslm01 commented 2 years ago

Checklist

Verbose log

$ youtube-dl --write-sub --embed-subs --sub-lang en-GB "https://www.youtube.com/watch?v=0Zp6IdV9fFo" -k -v --print-traffic
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--write-sub', u'--embed-subs', u'--sub-lang', u'en-GB', u'https://www.youtube.com/watch?v=0Zp6IdV9fFo', u'-k', u'-v', u'--print-traffic']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 2.7.18 (CPython) - Linux-5.13.0-35-generic-x86_64-with-Ubuntu-20.04-focal
[debug] exe versions: ffmpeg N-105513-g91326dc942-static_linux_x86_64_202202101325, ffprobe N-105513-g91326dc942-static_linux_x86_64_202202101325, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] 0Zp6IdV9fFo: Downloading webpage
send: u'GET /watch?v=0Zp6IdV9fFo&bpctr=9999999999&has_verified=1 HTTP/1.1\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nHost: www.youtube.com\r\nCookie: CONSENT=YES+cb.20210328-17-p0.en+FX+423\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: text/html; charset=utf-8
header: X-Content-Type-Options: nosniff
header: Cache-Control: no-cache, no-store, max-age=0, must-revalidate
header: Pragma: no-cache
header: Expires: Mon, 01 Jan 1990 00:00:00 GMT
header: Date: Sun, 20 Mar 2022 16:21:23 GMT
header: Strict-Transport-Security: max-age=31536000
header: X-Frame-Options: SAMEORIGIN
header: Report-To: {"group":"ATmXEA_XZXH6CdbrmjUzyTbVgxu22C8KYH7NsxKbRt94","max_age":2592000,"endpoints":[{"url":"https://csp.withgoogle.com/csp/report-to/encsid_ATmXEA_XZXH6CdbrmjUzyTbVgxu22C8KYH7NsxKbRt94"}]}
header: Accept-CH: Sec-CH-UA-Arch, Sec-CH-UA-Bitness, Sec-CH-UA-Full-Version, Sec-CH-UA-Full-Version-List, Sec-CH-UA-Model, Sec-CH-UA-Platform, Sec-CH-UA-Platform-Version
header: Permissions-Policy: ch-ua-arch=*, ch-ua-bitness=*, ch-ua-full-version=*, ch-ua-full-version-list=*, ch-ua-model=*, ch-ua-platform=*, ch-ua-platform-version=*
header: Cross-Origin-Opener-Policy-Report-Only: same-origin; report-to="ATmXEA_XZXH6CdbrmjUzyTbVgxu22C8KYH7NsxKbRt94"
header: P3P: CP="This is not a P3P policy! See http://support.google.com/accounts/answer/151657?hl=en for more info."
header: Content-Encoding: gzip
header: Server: ESF
header: X-XSS-Protection: 0
header: Set-Cookie: GPS=1; Domain=.youtube.com; Expires=Sun, 20-Mar-2022 16:51:23 GMT; Path=/; Secure; HttpOnly
header: Set-Cookie: YSC=VhszjQLHM4g; Domain=.youtube.com; Path=/; Secure; HttpOnly; SameSite=none
header: Set-Cookie: VISITOR_INFO1_LIVE=314-rhiAhEY; Domain=.youtube.com; Expires=Fri, 16-Sep-2022 16:21:23 GMT; Path=/; Secure; HttpOnly; SameSite=none
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Connection: close
header: Transfer-Encoding: chunked
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video subtitles to: Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.en-GB.vtt
send: u'GET /api/timedtext?lang=en-GB&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cxoaf&hl=en&ip=0.0.0.0&ipbits=0&signature=C0C60FA800992912238CED5FAE4739A1824F0274.3E4E405E1B8ACD7AC2F4366435CA741D64C29DEE&caps=asr&expire=1647818483&key=yt8&v=0Zp6IdV9fFo&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&fmt=vtt&xoaf=5&name=closed+captions HTTP/1.1\r\nAccept-Language: en-us,en;q=0.5\r\nAccept-Encoding: gzip, deflate\r\nConnection: close\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nHost: www.youtube.com\r\nCookie: YSC=VhszjQLHM4g; CONSENT=YES+cb.20210328-17-p0.en+FX+423; VISITOR_INFO1_LIVE=314-rhiAhEY; GPS=1\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: text/vtt; charset=UTF-8
header: Date: Sun, 20 Mar 2022 16:21:23 GMT
header: Pragma: no-cache
header: Expires: Fri, 01 Jan 1990 00:00:00 GMT
header: Cache-Control: no-cache, must-revalidate
header: X-Content-Type-Options: nosniff
header: Content-Encoding: gzip
header: Server: video-timedtext
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Connection: close
header: Transfer-Encoding: chunked
[debug] Invoking downloader on u'https://rr1---sn-1xopouxgoxu-aige.googlevideo.com/videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=video%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=84027821&dur=604.166&lmt=1647475896180985&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAPdZinrCnIzY_o8sjhwOpSqWHPnydU0DCbUe28aReDo0AiBntK9RA2glmZSuGNOJ6RhrAcEH128bR6DGWccZhd2oPA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D'
send: u'GET /videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=video%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=84027821&dur=604.166&lmt=1647475896180985&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAPdZinrCnIzY_o8sjhwOpSqWHPnydU0DCbUe28aReDo0AiBntK9RA2glmZSuGNOJ6RhrAcEH128bR6DGWccZhd2oPA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D HTTP/1.1\r\nAccept-Encoding: identity\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\nHost: rr1---sn-1xopouxgoxu-aige.googlevideo.com\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nRange: bytes=0-10068253\r\n\r\n'
reply: 'HTTP/1.1 206 Partial Content\r\n'
header: Last-Modified: Thu, 17 Mar 2022 00:11:36 GMT
header: Content-Type: video/mp4
header: Date: Sun, 20 Mar 2022 16:21:24 GMT
header: Expires: Sun, 20 Mar 2022 16:21:24 GMT
header: Cache-Control: private, max-age=21299
header: Content-Range: bytes 0-10068253/84027821
header: Accept-Ranges: bytes
header: Content-Length: 10068254
header: Connection: keep-alive
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Vary: Origin
header: Cross-Origin-Resource-Policy: cross-origin
header: X-Restrict-Formats-Hint: None
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
[download] Destination: Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f137.mp4
[download]  12.0% of 80.14MiB at 74.67KiB/s ETA 16:07send: u'GET /videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=video%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=84027821&dur=604.166&lmt=1647475896180985&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAPdZinrCnIzY_o8sjhwOpSqWHPnydU0DCbUe28aReDo0AiBntK9RA2glmZSuGNOJ6RhrAcEH128bR6DGWccZhd2oPA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D HTTP/1.1\r\nAccept-Encoding: identity\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\nHost: rr1---sn-1xopouxgoxu-aige.googlevideo.com\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nRange: bytes=10068254-20265301\r\n\r\n'
reply: 'HTTP/1.1 206 Partial Content\r\n'
header: Last-Modified: Thu, 17 Mar 2022 00:11:36 GMT
header: Content-Type: video/mp4
header: Date: Sun, 20 Mar 2022 16:23:35 GMT
header: Expires: Sun, 20 Mar 2022 16:23:35 GMT
header: Cache-Control: private, max-age=21168
header: Content-Range: bytes 10068254-20265301/84027821
header: Accept-Ranges: bytes
header: Content-Length: 10197048
header: Connection: keep-alive
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Vary: Origin
header: Cross-Origin-Resource-Policy: cross-origin
header: X-Restrict-Formats-Hint: None
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
[download]  24.1% of 80.14MiB at 74.69KiB/s ETA 13:53send: u'GET /videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=video%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=84027821&dur=604.166&lmt=1647475896180985&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAPdZinrCnIzY_o8sjhwOpSqWHPnydU0DCbUe28aReDo0AiBntK9RA2glmZSuGNOJ6RhrAcEH128bR6DGWccZhd2oPA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D HTTP/1.1\r\nAccept-Encoding: identity\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\nHost: rr1---sn-1xopouxgoxu-aige.googlevideo.com\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nRange: bytes=20265302-30243452\r\n\r\n'
reply: 'HTTP/1.1 206 Partial Content\r\n'
header: Last-Modified: Thu, 17 Mar 2022 00:11:36 GMT
header: Content-Type: video/mp4
header: Date: Sun, 20 Mar 2022 16:25:49 GMT
header: Expires: Sun, 20 Mar 2022 16:25:49 GMT
header: Cache-Control: private, max-age=21034
header: Content-Range: bytes 20265302-30243452/84027821
header: Accept-Ranges: bytes
header: Content-Length: 9978151
header: Connection: keep-alive
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Vary: Origin
header: Cross-Origin-Resource-Policy: cross-origin
header: X-Restrict-Formats-Hint: None
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
[download]  36.0% of 80.14MiB at 74.69KiB/s ETA 11:43send: u'GET /videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=video%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=84027821&dur=604.166&lmt=1647475896180985&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAPdZinrCnIzY_o8sjhwOpSqWHPnydU0DCbUe28aReDo0AiBntK9RA2glmZSuGNOJ6RhrAcEH128bR6DGWccZhd2oPA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D HTTP/1.1\r\nAccept-Encoding: identity\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\nHost: rr1---sn-1xopouxgoxu-aige.googlevideo.com\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nRange: bytes=30243453-40259761\r\n\r\n'
reply: 'HTTP/1.1 206 Partial Content\r\n'
header: Last-Modified: Thu, 17 Mar 2022 00:11:36 GMT
header: Content-Type: video/mp4
header: Date: Sun, 20 Mar 2022 16:27:59 GMT
header: Expires: Sun, 20 Mar 2022 16:27:59 GMT
header: Cache-Control: private, max-age=20904
header: Content-Range: bytes 30243453-40259761/84027821
header: Accept-Ranges: bytes
header: Content-Length: 10016309
header: Connection: keep-alive
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Vary: Origin
header: Cross-Origin-Resource-Policy: cross-origin
header: X-Restrict-Formats-Hint: None
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
[download]  47.9% of 80.14MiB at 74.52KiB/s ETA 09:33send: u'GET /videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=video%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=84027821&dur=604.166&lmt=1647475896180985&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAPdZinrCnIzY_o8sjhwOpSqWHPnydU0DCbUe28aReDo0AiBntK9RA2glmZSuGNOJ6RhrAcEH128bR6DGWccZhd2oPA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D HTTP/1.1\r\nAccept-Encoding: identity\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\nHost: rr1---sn-1xopouxgoxu-aige.googlevideo.com\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nRange: bytes=40259762-50425373\r\n\r\n'
reply: 'HTTP/1.1 206 Partial Content\r\n'
header: Last-Modified: Thu, 17 Mar 2022 00:11:36 GMT
header: Content-Type: video/mp4
header: Date: Sun, 20 Mar 2022 16:30:11 GMT
header: Expires: Sun, 20 Mar 2022 16:30:11 GMT
header: Cache-Control: private, max-age=20772
header: Content-Range: bytes 40259762-50425373/84027821
header: Accept-Ranges: bytes
header: Content-Length: 10165612
header: Connection: keep-alive
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Vary: Origin
header: Cross-Origin-Resource-Policy: cross-origin
header: X-Restrict-Formats-Hint: None
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
[download]  60.0% of 80.14MiB at 74.68KiB/s ETA 07:19send: u'GET /videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=video%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=84027821&dur=604.166&lmt=1647475896180985&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAPdZinrCnIzY_o8sjhwOpSqWHPnydU0DCbUe28aReDo0AiBntK9RA2glmZSuGNOJ6RhrAcEH128bR6DGWccZhd2oPA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D HTTP/1.1\r\nAccept-Encoding: identity\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\nHost: rr1---sn-1xopouxgoxu-aige.googlevideo.com\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nRange: bytes=50425374-60461478\r\n\r\n'
reply: 'HTTP/1.1 206 Partial Content\r\n'
header: Last-Modified: Thu, 17 Mar 2022 00:11:36 GMT
header: Content-Type: video/mp4
header: Date: Sun, 20 Mar 2022 16:32:24 GMT
header: Expires: Sun, 20 Mar 2022 16:32:24 GMT
header: Cache-Control: private, max-age=20639
header: Content-Range: bytes 50425374-60461478/84027821
header: Accept-Ranges: bytes
header: Content-Length: 10036105
header: Connection: keep-alive
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Vary: Origin
header: Cross-Origin-Resource-Policy: cross-origin
header: X-Restrict-Formats-Hint: None
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
[download]  72.0% of 80.14MiB at 74.72KiB/s ETA 05:08send: u'GET /videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=video%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=84027821&dur=604.166&lmt=1647475896180985&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAPdZinrCnIzY_o8sjhwOpSqWHPnydU0DCbUe28aReDo0AiBntK9RA2glmZSuGNOJ6RhrAcEH128bR6DGWccZhd2oPA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D HTTP/1.1\r\nAccept-Encoding: identity\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\nHost: rr1---sn-1xopouxgoxu-aige.googlevideo.com\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nRange: bytes=60461479-70791299\r\n\r\n'
reply: 'HTTP/1.1 206 Partial Content\r\n'
header: Last-Modified: Thu, 17 Mar 2022 00:11:36 GMT
header: Content-Type: video/mp4
header: Date: Sun, 20 Mar 2022 16:34:35 GMT
header: Expires: Sun, 20 Mar 2022 16:34:35 GMT
header: Cache-Control: private, max-age=20508
header: Content-Range: bytes 60461479-70791299/84027821
header: Accept-Ranges: bytes
header: Content-Length: 10329821
header: Connection: keep-alive
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Vary: Origin
header: Cross-Origin-Resource-Policy: cross-origin
header: X-Restrict-Formats-Hint: None
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
[download]  84.2% of 80.14MiB at 74.69KiB/s ETA 02:53send: u'GET /videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=video%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=84027821&dur=604.166&lmt=1647475896180985&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAPdZinrCnIzY_o8sjhwOpSqWHPnydU0DCbUe28aReDo0AiBntK9RA2glmZSuGNOJ6RhrAcEH128bR6DGWccZhd2oPA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D HTTP/1.1\r\nAccept-Encoding: identity\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\nHost: rr1---sn-1xopouxgoxu-aige.googlevideo.com\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nRange: bytes=70791300-80805754\r\n\r\n'
reply: 'HTTP/1.1 206 Partial Content\r\n'
header: Last-Modified: Thu, 17 Mar 2022 00:11:36 GMT
header: Content-Type: video/mp4
header: Date: Sun, 20 Mar 2022 16:36:50 GMT
header: Expires: Sun, 20 Mar 2022 16:36:50 GMT
header: Cache-Control: private, max-age=20373
header: Content-Range: bytes 70791300-80805754/84027821
header: Accept-Ranges: bytes
header: Content-Length: 10014455
header: Connection: keep-alive
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Vary: Origin
header: Cross-Origin-Resource-Policy: cross-origin
header: X-Restrict-Formats-Hint: None
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
[download]  96.2% of 80.14MiB at 74.65KiB/s ETA 00:42send: u'GET /videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=137&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=video%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=84027821&dur=604.166&lmt=1647475896180985&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAPdZinrCnIzY_o8sjhwOpSqWHPnydU0DCbUe28aReDo0AiBntK9RA2glmZSuGNOJ6RhrAcEH128bR6DGWccZhd2oPA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D HTTP/1.1\r\nAccept-Encoding: identity\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\nHost: rr1---sn-1xopouxgoxu-aige.googlevideo.com\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nRange: bytes=80805755-84027820\r\n\r\n'
reply: 'HTTP/1.1 206 Partial Content\r\n'
header: Last-Modified: Thu, 17 Mar 2022 00:11:36 GMT
header: Content-Type: video/mp4
header: Date: Sun, 20 Mar 2022 16:39:01 GMT
header: Expires: Sun, 20 Mar 2022 16:39:01 GMT
header: Cache-Control: private, max-age=20242
header: Content-Range: bytes 80805755-84027820/84027821
header: Accept-Ranges: bytes
header: Content-Length: 3222066
header: Connection: keep-alive
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Vary: Origin
header: Cross-Origin-Resource-Policy: cross-origin
header: X-Restrict-Formats-Hint: None
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
[download] 100% of 80.14MiB in 18:19
[debug] Invoking downloader on u'https://rr1---sn-1xopouxgoxu-aige.googlevideo.com/videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=140&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=audio%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=9779502&dur=604.229&lmt=1647475303774576&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAJpvvCZfrjQDm0lQAAJtRa5kqLCtJqDDSO_kKWY4UB07AiByuailYoFyFSnl1jTj44QV5YPu8FOIVIFveVWOZqr5Tg%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D'
send: u'GET /videoplayback?expire=1647814883&ei=g1Q3YuKNG5H5WoyQtMgC&ip=2a02%3A8011%3A700e%3A640%3Affff%3A0%3A0%3Af9f6&id=o-AJDblPKimPhROw-B0BR0jExySXYCD_t9l5IEKlx9Ldzk&itag=140&source=youtube&requiressl=yes&mh=_C&mm=31%2C29&mn=sn-1xopouxgoxu-aige%2Csn-aigzrn7l&ms=au%2Crdu&mv=m&mvi=1&pcm2cms=yes&pl=32&initcwndbps=1376250&spc=4ocVC2IkliV6w4-N54jgRCyCzkSo&vprv=1&mime=audio%2Fmp4&ns=98d4ysmZ6PaVHRe1zlSGF0cG&gir=yes&clen=9779502&dur=604.229&lmt=1647475303774576&mt=1647793015&fvip=1&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=SNsbvH6YKHZIKdx2&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig=AOq0QJ8wRQIhAJpvvCZfrjQDm0lQAAJtRa5kqLCtJqDDSO_kKWY4UB07AiByuailYoFyFSnl1jTj44QV5YPu8FOIVIFveVWOZqr5Tg%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpcm2cms%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRQIgD1A6H_U1vta2GKEV7U2EVFycmZ2Ky5jgWt3bW8o6D50CIQCIKfAF9VtCRSIvzbmip6Wb4nJtchBxSbsfFfayWckbFQ%3D%3D HTTP/1.1\r\nAccept-Encoding: identity\r\nAccept-Language: en-us,en;q=0.5\r\nConnection: close\r\nHost: rr1---sn-1xopouxgoxu-aige.googlevideo.com\r\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3714.2 Safari/537.36\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nRange: bytes=0-10198058\r\n\r\n'
reply: 'HTTP/1.1 206 Partial Content\r\n'
header: Last-Modified: Thu, 17 Mar 2022 00:01:43 GMT
header: Content-Type: audio/mp4
header: Date: Sun, 20 Mar 2022 16:39:43 GMT
header: Expires: Sun, 20 Mar 2022 16:39:43 GMT
header: Cache-Control: private, max-age=20200
header: Content-Range: bytes 0-9779501/9779502
header: Accept-Ranges: bytes
header: Content-Length: 9779502
header: Connection: keep-alive
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
header: Vary: Origin
header: Cross-Origin-Resource-Policy: cross-origin
header: X-Content-Type-Options: nosniff
header: Server: gvs 1.0
[download] Destination: Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f140.m4a
[download] 100% of 9.33MiB in 02:07
[ffmpeg] Merging formats into "Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.mp4"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f137.mp4' -i 'file:Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f140.m4a' -c copy -map '0:v:0' -map '1:a:0' 'file:Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.temp.mp4'
[ffmpeg] Embedding subtitles in 'Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.mp4'
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.mp4' -i 'file:Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.en-GB.vtt' -map 0 -c copy -map '-0:s' -map '-0:d' '-c:s' mov_text -map '1:0' '-metadata:s:s:0' 'language=eng' 'file:Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.temp.mp4'

Description

There are videos which include "closed captions" and translation captions with the same language - such as that above, as seen in this image.

image

There does not seem to be a command line switch to download the translation instead of the "closed captions".

As seen in the debug logs, the URLs to download, in this instance, the timedtext vtt subtitles include the parameter and value name=closed+captions.

When I curl the URL of the VTT caption which yutube-dl has shown me I can see the "closed caption"s. When I curl the same URL but with the name=closed+captions parameter and value removed I see the translation caption which I want.

The extension to this thought is that --list-subs must list not only the language but also the name of each subtitle track, and allow multiple track names per language. This might also alter the way --write-auto-sub works.

The closed PRs https://github.com/yt-dlp/yt-dlp/pull/310 and https://github.com/ytdl-org/youtube-dl/pull/26112 appear to be attempts to fix this issue.

To work around this issue I must look at the URL that youtube-dl is downloading for the subtitle file, edit the URL, curl the URL to a file, merge the subtitles with the video youtube-dl created, delete the files youtube-dl created, and rename my merged version.

$ curl -v -o en-GB.vtt "https://www.youtube.com/api/timedtext?lang=en-GB&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cxoaf&hl=en&ip=0.0.0.0&ipbits=0&signature=C0C60FA800992912238CED5FAE4739A1824F0274.3E4E405E1B8ACD7AC2F4366435CA741D64C29DEE&caps=asr&expire=1647818483&key=yt8&v=0Zp6IdV9fFo&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&fmt=vtt&xoaf=5"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 2a00:1450:4009:816::200e:443...
* TCP_NODELAY set
* Connected to www.youtube.com (2a00:1450:4009:816::200e) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* TLSv1.3 (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
{ [15 bytes data]
* TLSv1.3 (IN), TLS handshake, Certificate (11):
{ [6385 bytes data]
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
{ [78 bytes data]
* TLSv1.3 (IN), TLS handshake, Finished (20):
{ [52 bytes data]
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
} [1 bytes data]
* TLSv1.3 (OUT), TLS handshake, Finished (20):
} [52 bytes data]
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=*.google.com
*  start date: Feb 28 02:21:45 2022 GMT
*  expire date: May 23 02:21:44 2022 GMT
*  subjectAltName: host "www.youtube.com" matched cert's "*.youtube.com"
*  issuer: C=US; O=Google Trust Services LLC; CN=GTS CA 1C3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
} [5 bytes data]
* Using Stream ID: 1 (easy handle 0x55d8d8af3d50)
} [5 bytes data]
> GET /api/timedtext?lang=en-GB&sparams=ip%2Cipbits%2Cexpire%2Cv%2Casr_langs%2Ccaps%2Cxoaf&hl=en&ip=0.0.0.0&ipbits=0&signature=C0C60FA800992912238CED5FAE4739A1824F0274.3E4E405E1B8ACD7AC2F4366435CA741D64C29DEE&caps=asr&expire=1647818483&key=yt8&v=0Zp6IdV9fFo&asr_langs=de%2Cen%2Ces%2Cfr%2Cid%2Cit%2Cja%2Cko%2Cnl%2Cpt%2Cru%2Ctr%2Cvi&fmt=vtt&xoaf=5 HTTP/2
> Host: www.youtube.com
> user-agent: curl/7.68.0
> accept: */*
> 
{ [5 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [279 bytes data]
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
{ [279 bytes data]
* old SSL session ID is stale, removing
{ [5 bytes data]
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
} [5 bytes data]
< HTTP/2 200 
< content-type: text/vtt; charset=UTF-8
< date: Sun, 20 Mar 2022 16:54:05 GMT
< pragma: no-cache
< expires: Fri, 01 Jan 1990 00:00:00 GMT
< cache-control: no-cache, must-revalidate
< x-content-type-options: nosniff
< server: video-timedtext
< x-xss-protection: 0
< x-frame-options: SAMEORIGIN
< alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
< accept-ranges: none
< vary: Accept-Encoding
< 
{ [5 bytes data]
100  2156    0  2156    0     0  24781      0 --:--:-- --:--:-- --:--:-- 25069
* Connection #0 to host www.youtube.com left intact

$ ffmpeg -loglevel info -i 'Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f137.mp4' -i 'en-GB.vtt' -map 0 -c copy -map '-0:s' -map '-0:d' '-c:s' mov_text -map '1:0' '-metadata:s:s:0' 'language=eng' 'Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f137-temp.mp4'
ffmpeg version N-105513-g91326dc942-static_linux_x86_64_202202101325 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --extra-version=static_linux_x86_64_202202101325 --extra-cflags='--static -static -static-libstdc++ -static-libgcc ' --extra-libs='-static -lpthread -lm' --pkg-config-flags=--static --cross-prefix= --arch=x86_64 --target-os=linux --prefix=/opt/ffbuild --enable-gpl --enable-version3 --enable-nonfree --disable-ffplay --disable-dxva2 --enable-libzimg --enable-libxml2 --enable-openssl --enable-libfreetype --enable-libsrt --enable-librist --enable-libmp3lame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libopus --enable-libxvid --enable-libvpx --enable-libfdk-aac --enable-libopenjpeg --enable-libaom --enable-libx264 --enable-libx265
  libavutil      57. 21.100 / 57. 21.100
  libavcodec     59. 20.100 / 59. 20.100
  libavformat    59. 17.101 / 59. 17.101
  libavdevice    59.  5.100 / 59.  5.100
  libavfilter     8. 26.101 /  8. 26.101
  libswscale      6.  5.100 /  6.  5.100
  libswresample   4.  4.100 /  4.  4.100
  libpostproc    56.  4.100 / 56.  4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f137.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    creation_time   : 2022-03-17T00:05:19.000000Z
  Duration: 00:10:04.17, start: 0.000000, bitrate: 1112 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 1 kb/s, 24 fps, 24 tbr, 12288 tbn (default)
    Metadata:
      creation_time   : 2022-03-17T00:05:19.000000Z
      handler_name    : ISO Media file produced by Google Inc.
      vendor_id       : [0][0][0][0]
Input #1, webvtt, from 'en-GB.vtt':
  Duration: N/A, bitrate: N/A
  Stream #1:0: Subtitle: webvtt
Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified for stream 1, only the last option '-c:s mov_text' will be used.
Output #0, mp4, to 'Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f137-temp.mp4':
  Metadata:
    major_brand     : dash
    minor_version   : 0
    compatible_brands: iso6avc1mp41
    encoder         : Lavf59.17.101
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 1 kb/s, 24 fps, 24 tbr, 12288 tbn (default)
    Metadata:
      creation_time   : 2022-03-17T00:05:19.000000Z
      handler_name    : ISO Media file produced by Google Inc.
      vendor_id       : [0][0][0][0]
  Stream #0:1(eng): Subtitle: mov_text (tx3g / 0x67337874)
    Metadata:
      encoder         : Lavc59.20.100 mov_text
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (webvtt (native) -> mov_text (native))
Press [q] to stop, [?] for help
frame=14500 fps=0.0 q=-1.0 Lsize=   82022kB time=00:10:04.08 bitrate=1112.3kbits/s speed=3.6e+03x    
video:81876kB audio:0kB subtitle:1kB other streams:0kB global headers:0kB muxing overhead: 0.176735%

$ rm 'Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f137.mp4' 'Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.mp4' 'Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f140.m4a' 'Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.en-GB.vtt' 'en-GB.vtt' 

$ mv 'Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f137-temp.mp4' 'Five Films for Freedom 2022 - Sunday _ directed by Arun Fulara-0Zp6IdV9fFo.f137.mp4'
dirkf commented 2 years ago

Doesn't --write-auto-sub do this? Or you need to explain further.

Also see https://github.com/ytdl-org/youtube-dl/issues/30667#issuecomment-1048703724.

pukkandan commented 2 years ago

The "english" and "english (cc)" subs have same language code. So either one may be downloaded depending on the order youtube-dl processes them in, without the user being able to select b/w them

❯ youtube-dl --list-subs 0Zp6IdV9fFo
[youtube] 0Zp6IdV9fFo: Downloading webpage
Available subtitles for 0Zp6IdV9fFo:
Language formats
yue-HK   vtt, ttml, srv3, srv2, srv1
th       vtt, ttml, srv3, srv2, srv1
my       vtt, ttml, srv3, srv2, srv1
zh-TW    vtt, ttml, srv3, srv2, srv1
ar       vtt, ttml, srv3, srv2, srv1
en-GB    vtt, ttml, srv3, srv2, srv1
fil      vtt, ttml, srv3, srv2, srv1
zh-Hans  vtt, ttml, srv3, srv2, srv1
tr       vtt, ttml, srv3, srv2, srv1
ko       vtt, ttml, srv3, srv2, srv1
vi       vtt, ttml, srv3, srv2, srv1
ru       vtt, ttml, srv3, srv2, srv1
fr       vtt, ttml, srv3, srv2, srv1
hi       vtt, ttml, srv3, srv2, srv1
pt-BR    vtt, ttml, srv3, srv2, srv1
ro       vtt, ttml, srv3, srv2, srv1
ja       vtt, ttml, srv3, srv2, srv1
uk       vtt, ttml, srv3, srv2, srv1
es-419   vtt, ttml, srv3, srv2, srv1
hr       vtt, ttml, srv3, srv2, srv1
id       vtt, ttml, srv3, srv2, srv1

❯ yt-dlp --list-subs 0Zp6IdV9fFo
[youtube] 0Zp6IdV9fFo: Downloading webpage
[youtube] 0Zp6IdV9fFo: Downloading android player API JSON
[info] Available automatic captions for 0Zp6IdV9fFo:
Language                    Name                                                                  Formats
<long list of translated subtitles>
...
[info] Available subtitles for 0Zp6IdV9fFo:
Language            Name                                       Formats
ar                  Arabic                                     vtt, ttml, srv3, srv2, srv1, json3
ar-PwUA2SMt9rM      Arabic - closed captions                   vtt, ttml, srv3, srv2, srv1, json3
my                  Burmese                                    vtt, ttml, srv3, srv2, srv1, json3
my-PwUA2SMt9rM      Burmese - closed captions                  vtt, ttml, srv3, srv2, srv1, json3
yue-HK              Cantonese (Hong Kong)                      vtt, ttml, srv3, srv2, srv1, json3
yue-HK-PwUA2SMt9rM  Cantonese (Hong Kong) - closed captions    vtt, ttml, srv3, srv2, srv1, json3
zh-Hans             Chinese (Simplified)                       vtt, ttml, srv3, srv2, srv1, json3
zh-Hans-PwUA2SMt9rM Chinese (Simplified) - closed captions     vtt, ttml, srv3, srv2, srv1, json3
zh-TW               Chinese (Taiwan)                           vtt, ttml, srv3, srv2, srv1, json3
zh-TW-PwUA2SMt9rM   Chinese (Taiwan) - closed captions         vtt, ttml, srv3, srv2, srv1, json3
hr                  Croatian                                   vtt, ttml, srv3, srv2, srv1, json3
hr-PwUA2SMt9rM      Croatian - closed captions                 vtt, ttml, srv3, srv2, srv1, json3
en-GB               English (United Kingdom)                   vtt, ttml, srv3, srv2, srv1, json3
en-GB-PwUA2SMt9rM   English (United Kingdom) - closed captions vtt, ttml, srv3, srv2, srv1, json3
fil                 Filipino                                   vtt, ttml, srv3, srv2, srv1, json3
fil-PwUA2SMt9rM     Filipino - closed captions                 vtt, ttml, srv3, srv2, srv1, json3
fr                  French                                     vtt, ttml, srv3, srv2, srv1, json3
fr-PwUA2SMt9rM      French - closed captions                   vtt, ttml, srv3, srv2, srv1, json3
hi                  Hindi                                      vtt, ttml, srv3, srv2, srv1, json3
hi-PwUA2SMt9rM      Hindi - closed captions                    vtt, ttml, srv3, srv2, srv1, json3
id                  Indonesian                                 vtt, ttml, srv3, srv2, srv1, json3
id-PwUA2SMt9rM      Indonesian - closed captions               vtt, ttml, srv3, srv2, srv1, json3
ja                  Japanese                                   vtt, ttml, srv3, srv2, srv1, json3
ja-PwUA2SMt9rM      Japanese - closed captions                 vtt, ttml, srv3, srv2, srv1, json3
ko                  Korean                                     vtt, ttml, srv3, srv2, srv1, json3
ko-PwUA2SMt9rM      Korean - closed captions                   vtt, ttml, srv3, srv2, srv1, json3
pt-BR               Portuguese (Brazil)                        vtt, ttml, srv3, srv2, srv1, json3
pt-BR-PwUA2SMt9rM   Portuguese (Brazil) - closed captions      vtt, ttml, srv3, srv2, srv1, json3
ro                  Romanian                                   vtt, ttml, srv3, srv2, srv1, json3
ro-PwUA2SMt9rM      Romanian - closed captions                 vtt, ttml, srv3, srv2, srv1, json3
ru                  Russian                                    vtt, ttml, srv3, srv2, srv1, json3
ru-PwUA2SMt9rM      Russian - closed captions                  vtt, ttml, srv3, srv2, srv1, json3
es-419              Spanish (Latin America)                    vtt, ttml, srv3, srv2, srv1, json3
es-419-PwUA2SMt9rM  Spanish (Latin America) - closed captions  vtt, ttml, srv3, srv2, srv1, json3
th                  Thai                                       vtt, ttml, srv3, srv2, srv1, json3
th-PwUA2SMt9rM      Thai - closed captions                     vtt, ttml, srv3, srv2, srv1, json3
tr                  Turkish                                    vtt, ttml, srv3, srv2, srv1, json3
uk                  Ukrainian                                  vtt, ttml, srv3, srv2, srv1, json3
uk-PwUA2SMt9rM      Ukrainian - closed captions                vtt, ttml, srv3, srv2, srv1, json3
vi                  Vietnamese                                 vtt, ttml, srv3, srv2, srv1, json3
vi-PwUA2SMt9rM      Vietnamese - closed captions               vtt, ttml, srv3, srv2, srv1, json3
dirkf commented 2 years ago

OK, and --all-subs doesn't help in yt-dl because it just gets one sub for each language, IIRC.

-PwUA2SMt9rM ? Wouldn't -CC be better?

pukkandan commented 2 years ago

that's what youtube gives in languageCode field. This doesn't just happen with cc. I have seen videos with "descriptive subtitles". There could be other cases as well. Mapping them all to human readable ids could be tricky

dirkf commented 2 years ago

If -CC- was interpolated (eg zh-TW-CC-PwUA2SMt9rM) for closed captions a longest match would be able to select that over the default, or a regex match could select between them.