AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

youtube video save and audio record
Goto page 1, 2, 3, 4, 5  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
garry



Joined: 19 Apr 2005
Posts: 2198
Location: switzerland

PostPosted: Wed Dec 13, 2006 9:29 am    Post subject: youtube video save and audio record Reply with quote

REMOVED, see =

http://www.autohotkey.com/forum/topic34932.html
===============================================
















============ SOME LINKS FREEWARE ========================



---------------------------------------
videoToMP3converter:
http://www.dvdvideosoft.com/download/FreeVideoToMp3Converter.exe
http://www.dvdvideosoft.com/free-dvd-video-software.htm


MP3DirectCut 2.03 .......
http://www.mpesch3.de/
and also mpglib.dll and lame_enc.dll (F12) for record flv.. to MP3
http://www.autohotkey.net/~garry/WGETSTREAMMP3DIRECTCUT.zip


--------------------------------------


Last edited by garry on Wed Jun 08, 2011 7:07 am; edited 33 times in total
Back to top
View user's profile Send private message
user



Joined: 05 Oct 2006
Posts: 476

PostPosted: Mon Dec 18, 2006 11:50 pm    Post subject: Reply with quote

thank you for this Very Happy

but I really wanted to

1)autosave all youtube videos I visit (even if I dont want for them to download completely)

2)autorename them

thanks
Back to top
View user's profile Send private message
BETLOG



Joined: 27 Nov 2006
Posts: 222
Location: Queensland, Australia

PostPosted: Tue Dec 19, 2006 4:02 am    Post subject: Reply with quote

[edit] move along, nothing to see here, move along.

Last edited by BETLOG on Wed Jan 24, 2007 7:51 am; edited 1 time in total
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Mon Jan 01, 2007 10:23 pm    Post subject: Reply with quote

Quote:
Code:
#!/bin/sh
# Grab a video (in nasty Flash video format) from youtube.com.
# This is based on what http://keepvid.com/ does (at least, I assume it isn't
# doing anything smarter than this).

TF=/tmp/ytg.$$
trap "rm -f $TF" 0

url="$1"

if [ "$url" = "" ] ; then
   echo "Usage: youtubeget http://www.youtube.com/watch?..."
   exit 1
fi

v=`echo "$url" | sed 's,^.*v=\([^&]*\).*,\1,'`

agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041219"
curl -A "$agent" "$url" >$TF
t=`grep '&t=' $TF | head -1 | sed 's,.*&t=\([^&"]*\)[&"].*,\1,'`
l=`grep '&l=' $TF | head -1 | sed 's,.*&l=\([^&"]*\)[&"].*,\1,'`

out="youtube-$v.flv"
echo "Downloading ID $v to $out..."
wget -O "$out" --referer "$url" -U "$agent" "http://www.youtube.com/get_video?video_id=$v&l=$l&t=$t"

[Took it from here]
Might give an idea how to get something less Gui related with AHK. Good luck. Cool
Back to top
polyethene



Joined: 11 Aug 2004
Posts: 5244
Location: UK

PostPosted: Tue Jan 02, 2007 12:01 am    Post subject: Reply with quote

Nice find BoBo, here's the AHK version:
Code:
tf = %A_Temp%\ytg
url = http://www.youtube.com/watch?v=7ss41lkJFZc

RegExMatch(url, "v=(\w+)", v)
UrlDownloadToFile, %url%, %tf%
FileRead, tf, %tf%
s := RegExMatch(tf, "&t=(.+?)&", t)
RegExMatch(tf, "&l=(.+?)&", l, s - 25)

FileSelectFile, file, S18
If file
   UrlDownloadToFile, http://www.youtube.com/get_video?video_id=%v1%&l=%l1%&t=%t1%, %file%

_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
garry



Joined: 19 Apr 2005
Posts: 2198
Location: switzerland

PostPosted: Tue Jan 02, 2007 7:53 pm    Post subject: Reply with quote

thank you all
what happens here ?
I'll never understand RegEx ... Smile
can you optimize this ? ( automatically rename )
thank you again
(moved to first position)


Last edited by garry on Wed Jan 03, 2007 2:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Tue Jan 02, 2007 8:37 pm    Post subject: Reply with quote

Quote:
automatically rename
Replace the FileSelectFile section with a FileMove statement. Done.
Back to top
garry



Joined: 19 Apr 2005
Posts: 2198
Location: switzerland

PostPosted: Tue Jan 02, 2007 8:57 pm    Post subject: Reply with quote

script above works fine with automatically rename
but mine part is not so nice written ... Smile
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 2198
Location: switzerland

PostPosted: Tue Jan 02, 2007 11:13 pm    Post subject: Reply with quote

moved to first position
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 2198
Location: switzerland

PostPosted: Wed Jan 03, 2007 7:40 pm    Post subject: Reply with quote

modified , while looking video, can record also audio to MP3 with mixmp3.exe
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 2198
Location: switzerland

PostPosted: Fri Jan 05, 2007 3:55 pm    Post subject: Reply with quote

Titan modified RegEx code
Back to top
View user's profile Send private message
ManilaGurL



Joined: 24 Jan 2007
Posts: 2

PostPosted: Wed Jan 24, 2007 6:56 am    Post subject: Reply with quote

Hmm how do u make this thing work? Please help I badly need to save vids from youtube and record the audio too..
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Wed Jan 24, 2007 8:35 am    Post subject: Reply with quote

Quote:
Please help I badly need to save vids from youtube and record the audio too..
Run the script. If you don't know how, check the QuickStartTutorial. Good luck.
Back to top
ManilaGurL



Joined: 24 Jan 2007
Posts: 2

PostPosted: Wed Jan 24, 2007 9:31 am    Post subject: Reply with quote

Script? I don't see any script here or I just don't know it. Thanks anyway. Crying or Very sad
Back to top
View user's profile Send private message
Steve Wonder
Guest





PostPosted: Wed Jan 24, 2007 11:58 am    Post subject: Reply with quote

Quote:
I don't see any script here
Shocked Me too!!!
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group