You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The download fails with the basic syntax when a video's title is longer than the max path length allowed on the operating system (in this case Windows 7), and/or contains invalid characters (in the example below I'm not sure which of those two possible causes is the actual culprit as the video's title has both characteristics), with a misleading error message saying “No such file or directory”. The download starts normally if a shorter / valid file name is specified for the output.
So yt-dlp should shorten the automatically generated output file name to a length below the limit of the current system (and replace any invalid characters with placeholder characters), or prompt the user with a (non misleading) warning and a request to manually input a valid output file name.
Verbose log
H:\>yt-dlp -Uv https://twitter.com/i/status/1473417773372030981
[debug] Command-line config: ['-Uv', 'https://twitter.com/i/status/1473417773372030981']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8 (No ANSI), err utf-8 (No ANSI), pref cp1252
[debug] yt-dlp version 2021.12.01 [91f071a] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 4.2.3, ffprobe git-2019-12-26-b0d0d7e
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2021.12.01, Current version: 2021.12.01
yt-dlp is up to date (2021.12.01)
[debug] [twitter] Extracting URL: https://twitter.com/i/status/1473417773372030981
[twitter] 1473417773372030981: Downloading guest token
[twitter] 1473417773372030981: Downloading JSON metadata
[twitter] 1473417773372030981: Downloading m3u8 information
[debug] Sort order given by extractor: res, br, size, proto
[debug] Formats sorted by: hasvid, ie_pref, res, tbr, vbr, abr, filesize, fs_approx, proto, lang, quality, fps, hdr:12(7), vcodec:vp9.2(10), acodec, asr, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 1473417773372030981: Downloading 1 format(s): http-2176
[debug] Invoking downloader on "https://video.twimg.com/amplify_video/1473414109798576137/vid/1280x720/I7DLU-AQFjaR6gJn.mp4?tag=14"
ERROR: unable to open for writing: [Errno 2] No such file or directory: 'Alexandria Ocasio-Cortez - We're back-back-back again! Despite the challenges, we've accomplished so much together over the past year. Thank you to EVERYONE who zoomed, taught, organized, and built community with us. Without further ado - 21 wins for 2021. Want to join for '22 ?? [1473417773372030981].mp4.part'Traceback (most recent call last): File "yt_dlp\downloader\http.py", line 266, in download File "yt_dlp\utils.py", line 2094, in sanitize_openFileNotFoundError: [Errno 2] No such file or directory: 'Alexandria Ocasio-Cortez - We're back-back-back again! Despite the challenges, we've accomplished so much together over the past year. Thank you to EVERYONE who zoomed, taught, organized, and built community with us. Without further ado - 21 wins for 2021. Want to join for'22 ?? [1473417773372030981].mp4.part'
H:\>yt-dlp -Uv https://twitter.com/i/status/1473417773372030981 -o "Alexandria Ocasio-Cortez - We're back-back-back again!.mp4"
[debug] Command-line config: ['-Uv', 'https://twitter.com/i/status/1473417773372030981', '-o', "Alexandria Ocasio-Cortez - We're back-back-back again!.mp4"]
[debug] Encodings: locale cp1252, fs utf-8, out utf-8 (No ANSI), err utf-8 (No ANSI), pref cp1252
[debug] yt-dlp version 2021.12.01 [91f071a] (win_exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 4.2.3, ffprobe git-2019-12-26-b0d0d7e
[debug] Optional libraries: Cryptodome, mutagen, sqlite, websockets
[debug] Proxy map: {}
Latest version: 2021.12.01, Current version: 2021.12.01
yt-dlp is up to date (2021.12.01)
[debug] [twitter] Extracting URL: https://twitter.com/i/status/1473417773372030981
[twitter] 1473417773372030981: Downloading guest token
[twitter] 1473417773372030981: Downloading JSON metadata
[twitter] 1473417773372030981: Downloading m3u8 information
[debug] Sort order given by extractor: res, br, size, proto
[debug] Formats sorted by: hasvid, ie_pref, res, tbr, vbr, abr, filesize, fs_approx, proto, lang, quality, fps, hdr:12(7), vcodec:vp9.2(10), acodec, asr, vext, aext, hasaud, source, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] 1473417773372030981: Downloading 1 format(s): http-2176
[debug] Invoking downloader on "https://video.twimg.com/amplify_video/1473414109798576137/vid/1280x720/I7DLU-AQFjaR6gJn.mp4?tag=14"
[download] Destination: Alexandria Ocasio-Cortez - We're back-back-back again!.mp4[download] 15.3% of 27.67MiB at 1.10MiB/s ETA 00:21
The text was updated successfully, but these errors were encountered:
Checklist
Description
The download fails with the basic syntax when a video's title is longer than the max path length allowed on the operating system (in this case Windows 7), and/or contains invalid characters (in the example below I'm not sure which of those two possible causes is the actual culprit as the video's title has both characteristics), with a misleading error message saying “No such file or directory”. The download starts normally if a shorter / valid file name is specified for the output.
So yt-dlp should shorten the automatically generated output file name to a length below the limit of the current system (and replace any invalid characters with placeholder characters), or prompt the user with a (non misleading) warning and a request to manually input a valid output file name.
Verbose log
The text was updated successfully, but these errors were encountered: