Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cosmetic Spurrious UnavailableVideoError on stdout pipe output after successful download? #10809
Comments
OK, this isn't fair. It does seem to repro easily enough, and the complicated pipeline is not necessary. A simple output direction is sufficient. Here's the failure on two consecutive runs, first
And the reproduction case:
And both are successful downloads with the same result:
|
|
Here's a more manageable test case, with a smaller (44MB) file and modification to print the traceback before the exception gets handled to understand the problem:
|
|
Fixed by pull request #10876 |
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
This is a cosmetic problem I was not able to reproduce, and I don't really understand.
Under OS X, I ran:
youtube-dl -v -o - 'http://www.cbs.com/shows/the-late-show-with-stephen-colbert/video/Kj139uP5fQfkmaoQ4tMW2BSq7vPfhmnJ/the-late-show-9-29-2016-morgan-freeman-judith-light-jimmy-eat-world-/' | tee 'The Late Show - 9_29_2016 (Morgan Freeman, Judith Light, Jimmy Eat World)-Kj139uP5fQfkmaoQ4tMW2BSq7vPfhmnJ.mp4' | /Applications/VLC.app/Contents/MacOS/VLC -and after playing the video in realtime (and, I guess, unable to go any faster than realtime because of buffering issues), it threw this traceback:
ERROR: unable to download video Traceback (most recent call last): File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1791, in download url, force_generic_extractor=self.params.get('force_generic_extractor', False)) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 705, in extract_info return self.process_ie_result(ie_result, download, extra_info) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 751, in process_ie_result return self.process_video_result(ie_result, download=download) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1435, in process_video_result self.process_info(new_info) File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1704, in process_info raise UnavailableVideoError(err) UnavailableVideoError: [Errno 2] No such file or directory: '-'This is super-weird since the command-line parsing at the beginning seems to indicate it was parsed properly, so I assume something about the long ffmpeg run or the pipes ended up confusing it. Though I don't know why that should be.
In any event, the video played fine.
I attempted to reproduce this with some other (shorter) CBS downloader videos and did not succeed.
Since the original test played in realtime and took 40 minutes to run, it's a little inconvenient for me to repeatedly test this.
My conclusion is it's not reproducible, but I'm not entirely sure.
Anyhow, this would certainly be low-priority and cosmetic-only, but perhaps it rings a bell for someone else. I don't see any related bug reports in the issue tracker, so it seemed at least worth filing something.
Thanks.