Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Save iTMS Music videos in iTunes 4.7.1' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Save iTMS Music videos in iTunes 4.7.1
Authored by: maksim on Jul 07, '05 08:46:17PM

Thanks to fragmentoflight, I made a little bash script.

You need tcpflow, that you could find here : http://www2.entropy.ch/download/tcpflow-0.21.pkg.tar.gz

For the newbies -> How to make a script :
1) put the code in a simple texte file
2) in the terminal, make it executable in typing "chmod u+x extractor" (if you have named your file 'extractor', of course)
3) launch it on typing "./extractor"


#! bin/bash
sudo echo
sudo -b /usr/local/bin/tcpflow -c -i en1 > dump.txt
echo "Hit Return when iTunes begin to play"
read something
set `ps -a | grep tcpflow`
sudo kill -9 $1
IFS=" "
set `grep "Host: [a-z][0-9]" dump.txt | grep "phobos"`
variable0=$2
IFS="."
set $variable0
variable0=$1
IFS=" "
set `grep "Features" dump.txt`
variable1=$3
IFS=""
variable2="$variable0.phobos.apple.com$variable1"
/bin/rm dump.txt
curl -O $variable2



How to use ?
1) Go to iTunes, select the video that you want, but DON'T play. Just be ready to play on clicking on the size.
2) Launch the script (on the terminal, typing "./extractor", and enter your password).
3) Go back to iTunes, click on video size you want and wait that iTunes begins to play.
4) Now, go back to the Terminal, and hit `Return`.

That's all, the video will be save in the same folder than the script.



[ Reply to This | # ]
Save iTMS Music videos in iTunes 4.7.1
Authored by: Ganymede on Jul 08, '05 05:43:43AM

Hi, I'm hanging on by a thread!! :rolleyes:

I downloaded and installed tcpflow. I copied the textfile, made it executable per your instructions. I keep getting this error:

ganymede@GanyG4 /Users/ganymede/Applications % chmod u+x itmsvidext
ganymede@GanyG4 /Users/ganymede/Applications % ./itmsvidext
tcsh: ./itmsvidext: Exec format error. Binary file not executable.
Exit 1

I put the file in my local Applications directory, and I'm in that dir when I try to run it in the terminal. Does it have to be in one of the special "path" folders? (Also, how do I add directories to my pathlist??)

Why does the error come from tcsh, my interactive shell - the script specifies bash. What do I need to change?

My ethernet is en0. Do I need to change the occurrence of en1 in the script? I've already tried it both ways, the error remains the same.
I tried making the file using Word. BBEdit, and textEdit.

I'm running OSX 10.3.9, iTunes 4.8, & QuickTime 6.5.2 on a 733mHz G4 (Digital Audio) with a gig of memory. I am still able to capture the videos "the old way" from the /private/tmp/501/TemporaryItems directory - I just snagged ColdPlay's Speed Of Sound.

I greatly appreciate any advice on the Unix/Terminal/Command File topics - thanks for all your hard work, and for sharing your knowledge in these forums...;)

Ganymede



[ Reply to This | # ]
Save iTMS Music videos in iTunes 4.7.1
Authored by: fragmentoflight on Jul 10, '05 01:06:44AM

Just type sudo sh <filename>



[ Reply to This | # ]
Save iTMS Music videos in iTunes 4.7.1
Authored by: jedik on Jul 10, '05 01:03:32PM
I had to change the first line to:
#!/bin/bash
for the shell script to work. Worked like a charm, BTW. :)
Cheers

---
:: Jedi Knight ::
-- Mac Rules! --

[ Reply to This | # ]

Save iTMS Music videos in iTunes 4.7.1
Authored by: BSS on Jul 12, '05 12:15:02PM

Obviously, I'm a newbie. I don't understand the front bit about making a script and run it in Terminal. Help. Thanks in advance.

I have tcpflow installed.



[ Reply to This | # ]
Save iTMS Music videos in iTunes 4.7.1
Authored by: BSS on Jul 16, '05 03:10:49PM

Help?



[ Reply to This | # ]
Save iTMS Music videos in iTunes 4.7.1
Authored by: Ganymede on Jul 17, '05 08:31:40AM

I made the change Jedik suggested, still no luck. Same error as before:

tcsh: ./itmsvidext: Exec format error. Binary file not executable.
Exit 1

When I switch to bash to run it, the error message is shorter still:

can't execute binary

?? Help??



[ Reply to This | # ]