LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2011, 10:30 PM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Rep: Reputation: 49
downloading video from youtube


i want to download at http://www.youtube.com/watch?v=J5f-jUpUp8o
the video does not get cached in firefox.
if you are able to grab this video. please tell me how ?
 
Old 09-09-2011, 10:50 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Install youtube-dl, then just:
Code:
youtube-dl -t http://www.youtube.com/watch?v=J5f-jUpUp8o
 
1 members found this post helpful.
Old 09-09-2011, 10:57 PM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Orange County, CA
Distribution: Kubuntu x64, Raspbian, CentOS
Posts: 1,845
Blog Entries: 36

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
  1. You could also install Firebug, a firefox add-on.
  2. Open Firebug (F12)
  3. Click on the network tab and click enable when you get to youtube.
  4. Load that video.
  5. Reorganize the data transfers by size (the video will be the largest between ~50-100MB).
  6. Then copy the URL into a new tab and save file as.
  7. Alternatively, you could install DownThemAll and download the video spoofing the referrer from the DTA Manager.

If the video doesn't show up it means you didn't enable Firebug in time to capture the network transfer. Simply clear your cache and then reload the page after Firebug is open and network is enabled. You should see it then.

The same method works for music sites like playlist.com. It's not illegal to download music that way because you're following the DMCA and not sharing music, only downloading publicly available music.

@macemoneta: That's a cool script. First time I've seen it.

SAM

Last edited by sag47; 09-09-2011 at 11:25 PM.
 
Old 09-09-2011, 11:11 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,201

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
i've noticed the 'net console allows you to locate the url of online radio streams from sites like live365 as well (something they USED to publicly publish when i first became a member)
 
Old 09-09-2011, 11:12 PM   #5
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Quote:
Originally Posted by sag47 View Post
@macemoneta: That's a cool script. First time I've seen it.
SAM
It's in the Fedora repository, and they keep it up to date which is why I use it. It hasn't failed me ... yet.
 
Old 09-09-2011, 11:25 PM   #6
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
i used https://raw.github.com/rg3/youtube-d....04/youtube-dl
i got this output
Code:
./youtube-dl -t http://www.youtube.com/watch?v=J5f-jUpUp8o
[youtube] Setting language
[youtube] J5f-jUpUp8o: Downloading video webpage
[youtube] J5f-jUpUp8o: Downloading video info webpage
[youtube] J5f-jUpUp8o: Extracting video information
Traceback (most recent call last):
  File "./youtube-dl", line 2987, in <module>
    retcode = fd.download(all_urls)
  File "./youtube-dl", line 604, in download
    ie.extract(url)
  File "./youtube-dl", line 844, in extract
    return self._real_extract(url)
  File "./youtube-dl", line 1085, in _real_extract
    url_map = dict((ud['itag'], urllib.unquote(ud['url'])) for ud in url_data)
  File "./youtube-dl", line 1085, in <genexpr>
    url_map = dict((ud['itag'], urllib.unquote(ud['url'])) for ud in url_data)
KeyError: 'url'
 
Old 09-09-2011, 11:50 PM   #7
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
That video appears to be protected (probably DRMed).
 
Old 09-10-2011, 01:13 AM   #8
jmszr
LQ Newbie
 
Registered: Sep 2010
Location: Phoenix, Arizona
Distribution: Ubuntu
Posts: 9

Rep: Reputation: 6
sumeet inani,

I use the Firefox add-on Video DownloadHelper: https://addons.mozilla.org/en-US/fir...ownloadhelper/ . It works well and will convert video formats as it is downloading, if you wish.

Hope that helps.

Last edited by jmszr; 09-10-2011 at 01:15 AM.
 
Old 09-10-2011, 02:31 AM   #9
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
hi jmszr,
actually video link i pointed out seems difficult to grab.
please explain your success in this case.
 
Old 09-10-2011, 02:36 AM   #10
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
to macemoneta
Quote:
That video appears to be protected (probably DRMed).
from youtube-dl documentation
Quote:
Some YouTube videos are served using Adobe's proprietary RTMP protocol, which imposes DRM restrictions and encrypts the connection. youtube-dl is not able to download these videos by itself. However, it will attempt to use the rtmpdump program, if it's installed in your system, to download these videos.
i could not compile rtmpdump & could not find debian file.
i am using ubuntu 10.04
 
Old 09-10-2011, 02:38 AM   #11
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
i have installed libssl-dev
here i am stuck
Code:
rtmpdump-2.2e$ make SYS=darwin
make[1]: Entering directory `/home/lxuser/Desktop/rtmpdump-2.2e/librtmp'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2e\" -DUSE_OPENSSL  -O2   -c -o rtmp.o rtmp.c
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2e\" -DUSE_OPENSSL  -O2   -c -o log.o log.c
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2e\" -DUSE_OPENSSL  -O2   -c -o amf.o amf.c
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2e\" -DUSE_OPENSSL  -O2   -c -o hashswf.o hashswf.c
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2e\" -DUSE_OPENSSL  -O2   -c -o parseurl.o parseurl.c
ar rs librtmp.a rtmp.o log.o amf.o hashswf.o parseurl.o
ar: creating librtmp.a
make[1]: Leaving directory `/home/lxuser/Desktop/rtmpdump-2.2e/librtmp'
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2e\"   -O2   -c -o rtmpdump.o rtmpdump.c
gcc -Wall  rtmpdump.o librtmp/librtmp.a  -o rtmpdump -lssl -lcrypto -lz 
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2e\"   -O2   -c -o rtmpgw.o rtmpgw.c
gcc -Wall   -DRTMPDUMP_VERSION=\"v2.2e\"   -O2   -c -o thread.o thread.c
gcc -Wall  rtmpgw.o thread.o librtmp/librtmp.a  -o rtmpgw  -lssl -lcrypto -lz 
thread.o: In function `ThreadCreate':
thread.c:(.text+0x55): undefined reference to `pthread_create'
collect2: ld returned 1 exit status
make: *** [rtmpgw] Error 1
while in latest git
Code:
rtmpdump$ make SYS=darwin
make[1]: Entering directory `/home/lxuser/rtmpdump/librtmp'
gcc -dynamiclib -twolevel_namespace -undefined dynamic_lookup -fno-common -headerpad_max_install_names -install_name /usr/local/lib/librtmp.0.dylib  -o librtmp.0.dylib rtmp.o log.o amf.o hashswf.o parseurl.o  -lssl -lcrypto -lz 
gcc: dynamic_lookup: No such file or directory
gcc: /usr/local/lib/librtmp.0.dylib: No such file or directory
gcc: unrecognized option '-twolevel_namespace'
gcc: unrecognized option '-headerpad_max_install_names'
make[1]: *** [librtmp.0.dylib] Error 1
make[1]: Leaving directory `/home/lxuser/rtmpdump/librtmp'
make: *** [librtmp/librtmp.a] Error 2

Last edited by sumeet inani; 09-10-2011 at 02:41 AM.
 
Old 09-10-2011, 03:05 AM   #12
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
It doesn't matter. I built the latest rtmpdump from git and applied the latest patch to youtube-dl. That file now generates:
Code:
$ ./youtube-dl 'http://www.youtube.com/watch?v=J5f-jUpUp8o'
[youtube] Setting language  
[youtube] J5f-jUpUp8o: Downloading video webpage
[youtube] J5f-jUpUp8o: Downloading video info webpage
[youtube] J5f-jUpUp8o: Extracting video information
[youtube] RTMP download detected
[download] Destination: J5f-jUpUp8o.flv
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...

ERROR: rtmpdump exited with code -11
You'll have to wait until one of the developers figures out what changed.
 
Old 09-10-2011, 03:16 AM   #13
sumeet inani
Member
 
Registered: Oct 2008
Posts: 898
Blog Entries: 26

Original Poster
Rep: Reputation: 49
can you solve my rtmpdump installation ?
 
Old 09-10-2011, 03:25 AM   #14
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
You need to install the 'glibc-devel' package for POSIX threads (on Fedora).
 
Old 09-10-2011, 03:28 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Quote:
can you solve my rtmpdump installation ?
Which OS are you using ? Please specify OS every time you ask a question.
Ubuntu 11.04 ? Fedora 15 ? Etc. etc.


'rtmpdump' compiles OK with gcc-4.4.1 : cd rtmpdump/ && make : No errors.

..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Downloading all videos of an youtube user, from the terminal LXer Syndicated Linux News 0 01-15-2011 08:42 PM
[SOLVED] Is there a tool for downloading youtube videos? mark_alfred Linux - Software 2 04-13-2010 11:52 PM
how can i donload the video from youtube to my pc golgo Linux - Software 8 08-04-2009 12:44 AM
downloading vids from youtube deathalele Linux - Software 3 08-23-2008 02:33 PM
Downloading youtube and google video vids pAn1k Linux - Software 3 05-16-2008 11:39 PM


All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration