Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am unable to access YouTube on HTTP. But I can access the same on an HTTPS.

When I executed the command wget https://www.youtube.com/watch?v=StJLvbPIvTw it returned the following response:

--2013-03-04 13:09:28--  https://www.youtube.com/watch?v=StJLvbPIvTw
Resolving www.youtube.com (www.youtube.com)... 74.125.236.167, 74.125.236.160, 74.125.236.164, ...
Connecting to www.youtube.com (www.youtube.com)|74.125.236.167|:443... connected.
Unable to establish SSL connection.

Please guide me on how to download the YouTube videos on HTTPS.

share|improve this question
3  
This looks like a duplicate of askubuntu.com/questions/63270/how-do-i-download-a-youtube-video, but because of the https part it might not be one. –  don.joey Mar 4 '13 at 8:52
add comment

5 Answers

you can't use wget to download video from youtube because the adress is just the webpage of the video, not the video file.

youtube-dl works with https (actual version).

i don't know if you have fixed your problem with youtube-dl, but if you followed the installation procedure mentioned on the website (and installed it in /usr/local/bin), you should specify the output folder, like this :

cd /usr/local/bin
sudo youtube-dl -o '/home/username/Music/test.flv' https://www.uTube.com/v?=

by default youtube-dl download the best quality

another alternative is clipgrab.

it comes with a nice GUI :)

share|improve this answer
add comment

Just don't use wget.

sudo apt-get install youtube-dl
youtube-dl https://www.youtube.com/watch?v=StJLvbPIvTw

Works on my system.

You can also install newer version (as of now version 2013.02.25, version in the official repositories is 2012.09.27) as per the instructions on youtube-dl's website:

sudo wget http://youtube-dl.org/downloads/2013.02.25/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+x /usr/local/bin/youtube-dl
youtube-dl https://www.youtube.com/watch?v=StJLvbPIvTw
share|improve this answer
    
does it works with HTTPS too?? –  vipin8169 Mar 4 '13 at 8:52
    
i tried it, but it gave the error:- [youtube] Setting language [youtube] StJLvbPIvTw: Downloading video webpage [youtube] StJLvbPIvTw: Downloading video info webpage ERROR: "token" parameter not in video info for unknown reason –  vipin8169 Mar 4 '13 at 8:54
    
did you copy-paste my commands? it works perfectly here. Try it for some other youtubes. Here is the source code: bitbucket.org/rg3/youtube-dl/src/… –  don.joey Mar 4 '13 at 8:58
    
@vipin8169 You probably need a more recent version of youtube-dl. –  qbi Mar 4 '13 at 9:02
1  
@vipin8169 No, the command won't get the latest version as the version the Ubuntu repositories is quite old (quite old considering how often Youtube API changes, affecting all these downloader programs). I edited the instructions on how to get the latest version (as of writing this comment, edit not yet approved). I don't know if there are any https related fixes in the newer version(s), but you should try anyway. –  pileofrocks Mar 4 '13 at 18:13
show 5 more comments

According to your question and your location it might be that you are behind some restrictive network settings. So best is to enable HTTPS by default. You can install the plugin HTTPS Everywhere for Firefox or Google Chrome. This plugin tries to access YouTube as well as other pages per HTTPS by default. Furthermore the Firefox addons page has several plugins which allow you to download videos. For instance Video DownloadHelper works on several video pages. With both plugins combined you can download videos over HTTPS.

If you need a plugin for Chromium, have a look at this answer and also other answers for this question.

share|improve this answer
    
I need a Chrome app, in firefox it's not working –  vipin8169 Mar 4 '13 at 9:16
add comment
up vote 2 down vote accepted

Found from some other Question:- Use the URL savefrom.net and type in https://www.youtube.com/watch?v=StJLvbPIvTw. Press Download button and you can download it in any format :)) No matter whether you access it via HTTPS or HTTP

you can download the chrome app also from here>> http://en.savefrom.net/user.php

enter image description here

share|improve this answer
add comment

Why don't you use the Video Download helper addon on firefox. Works great for me

Here's the link :

https://addons.mozilla.org/en-US/firefox/addon/video-downloadhelper/?src=ss

and it works with HTTPS.

share|improve this answer
1  
I recommend editing this to provide a link also, and if possible, information about how to install/use it. Also, have you verified this works over HTTPS? –  Eliah Kagan Mar 4 '13 at 9:25
    
i am unable to open https in firefox, only chrome could open it. don't know what's the issue –  vipin8169 Mar 5 '13 at 7:35
    
are you using a proxy server or vpn? make sure firefox is correctly configured –  Anam Ahmed Mar 5 '13 at 8:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.