LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   youtube-dl - unable to download video (format may not be available) (https://www.linuxquestions.org/questions/linux-software-2/youtube-dl-unable-to-download-video-format-may-not-be-available-852730/)

Aquarius_Girl 12-27-2010 10:40 PM

youtube-dl - unable to download video (format may not be available)
 
I downloaded youtube-dl tarball from this link.
What's wrong here?
Code:

anisha@linux-uitj:~/tarBalls> tar -xf youtube-dl-2010.08.04.tar.bz2
anisha@linux-uitj:~/tarBalls> cd youtube-dl/
anisha@linux-uitj:~/tarBalls/youtube-dl> ls
LATEST_VERSION  youtube-dl
anisha@linux-uitj:~/tarBalls/youtube-dl> ./youtube-dl http://www.youtube.com/watch?v=BfOC_Msb1dI
[youtube] Setting language
[youtube] BfOC_Msb1dI: Downloading video webpage
[youtube] BfOC_Msb1dI: Downloading video info webpage
[youtube] BfOC_Msb1dI: Extracting video information
ERROR: unable to download video (format may not be available)
anisha@linux-uitj:~/tarBalls/youtube-dl> man youtude-dl
No manual entry for youtude-dl
anisha@linux-uitj:~/tarBalls/youtube-dl>


TobiSGD 12-27-2010 11:09 PM

Youtube recently changed its APIs, had the same problem with minitube. Maybe it helps to try the version directly from the GIT-repo on that site.

Aquarius_Girl 12-29-2010 10:37 PM

Thanks for replying and I am sorry for being dumb!
Did you mean this by the git repo: http://rg3.github.com/youtube-dl/download.html
If not then explain, please.

TobiSGD 12-29-2010 11:05 PM

Exactly, but no reason to call yourself dumb, I don't even now how to use git.

Aquarius_Girl 12-30-2010 01:20 AM

Thanks for not throwing bricks at me :D

I copied the code from this link to a file named downloadVideos.sh, made it executable by "chmod" and ran it like:
Code:

anisha@linux-uitj:~> ./downloadVideos.sh http://www.youtube.com/watch?v=BfOC_Msb1dI
It worked and now that video is sitting in my home dir!

archtoad6 04-06-2011 05:27 AM

OT posts about "Permissions & chmod" are now here: http://www.linuxquestions.org/questi....php?p=4315592

Aquarius_Girl 04-06-2011 05:29 AM

Quote:

Originally Posted by archtoad6 (Post 4315608)
OT posts about "Permissions & chmod" are now here: http://www.linuxquestions.org/questi....php?p=4315592

Ah Well, the post number 5 there? How about creating another thread from that too?

archtoad6 04-06-2011 08:06 AM

I wish I had noticed that before I moved the posts. I don't mod Linux - Newbie so it's now out of my hands -- see Question 3 in my next reply there.

FWIW, veering your own thread in a new direction is nowhere near as bad as hijacking someone else's.

nishitmukesh 06-13-2011 02:38 AM

Hi,
youtube-dl was working fine till date, but now it fails to download some video, i tried downloading this video (http://www.youtube.com/watch?v=OFbCDaPKOFM) but it failed to download, is there any changes needed in the script to download from youtube.
thanks.

Aquarius_Girl 06-13-2011 02:48 AM

Have you tried what I said in post 5?

nishitmukesh 06-13-2011 05:05 AM

@Anisha Kaul,
I tried using post #5 method, but unable to download.
thanks.

Aquarius_Girl 06-13-2011 06:18 AM

You are right, it doesn't work for me too:
Code:

[16:14:36 Mon Jun 13] ~  $./download1.sh www.google.com
WARNING: Falling back on generic information extractor.
[generic] www.google.com: Downloading webpage
ERROR: Invalid URL: www.google.com

I even tried the latest GIT repo dated 2011-03-29, no help!

I see to this later this evening, perhaps.

Aquarius_Girl 06-22-2011 12:35 AM

Quote:

Originally Posted by nishitmukesh (Post 4383991)
@Anisha Kaul,
I tried using post #5 method, but unable to download.
thanks.

This IS working for me, in the previous post I was dumb enough to try it with google com.

See the following:
Code:

[11:14:47 Wed Jun 22] ~  $./download.sh http://www.youtube.com/watch?v=BfOC_Msb1dI
[youtube] Setting language
[youtube] BfOC_Msb1dI: Downloading video webpage
[youtube] BfOC_Msb1dI: Downloading video info webpage
[youtube] BfOC_Msb1dI: Extracting video information
[download] Destination: BfOC_Msb1dI.flv
[download]  2.1% of 14.45M at  32.85k/s ETA 07:20^C

ERROR: Interrupted by user
[11:15:11 Wed Jun 22] ~  $./download.sh http://www.google.com
WARNING: Falling back on generic information extractor.
[generic] www.google.com: Downloading webpage
[generic] www.google.com: Extracting information
ERROR: Invalid URL: http://www.google.com
[11:15:22 Wed Jun 22] ~  $

The download.sh script contains the "latest" GIT repo code.
What problems you are facing now? List down the errors here.

nishitmukesh 06-22-2011 04:19 AM

Ya now its working fine, but when i tried before it was not working.
thanks for the help.

Aquarius_Girl 06-22-2011 04:20 AM

Perhaps there may have been some problem with the Youtube site, previously?


All times are GMT -5. The time now is 05:45 AM.