AutoHotkey Community

It is currently May 27th, 2012, 8:07 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 65 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
PostPosted: December 13th, 2006, 10:29 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
REMOVED, see =

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
















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



---------------------------------------
videoToMP3converter:
http://www.dvdvideosoft.com/download/Fr ... verter.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/WGETST ... ECTCUT.zip


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


Last edited by garry on June 8th, 2011, 8:07 am, edited 33 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2006, 12:50 am 
Offline

Joined: October 5th, 2006, 8:45 am
Posts: 476
thank you for this :D

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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 19th, 2006, 5:02 am 
Offline

Joined: November 27th, 2006, 7:41 am
Posts: 222
Location: Queensland, Australia
[edit] move along, nothing to see here, move along.


Last edited by BETLOG on January 24th, 2007, 8:51 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 1st, 2007, 11:23 pm 
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. 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 2nd, 2007, 1:01 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 2nd, 2007, 8:53 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
thank you all
what happens here ?
I'll never understand RegEx ... :)
can you optimize this ? ( automatically rename )
thank you again
(moved to first position)


Last edited by garry on January 3rd, 2007, 3:26 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 2nd, 2007, 9:37 pm 
Quote:
automatically rename
Replace the FileSelectFile section with a FileMove statement. Done.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 2nd, 2007, 9:57 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
script above works fine with automatically rename
but mine part is not so nice written ... :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2007, 12:13 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
moved to first position


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 3rd, 2007, 8:40 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
modified , while looking video, can record also audio to MP3 with mixmp3.exe


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2007, 4:55 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
Titan modified RegEx code


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2007, 7:56 am 
Offline

Joined: January 24th, 2007, 7:53 am
Posts: 2
Hmm how do u make this thing work? Please help I badly need to save vids from youtube and record the audio too..


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2007, 9:35 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2007, 10:31 am 
Offline

Joined: January 24th, 2007, 7:53 am
Posts: 2
Script? I don't see any script here or I just don't know it. Thanks anyway. :cry:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 24th, 2007, 12:58 pm 
Quote:
I don't see any script here
:shock: Me too!!!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 65 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You can post new topics in this forum
You can 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

Search for:
Powered by phpBB® Forum Software © phpBB Group