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


Click here to return to the 'A shell command to save iTunes Music Store videos' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A shell command to save iTunes Music Store videos
Authored by: shortfuse on May 14, '05 12:10:49PM

Under Tiger with Quicktime 7 and iTunes 4.8, the video's are stored in

/var/tmp/folders.501/TemporaryItems/QTXXXXXXXXXX
(where XXXXXXX is a bunch of numbers)

They won't play when copied out or renamed.
If you read the file in BBEdit or something the first 4 chars of the file are qtch, the file itself is as you'd expect about 35mb.

Now I'm thinking that either the file header is missing, or there is an extra header tagged on to prevent QuickTime recognising the format.

Any Idea's?



[ Reply to This | # ]
A shell command to save iTunes Music Store videos
Authored by: uochris on May 14, '05 12:50:09PM

Pretty much a totally different work around but this does work for me. I use tcpflow http://www.entropy.ch/software/macosx/#tcpflow

I start out by going to the page in iTunes where it asks what size you want the video to play at. I then switch to the terminal and enter

$ sudo tcpflow -c

Then I click on the large video link and then switch back to the terminal and hit control-c to stop tcpflow. I then hit command-F and search for .mov which is the video file. You'll see something like this GET /Features/y2005/m04/d14/h16/dj.vkcolxlk.mov

Just below that you should see a line that says something like Host: a1695.phobos.apple.com

Now I put the pieces together and use curl to download the movie.

$ curl -O http://a1695.phobos.apple.com/Features/y2005/m04/d14/h16/dj.vkcolxlk.mov

And I now have the music video.

This is with 10.4 and iTunes 4.7.1



[ Reply to This | # ]
A shell command to save iTunes Music Store videos
Authored by: harperska on May 20, '05 05:07:28PM

this hint works perfectly for me, using tiger 10.4.1 and iTunes 4.8 (all the latest). Now maybe someone with a bit more scripting experience can make this automated?

I compared the .qtch file from /var/tmp/ and the .mov file that I downloaded directly in BBEdit. The headers are completely different, but the body of the files appear to be identical, so there does not appear to be any encryption of content.



[ Reply to This | # ]