Register
It is currently Mon Dec 22, 2014 9:19 pm

Google Video Ripper


All times are UTC - 6 hours


Post new topic Reply to topic  [ 7 posts ] 
Author Message
 PostPosted: Tue Jul 11, 2006 9:43 pm   
User avatar

Joined: Tue May 17, 2005 12:55 am
Posts: 86
Location: Big Easy, Louisiana
i tweaked your url's to get a script to d/l and save google vids :D using a firefox extension i get the d/l url for the video i want. I'm testing it with a free episode of Rocky and Bullwinkle :D . i can't seem to get it to work :( though. it hangs on the whole .flv thing. any pointers?

Code:
#!/bin/bash
# by Coastie (modded Crouse's YTR)
# Program name GoogleRipper = Video.Google.com Ripper
baseurl="http://video.google.com/videoplay?"
mkdir -p ~/Google ;
mkdir -p ~/Google/tmp ;
cd ~/Google/tmp ;
read -p "What is the Google Video url you want to rip ? " urltorip ;
read -p "What would you like to name the video (no spaces in the name) ?
" nameofvideo ;
wget ${urltorip} -O urlsource.txt ;
grep "player2.swf" urlsource.txt > url.info ;
cut -d? -f2 url.info > url;
cut -d\" -f1 url > videoid;
videourl=`cat videoid`
fullurl=${baseurl}${videourl}
echo ${fullurl}
rm *
wget "${fullurl}" -O temp.flv
# mv * temp.flv
echo "Now converting the file to mpeg ... this can take awhile, please
be patient" ;
ffmpeg -i temp.flv -ab 56 -ar 22050 -b 500 -s 320x240 ${nameofvideo}.mpg
# mv *.mpg ../
mv ${nameofvideo}.mpg ../
rm -Rf ~/Google/tmp
exit


Top
 Profile YIM  
 PostPosted: Wed Jul 12, 2006 3:30 pm   
User avatar

Joined: Tue May 17, 2005 12:55 am
Posts: 86
Location: Big Easy, Louisiana
updated the one for google vids

Code:
#!/bin/bash
# by Coastie (modded Crouse's YTR)
# Program name GoogleRipper = Video.Google.com Ripper
clear; baseurl="http://video.google.com/videoplay?";
mkdir -p ~/Google ; mkdir -p ~/Google/tmp ; cd ~/Google/tmp ; echo " ";
read -p "What is the GoogleVideo.com url you want to rip ? " urltorip ;
read -p "What would you like to name the video (no spaces in the name) ? " nameofvideo ;
wget ${urltorip} -O urlsource.txt ; fullurl=${baseurl}`grep player2.swf urlsource.txt | cut -d? -f2 | cut -d\" -f1` ;
rm * ; wget "${fullurl}" -O temp.flv ; ffmpeg -i temp.flv -ab 56 -ar 22050 -b 500 -s 320x240 ${nameofvideo}.mpg ;
mv ${nameofvideo}.mpg ../ ; rm -Rf ~/Google/tmp ; exit


here's my error:

Quote:
coastie@foxhole:~/Scripts> ./GoogleRipper



What is the GoogleVideo.com url you want to rip ? http://vp.video.google.com/videodownloa ... 5&autoPlay\u003dtrue&playerId\u003d-1175367493081978705\

What would you like to name the video (no spaces in the name) ? Coke
--16:23:54-- http://vp.video.google.com/videodownloa ... 3081978705
=> `urlsource.txt'
Resolving vp.video.google.com... 72.14.209.178, 72.14.209.179, 72.14.209.180, ...
Connecting to vp.video.google.com|72.14.209.178|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [video/x-flv]

[ <=> ] 2,273,157 420.73K/s

16:24:00 (424.29 KB/s) - `urlsource.txt' saved [2273157]

--16:24:00-- http://video.google.com/videoplay?
=> `temp.flv'
Resolving video.google.com... 216.239.51.99, 216.239.51.104
Connecting to video.google.com|216.239.51.99|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
16:24:00 ERROR 404: Not Found.

FFmpeg version SVN-r5565, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib --enable-shared --enable-mp3lame --enable-libogg --enable-vorbis --enable-theora --enable-faad --enable-faac --enable-xvid --enable-x264 --enable-a52 --enable-pp --enable-gpl --enable-gprof --enable-amr_nb --enable-amr_wb
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
built on Jul 1 2006 12:21:19, gcc: 4.0.2 20050901 (prerelease) (SUSE Linux)
temp.flv: Unknown format
mv: cannot stat `Coke.mpg': No such file or directory


Top
 Profile YIM  
 PostPosted: Fri Jul 14, 2006 10:09 am   
Site Admin

