Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube-dl FileNotFoundError [Errno 2] #15431

Closed
nnpcYvIVl opened this issue Jan 26, 2018 · 0 comments
Closed

youtube-dl FileNotFoundError [Errno 2] #15431

nnpcYvIVl opened this issue Jan 26, 2018 · 0 comments
Labels

Comments

@nnpcYvIVl
Copy link

@nnpcYvIVl nnpcYvIVl commented Jan 26, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

  • I've verified and I assure that I'm running youtube-dl 2018.01.21
  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
Z:\Music Temp>"C:\Program Files (x86)\Tools\Video\youtube-dl.exe" -f bestaudio[ext=m4a] -o "%(playlist)s/%(playlist_index)s. %(title)s.%(ext)s" "https://www.youtube.com/watch?v=_pFD8l22mDs&index=1&list=PLTtRKW4gzI6nAc2Xaa7B5jLq7fAxElnXS" --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-f', 'bestaudio[ext=m4a]', '-o', '%(playlist)s/%(playlist_index)s. %(title)s.%(ext)s', 'https://www.youtube.com/watch?v=_pFD8l22mDs&index=1&list=PLTtRKW4gzI6nAc2Xaa7B5jLq7fAxElnXS', '--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2018.01.21
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.16299
[debug] exe versions: ffmpeg 3.3.4, ffprobe 3.3.4
[debug] Proxy map: {}
[youtube:playlist] Downloading playlist PLTtRKW4gzI6nAc2Xaa7B5jLq7fAxElnXS - add --no-playlist to just download video _pFD8l22mDs
[youtube:playlist] PLTtRKW4gzI6nAc2Xaa7B5jLq7fAxElnXS: Downloading webpage
[download] Downloading playlist: Trolls · Original Motion Picture Soundtrack, Justin Timberlake, Anna Kendrick, Gwen Stefani, James Corden, Zooey Deschanel & Various Arttists
[youtube:playlist] playlist Trolls · Original Motion Picture Soundtrack, Justin Timberlake, Anna Kendrick, Gwen Stefani, James Corden, Zooey Deschanel & Various Arttists: Downloading 13 videos
[download] Downloading video 1 of 13
[youtube] _pFD8l22mDs: Downloading webpage
[youtube] _pFD8l22mDs: Downloading video info webpage
[youtube] _pFD8l22mDs: Extracting video information
[youtube] {22} signature length 43.40, html5 player vflX4ueE4
[youtube] {43} signature length 43.40, html5 player vflX4ueE4
[youtube] {18} signature length 43.40, html5 player vflX4ueE4
[youtube] {36} signature length 43.40, html5 player vflX4ueE4
[youtube] {17} signature length 43.40, html5 player vflX4ueE4
[youtube] {137} signature length 43.40, html5 player vflX4ueE4
[youtube] {136} signature length 43.40, html5 player vflX4ueE4
[youtube] {135} signature length 43.40, html5 player vflX4ueE4
[youtube] {134} signature length 43.38, html5 player vflX4ueE4
[youtube] _pFD8l22mDs: Downloading player https://www.youtube.com/yts/jsbin/player-vflX4ueE4/en_US/base.js
[youtube] {133} signature length 43.40, html5 player vflX4ueE4
[youtube] {160} signature length 43.40, html5 player vflX4ueE4
[youtube] {140} signature length 43.40, html5 player vflX4ueE4
[debug] Invoking downloader on 'https://r3---sn-q4flrnee.googlevideo.com/videoplayback?itag=140&ei=KatrWpigAsTkuwXk_LCwCA&requiressl=yes&keepalive=yes&initcwndbps=1030000&ipbits=0&pl=20&key=yt6&mm=31&lmt=1479973108293418&expire=1517027209&pcm2=no&mt=1517005493&mv=m&ms=au&clen=2835151&source=youtube&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpcm2%2Cpl%2Crequiressl%2Csource%2Cexpire&ip=66.195.107.210&mime=audio%2Fmp4&gir=yes&mn=sn-q4flrnee&id=o-ABjvjxkLnBxa1-LLL6oH_wM6Q9yhuhjYXMxOeCAXPGgw&dur=178.468&signature=DA8235359C091AC280903B8C3E9CC907FA04718B.DA5D5B2002A0D3621F194056AF15B9F33AAD095A&ratebypass=yes'
[download] Trolls · Original Motion Picture Soundtrack, Justin Timberlake, Anna Kendrick, Gwen Stefani, James Corden, Zooey Deschanel & Various Arttists\01. Trolls · 01 Hair Up · Justin Timberlake · Gwen Stefani · Ron Funches · Original Soundtrack.m4a has already been downloaded
[download] 100% of 2.70MiB
[ffmpeg] Correcting container in "Trolls · Original Motion Picture Soundtrack, Justin Timberlake, Anna Kendrick, Gwen Stefani, James Corden, Zooey Deschanel & Various Arttists\01. Trolls · 01 Hair Up · Justin Timberlake · Gwen Stefani · Ron Funches · Original Soundtrack.m4a"
[debug] ffmpeg command line: ffmpeg -y -i "file:Trolls · Original Motion Picture Soundtrack, Justin Timberlake, Anna Kendrick, Gwen Stefani, James Corden, Zooey Deschanel & Various Arttists\01. Trolls · 01 Hair Up · Justin Timberlake · Gwen Stefani · Ron Funches · Original Soundtrack.m4a" -c copy -f mp4 "file:Trolls · Original Motion Picture Soundtrack, Justin Timberlake, Anna Kendrick, Gwen Stefani, James Corden, Zooey Deschanel & Various Arttists\01. Trolls · 01 Hair Up · Justin Timberlake · Gwen Stefani · Ron Funches · Original Soundtrack.temp.m4a"
[download] Downloading video 2 of 13
[youtube] ji4Ek0Jz4iQ: Downloading webpage
[youtube] ji4Ek0Jz4iQ: Downloading video info webpage
[youtube] ji4Ek0Jz4iQ: Extracting video information
[youtube] {22} signature length 43.40, html5 player vflX4ueE4
[youtube] {43} signature length 43.40, html5 player vflX4ueE4
[youtube] {18} signature length 43.40, html5 player vflX4ueE4
[youtube] {36} signature length 43.40, html5 player vflX4ueE4
[youtube] {17} signature length 43.40, html5 player vflX4ueE4
[youtube] ji4Ek0Jz4iQ: Downloading MPD manifest
[youtube] ji4Ek0Jz4iQ: Downloading MPD manifest
[debug] Invoking downloader on 'https://r4---sn-q4flrn7r.googlevideo.com/videoplayback/id/8e2e04934273e224/itag/140/source/youtube/requiressl/yes/mm/31/pl/20/ei/K6trWqa7Boi_uAWY8o6gDA/mn/sn-q4flrn7r/initcwndbps/1045000/mv/m/ms/au/ratebypass/yes/mime/audio%2Fmp4/otfp/1/gir/yes/clen/3752190/lmt/1478312350893382/dur/236.030/mt/1517005493/ip/66.195.107.210/ipbits/0/expire/1517027211/sparams/ip,ipbits,expire,id,itag,source,requiressl,mm,pl,ei,mn,initcwndbps,mv,ms,ratebypass,mime,otfp,gir,clen,lmt,dur/signature/21EBAFB6BB439CDFD31DCF03687D822EE95DD450.72A69A1443C30580B80DB2149775435F96F80C62/key/dg_yt0/'
[dashsegments] Total fragments: 49
[download] Destination: Trolls · Original Motion Picture Soundtrack, Justin Timberlake, Anna Kendrick, Gwen Stefani, James Corden, Zooey Deschanel & Various Arttists\02. Trolls · 02 CAN'T STOP THE FEELING! · Justin Timberlake · Original Song · Original Soundtrack.m4a
ERROR: unable to download video data: [Errno 2] No such file or directory: "Trolls · Original Motion Picture Soundtrack, Justin Timberlake, Anna Kendrick, Gwen Stefani, James Corden, Zooey Deschanel & Various Arttists\\02. Trolls · 02 CAN'T STOP THE FEELING! · Justin Timberlake · Original Song · Original Soundtrack.m4a.ytdl"
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\YoutubeDL.py", line 1895, in process_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\YoutubeDL.py", line 1834, in dl
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\downloader\common.py", line 361, in download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\downloader\dash.py", line 25, in real_download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\downloader\fragment.py", line 69, in _prepare_and_start_frag_download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\downloader\fragment.py", line 168, in _prepare_frag_download
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\downloader\fragment.py", line 82, in _write_ytdl_file
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpm93u0ksi\build\youtube_dl\utils.py", line 457, in sanitize_open
FileNotFoundError: [Errno 2] No such file or directory: "Trolls · Original Motion Picture Soundtrack, Justin Timberlake, Anna Kendrick, Gwen Stefani, James Corden, Zooey Deschanel & Various Arttists\\02. Trolls · 02 CAN'T STOP THE FEELING! · Justin Timberlake · Original Song · Original Soundtrack.m4a.ytdl"

Description of your issue, suggested solution and other information

youtube-dl fails to download this playlist. The the issue may have something to do with the file or folder name or length. If that is the case then shouldn't these filenames be sanitized to guarantee that they are created?

The download succeeds with the --restrict-filenames option. I am hoping that this crash can be avoided even without using that option.

@dstftw dstftw closed this Jan 27, 2018
@dstftw dstftw added the duplicate label Jan 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.