[TAG] Recording OpenCourseWare free lectures

Ben Okopnik ben at callahans.org
Sun Jun 20 17:19:01 MSD 2004


On Sun, Jun 20, 2004 at 01:45:07PM +0100, Jimmy O'Regan wrote:
> 
> Taking one of the files from that page as an example, you could try:
> mplayer -dumpstream -dumpfile strang-1806-lec01-26aug1999-220k.rm 
> http://mfile.akamai.com/7870/rm/mitstorage.download.akamai.com/7870/18/18.06/videolectures/strang-1806-lec01-26aug1999-220k.rm 
> 
> (all one line).
> (Without the '-dumpfile' option and a filename to write to, MPlayer 
> writes to a file called stream.dump, but it's better to provide the 
> filename)

The easier way to do all that, instead of typing out those horrendous
names (one for each file, mind you :), is very similar to my 'clipurl'
tip, back in issue 78.

---------------------------------------------------------------------
#!/bin/bash
# Created by Ben Okopnik on Sun Jun 20 09:15:33 EDT 2004

url=`xclip -o`
mplayer -dumpstream -dumpfile ${url##*/} $url
---------------------------------------------------------------------

Now, all you have to do is right-click the link, choose "Copy Link
Location", and run the above script. It will do the same thing as Jimmy's
suggestion. Obviously, you need to have 'xclip' and 'mplayer' installed.


* Ben Okopnik * okopnik.freeshell.org * Editor-in-Chief, Linux Gazette *
-*- See the Linux Gazette in its new home: <http://linuxgazette.net> -*-




More information about the TAG mailing list