Joined: Tue May 17, 2005 7:31 pm
Posts: 251
Location: Georgia
coastie wrote:
Code:
#!/bin/bash
# by Coastie (modded Crouse's YTR)
# Program name GoogleRipper = Video.Google.com Ripper
clear; baseurl="http://video.google.com/videoplay?";
mkdir -p ~/Google ; mkdir -p ~/Google/tmp ; cd ~/Google/tmp ; echo " ";
read -p "What is the GoogleVideo.com url you want to rip ? " urltorip ;
read -p "What would you like to name the video (no spaces in the name) ? " nameofvideo ;
wget ${urltorip} -O urlsource.txt ; fullurl=${baseurl}`grep player2.swf urlsource.txt | cut -d? -f2 | cut -d" -f1` ;
rm * ; wget "${fullurl}" -O temp.flv ; ffmpeg -i temp.flv -ab 56 -ar 22050 -b 500 -s 320x240 ${nameofvideo}.mpg ;
mv ${nameofvideo}.mpg ../ ; rm -Rf ~/Google/tmp ; exit


ok... check this out... google is nice... they let you download the flv directly
so the url you are trying to rip with already let's you wget the file as a flv...
so your code should be more like...
Code:
#!/bin/bash
# by Coastie (modded Crouse's YTR)
# Program name GoogleRipper = Video.Google.com Ripper
clear;
mkdir -p ~/Google ; mkdir -p ~/Google/tmp ; cd ~/Google/tmp ; echo " ";
read -p "What is the GoogleVideo.com url you want to rip ? " urltorip ;
read -p "What would you like to name the video (no spaces in the name) ? " nameofvideo ;
wget "${urltorip}" -O temp.flv ; ffmpeg -i temp.flv -ab 56 -ar 22050 -b 500 -s 320x240 ${nameofvideo}.mpg ;
mv ${nameofvideo}.mpg ../ ; rm -Rf ~/Google/tmp ; exit

see if those changes might have helped a little


Top
 Profile  
 PostPosted: Fri Jul 14, 2006 1:58 pm   
User avatar

Joined: Tue May 17, 2005 12:55 am
Posts: 86
Location: Big Easy, Louisiana
coastie@foxhole:~/Scripts> ./GRtest

What is the GoogleVideo.com url you want to rip ? http://vp.video.google.com/videodownloa ... 2754011230
What would you like to name the video (no spaces in the name) ?
Bush
--14:52:46-- http://vp.video.google.com/videodownloa ... 2754011230
=> `temp.flv'
Resolving vp.video.google.com... 72.14.209.181, 72.14.209.176, 72.14.209.177, ...
Connecting to vp.video.google.com|72.14.209.181|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [video/x-msvideo]

[ <=> ] 12,685,150 502.35K/s

14:53:12 (488.09 KB/s) - `temp.flv' saved [12685150]

FFmpeg version SVN-r5565, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib --enable-shared --enable-mp3lame --enable-libogg --enable-vorbis --enable-theora --enable-faad --enable-faac --enable-xvid --enable-x264 --enable-a52 --enable-pp --enable-gpl --enable-gprof --enable-amr_nb --enable-amr_wb
libavutil version: 49.0.0
libavcodec version: 51.9.0
libavformat version: 50.4.0
built on Jul 1 2006 12:21:19, gcc: 4.0.2 20050901 (prerelease) (SUSE Linux)

Seems that stream 0 comes from film source: 2997.00 (2997/1) -> 29.97 (30000/1001)
Input #0, avi, from 'temp.flv':
Duration: 00:03:07.2, start: 0.000000, bitrate: 541 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 480x360, 29.97 fps(r)
Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
ffmpeg: missing argument for option '-b'
./GRtest: line 10: 500: command not found
mv: cannot stat `Bush.mpg': No such file or directory


Top
 Profile YIM  
 PostPosted: Fri Jul 14, 2006 3:13 pm   
Site Admin

Joined: Tue May 17, 2005 7:31 pm
Posts: 251
Location: Georgia
coastie wrote:
ffmpeg: missing argument for option '-b'
./GRtest: line 10: 500: command not found

tells me you messed up the input lines from the script...
check the line with ffmpeg on it... make sur eyou don't have an extra space after the -b option in that line... copy and paste what i have exactly if you have to...
there may be more to it... let me know once those errors don't come up anymore


Top
 Profile  
 PostPosted: Fri Jul 14, 2006 6:40 pm   
User avatar

Joined: Tue May 17, 2005 12:55 am
Posts: 86
Location: Big Easy, Louisiana
i copy and pasted exactly what you put :? and then ran that :?


Top
 Profile YIM  
 PostPosted: Fri Jul 14, 2006 7:39 pm   
Site Admin

Joined: Tue May 17, 2005 7:31 pm
Posts: 251
Location: Georgia
i had copy and pasted it too... i didn't get that error... i got an error saying that the .flv file was of the wrong format

but definitely not the -b missing an argument or 500 not being a command (makes me wonder if it's on seperate lines... you might want to go next to the -b and push the delete button...if 500 jumps right next to -b... then press space... might have a "end line" character hidden in there... (depends on what you pasted it into)


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP