LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem downloading video from youtube (https://www.linuxquestions.org/questions/linux-newbie-8/problem-downloading-video-from-youtube-908821/)

paruhang 10-18-2011 02:26 PM

problem downloading video from youtube
 
i have tired many times to download video form youtube, what is my problem
# youtube-dl -b http://www.youtube.com/watch?v=ldB8kDEtTZA
[youtube] Setting language
[youtube] ldB8kDEtTZA: Downloading video info webpage
[youtube] ldB8kDEtTZA: Extracting video information
[youtube] ldB8kDEtTZA: Format 22 not available
[youtube] ldB8kDEtTZA: Downloading video info webpage
[youtube] ldB8kDEtTZA: Extracting video information
[youtube] ldB8kDEtTZA: Format 35 not available
[youtube] ldB8kDEtTZA: Downloading video info webpage
[youtube] ldB8kDEtTZA: Extracting video information
[youtube] ldB8kDEtTZA: Format 18 not available
[youtube] ldB8kDEtTZA: Downloading video info webpage
[youtube] ldB8kDEtTZA: Extracting video information
[youtube] ldB8kDEtTZA: Format 5 not available
[youtube] ldB8kDEtTZA: Downloading video info webpage
[youtube] ldB8kDEtTZA: Extracting video information
[youtube] ldB8kDEtTZA: Format 17 not available
[youtube] ldB8kDEtTZA: Downloading video info webpage
[youtube] ldB8kDEtTZA: Extracting video information
[youtube] ldB8kDEtTZA: Format 13 not available
[youtube] ldB8kDEtTZA: Downloading video info webpage
[youtube] ldB8kDEtTZA: Extracting video information
ERROR: no known formats available for video

macemoneta 10-18-2011 02:38 PM

It works here (with a single-quoted URL), but there's no '-b' option in the current version. I suspect your youtube-dl is out of date.

etech3 10-18-2011 03:12 PM

The download is a .flv format. Do you have flash setup correctly?

You could try savevid.com and switch formats.

paruhang 10-18-2011 03:53 PM

hi macemoneta, thankx for your quick reply.
i just download youtube-dl from www.pkgs.org and install but when i try to download same error occurs and without using '-b' the following error occurs:

# youtube-dl http://www.youtube.com/watch?v=ldB8kDEtTZA[youtube] Setting language
[youtube] ldB8kDEtTZA: Downloading video info webpage
[youtube] ldB8kDEtTZA: Extracting video information
ERROR: format not available for video

iam using 64 bits RHEL 6.0 does this command differ from distro of linux..?

paruhang 10-18-2011 03:55 PM

hi etech3, thankx for your reply.
i was able to watch youtube videos in mozilla, does my flash setup correctly or not, if not can u give me ideas, i'll be greatful.

etech3 10-18-2011 04:04 PM

You could try from your desktop, go to where your download is and right click and open with firefox to see if it plays.

macemoneta 10-18-2011 04:09 PM

What do you get when you:
Code:

$ rpm -q youtube-dl
youtube-dl-2011.08.04-1.fc15.noarch


paruhang 10-18-2011 04:12 PM

# rpm -q youtube-dl
youtube-dl-0-0.2009.09.13.el6.rf.noarch

macemoneta 10-18-2011 04:15 PM

It is an old version. You might want to try this one.

paruhang 10-18-2011 04:22 PM

hi macemoneta, i have download youtube-dl file from the given link by you and this error occurs:

# rpm -ivh youtube-dl-2011.08.04-1.fc15.noarch.rpm
warning: youtube-dl-2011.08.04-1.fc15.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 069c8460: NOKEY
Preparing... ########################################### [100%]
package youtube-dl-2011.08.04-1.fc15.noarch is already installed


# rpm -q youtube-dl-2011.08.04-1.fc15.noarch.rpm
package youtube-dl-2011.08.04-1.fc15.noarch.rpm is not installed

macemoneta 10-18-2011 05:04 PM

The proper command is:
Code:

yum localinstall youtube-dl-2011.08.04-1.fc15.noarch.rpm

or

rpm -Uvh youtube-dl-2011.08.04-1.fc15.noarch.rpm

To see which version is installed:
Code:

rpm -q youtube-dl

paruhang 10-18-2011 05:10 PM

[root@server Downloads]# rpm -Uvh youtube-dl-2011.08.04-1.fc15.noarch.rpm
warning: youtube-dl-2011.08.04-1.fc15.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 069c8460: NOKEY
Preparing... ########################################### [100%]
package youtube-dl-2011.08.04-1.fc15.noarch is already installed

[root@server Downloads]# yum localinstall youtube-dl-2011.08.04-1.fc15.noarch.rpm
Loaded plugins: aliases, refresh-packagekit, rhnplugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Local Package Process
Examining youtube-dl-2011.08.04-1.fc15.noarch.rpm: youtube-dl-2011.08.04-1.fc15.noarch
youtube-dl-2011.08.04-1.fc15.noarch.rpm: does not update installed package.
Nothing to do

[root@server Downloads]# rpm -q youtube-dl-2011.08.04-1.fc15.noarch.rpm
package youtube-dl-2011.08.04-1.fc15.noarch.rpm is not installed

macemoneta 10-18-2011 05:43 PM

Use:
Code:

rpm -q youtube-dl
The command you are using is asking if a specific package is installed, not what version is installed. The commands are not the same.


If necessary, first:
Code:

yum remove youtube-dl

paruhang 10-18-2011 06:08 PM

wow macemoneta,
it really works thankx for your help ur greatful to me.

kabish 12-30-2011 01:45 AM

I am not a programming savvy guy, so I get used to downloading videos with different free programs and easy tricks.

Actually you can get the video file after watching the whole YouTube video, just check the browser’s temporary Internet folder, and copy the flv video file then paste into local folder.

Or record videos from YouTube with certain video download tool like Firefox add-on, streaming video recorder, Keepvid.com


All times are GMT -5. The time now is 11:29 AM.