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


Click here to return to the 'Save QuickTime 7 movies to disk' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Save QuickTime 7 movies to disk
Authored by: turnerm5 on May 05, '05 05:10:38PM
Alright... I use this for getting music videos off iTunes now that all the files end up as .qtch files. Anyway... Install tcpflow, there is a Mac OS X binary, so it is no hassle. Get iTunes ready to play the video (at the page where it says Small or Large). Run the following code and then immediately start downloading the movie. Then stop the movie by hitting the back button in iTunes. I am using an Airport, so you may have to change the en1 to an en0 if you are directly connected.
sudo /usr/local/bin/tcpflow -i en1 port 80
A few files will have been created in your working directory, now we have to go find the good bits. The file names are based on the originating and destination IP addresses, so find the one going from your computer to Apple's servers. There may be a few files. Open them in TextEdit and find the one that says something like
GET /Features/y2005/m04/d28/xxx/dj.tpgttjgz.mov 
The host is also stated lower in the file. In this case it was
 a928.phobos.apple.com 
So, to get this music video, just go to
http://a928.phobos.apple.com/Features/y2005/m04/d28/xxx/dj.tpgttjgz.mov 
(I blacked out some of the numbers, so it can't be directly linked. Do it yourself) Ask any questions if you have them.

[ Reply to This | # ]
Save QuickTime 7 movies to disk
Authored by: victory on May 05, '05 10:08:43PM

turnerm5, that's a really useful hint. After playing with the method you described, I realized that there's a way to get the domain name and URL path without having tcpflow create a bunch of output files to rummage through.

sudo tcpflow -c -i en0 port 80 | grep -oE '\<GET *.*\.mov.*HTTP/1.1 *\>|Host: *.*'

Which will give the following style of ouput:

tcpflow[4139]: listening on en0
Host: ax.moon.xzxzxz.com.xzxzxz.net
Host: metrics.xzxzxz.com
GET /Features/xzxz/xzxz/xzxz/xzxz/dj.xzxzxz.mov HTTP/1.1
Host: xzxz.xzxz.apple.com

Granted, there's still some ambiguity as to which host name to choose, and one still has to reconstruct the final download URL by C&P-ing, but at least it puts everything in one place.

(Of course, the next logical step would be for someone to wrap all this together with a bit of logic in an Applescript or Perl-LWP app or something...)



[ Reply to This | # ]
Save QuickTime 7 movies to disk
Authored by: turnerm5 on May 06, '05 12:58:19PM

Hey thanks, I was planning to do it all in one line, just never got around to it. Saved me the time!



[ Reply to This | # ]
Save QuickTime 7 movies to disk
Authored by: skippingrock on May 10, '05 02:57:33PM

maybe it is better if it is kept difficult... that way this way won't be plugged in the next version of iTunes....



[ Reply to This | # ]