Closed diamondspark closed 6 years ago
Hi @diamondspark ,
Did you install all of the dependencies including wget, ffmpeg and youtube-dl?
Yes. I installed all the dependencies. I am using MacOS.
I just retested the code and it is functional in its current state. What version of ffmpeg and youtube-dl do you have installed? You can check with youtube-dl --version
and ffmpeg -v
Hey @mbuckler and @diamondspark did either of you resolve this? I have the same problem. I have youtube-dl version 2018.01.14 and ffmpeg version 3.4.1. All the code runs without any errors which is perplexing. Going to try hunting for problems but if you have any ideas please let me know!
What version of Python are you using? I think it didn't work with Python2.7 n worked with Python3
On Jan 16, 2018 12:06, "Dan Birman" notifications@github.com wrote:
Hey @mbuckler https://github.com/mbuckler and @diamondspark https://github.com/diamondspark did either of you resolve this? I have the same problem. I have youtube-dl version 2018.01.14 and ffmpeg version 3.4.1. All the code runs without any errors which is perplexing. Going to try hunting for problems but if you have any ideas please let me know!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mbuckler/youtube-bb/issues/12#issuecomment-358032160, or mute the thread https://github.com/notifications/unsubscribe-auth/ANdlu7COOMMxKEPtmc0o7svQwU0j_h-Eks5tLNcSgaJpZM4Pwb3P .
I'm using python 3 (3.6.4). Will try a new venv and see if there's just a dependency problem somewhere.
Maybe it's helpful to mention that the directory structure doesn't generate correctly? The youtube-bb and yt_bb_classification_train levels get built, but nothing below that.
Okay sorted this out, I was getting a certificate area that was being hidden by the parallel calls:
ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)> (caused by URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777)'),))
For anybody who runs into this in the future:
Adding the flag --no-check-certificate (--no-check-certificate, \
in youtube_bb.py, line 146) solved the problem. I won't put a pull request since I don't know how the certificates work and whether they are actually important.
Thanks @mbuckler for putting this tool together!
In the time that it took for me to get back to my computer the problem has been solved! I'll close this issue for now and if this comes up again we can apply @dbirman's fix. Thank you both for posting your solutions.
@dbirman Hi, I try to add the flag --no-check-certificate in youtube_bb.py. But I still can not download videos. How can you find the error?
Hi @FzuLJ! It seems like this is a somewhat common problem, so I just pushed a new commit which adds a "debug" flag.
You can find this flag on line 28 of youtube_bb.py, and if you set it to True then ffmpeg errors will be displayed rather than hidden. That should help you debug your issue. The default of hiding ffmpeg errors is done to keep the download interface clean.
Thank you very much, @mbuckler
Hi @mbuckler, The download.py file runs fine for me. It downloads the csv, creates directories to download videos, says on the command line that Downloaded video: 193733 / 193733. But no video shows up in the specified directory that the script created. Can you tell me what am I missing? Thank You