Site logo

A collection of things.
By Chris James Martin

Download Flash (or any other) Video on OSX with Curl

30 Nov 2006 — Atlanta, GA

So say you come across a video online that is so great you would really like to save a copy locally to watch over and over again (assuming you are allowed to). For sites such as YouTube and the other majors this might not be a problem… there are numerous tools available to grab content. However, some sites don’t work with the commonly available tools, or maybe you would just rather use tools that are already included in OSX, well here’s how.

Say you want to grab a wonderful video about “Happy Feet” from Reuters.com…

  1. Using Safari navigate to the page that contains the video. Picture1

  2. Open the “Activity” window from the Safari Window menu. Picture2

  3. In the Activity window, find the page that contains the video, and click on the triangle to show all the elements loaded in the page. Picture3

  4. Scan the list until you find a video file (in this case a .flv flash video file). It is easy to pick out the video files as they are generally much larger in size than everything else. Also note that a page might contain more than one video file (if the movie first loads with an advertisement etc.) you generally want to pick the biggest one. Picture4

    Edit (Dec 1, 2006) It seems that some sites (I’ve seen it at YouTube) actually load the video without the extension. In this case, just look for a large file (it’s called get_video on YouTube) and add the proper extension to the end (ie. for YouTube, .flv).

  5. Double click on the url of the video file and a new Safari window will open. At this point, Safari might start downloading the video. If it does not and a bunch of random text starts displaying in the browser that’s ok, continue by selecting the url and copying it. Picture5

  6. Open up a terminal (Terminal.app is located in the Utilities folder inside your Applications folder). In the terminal, type (leave out the “<>”):
    $ curl <paste> -o <where>/<what>
    

    Make sure that whatever you chose to name the video ends with the same extension as the original file, in this case .flv. Here’s what it would look like for the “Happy Feet” video:

    $ curl http://int1.fp.sandpiper.net/reuters/t_assets/20061127/a72e...f2943.flv -o ~/Desktop/HappyFeet.flv
    

    This would save the video to my desktop and name it HappyFeet.flv.

  7. Press enter and you should see something like this as the video downloads: Picture7

  8. When it’s done, you should have a copy of the video file on your local disk. You’ll need an application that can play flash video to watch .flv files, I recommend VLC or the Perian plugin for QuickTime. Picture8
  • Enjoy!

(Un)Official Flickr Badge

30 Mar 2006 — Athens, GA

I randomly found a site tonight that all Flickr lovers will enjoy, create your own personal Flickr badge.

I'm a Professional.

“I’m a Professional!”

Changing your Darwin / Quicktime Streaming Server Password

11 Dec 2005 — Athens, GA

Many people may not realize that if you install Apple’s “public source” Darwin Streaming Server onto a Mac running a normal version of OSX (not server), it really seems to install the exact same QuickTime Streaming Server software that comes with OSX Server (minus some UI tools). Well, I found this out earlier this year when I installed DSS on my PowerBook to play with streaming content to a Nokia 6620.

I subsequently forgot that it was installed on my PowerBook until tonight when I wanted to run phpMyAdmin and I was getting errors because… QTSS has been running this whole time (oops).

Of course, I didn’t remember what my username or password was for the QTSS, and I found that it was quite a pain to hunt down how to change it (doesn’t seem to be in the docs from Apple), so I will post the method here for anyone else with this problem.

Open a terminal and enter:

sudo cat /Library/QuickTimeStreaming/Config/qtgroups

You will see something like:

admin: yourQTSSuser

Now to change the password, enter:

sudo qtpasswd yourQTSSuser

You may now go to http://localhost:1220 with your new password and carry on.