Friday, September 24, 2004

Converting a stream to a local mp3

If you ever need to get a copy of an audio stream broadcast (real etc) as a local file to time delay when you listen to it - say hypothetically that the BBC had just put a radio series online ;)

mplayer rtsp:// -ao pcm -aofile myfile.wav

this produces a very large wav file (about 300Mb per half hour) that can be compressed easily into an mp3 with lame via

lame myfile.wav

this will produce a much smaller (27Mb in my case) perfectly formed mp3 file for you to enjoy.

Wednesday, September 22, 2004

More On Cruisecontrol and Display with yDoc

In a previous entry I showed a configuration entry to allow the use of headless graphics generation on unix machines.

I have been evaluating yDoc which is a nice tool for generating jpg/svg UML object/class diagrams into the Javadoc process of a build phase. Its a great tool and I will be buying a copy.

The issue I had is that the ant javadoc tag doesn't seem to honor the cruise headless command detailed earlier. After a little more searching through the javadocs for doclets I have found that you can achieve the same thing with the following tag entry :

<javadoc destdir="${javadoc.base.dir}"
additionalparam="-J-Djava.awt.headless=true -breakiterator"

this passes the headless flag onto the running javadoc process.