2010年5月

Flash

I added a background picture to a flash object embedded in a web page. In order to make the background picture can be displayed through the flash animation, I added oneobject parameter:

The whole html code are as follows:

The above code can work properly when a user is using Internet Explorer (IE). However, when a user is using Firefox, the background of the flash is blank. The reason is the Firefox does not recognize the

So, I need to add it to the embed src as follows:

For the Firefox browser, you also need to set align="..." to make it be displayed in the right position.

APE Monkey Audio

1. Using FFMpeg or JMAC to Convert ape to wav:

.ape is the file extension for Monkey's Audio Files. Monkey's Audio is a pseudo-free lossless audio codec, like flac.

If you don't have ffmpeg, you can yum (for Fedora) or apt-get (for Ubuntu) to install it.

yum install ffmpeg or apt-get install ffmpeg

After you installed the ffmpeg, you can do this:

ffmpeg -i CDImage.ape CDImage.wav

CDImage.ape is the APE file you want to convert.

For whatever reason, if failed to convert the APE to WAV using ffmpeg, you could use JMAC to convert it. You need to make sure the Java Runtime Environment is installed. Then, you can download the JMAC package from http://sourceforge.net/projects/jmac/files/.

Only file you need is the jmac.jar. After unzipping JMAC package, you can find the location of the jmarc.jar and use it in the following command:

java -jar /path_to_the_file/jmac.jar d CDImage.ape CDImage.wav

2. Split APE with CUE:

You need to install bchunk to split the APE files. You can install it using yum or apt-get too.

yum install bchunk or apt-get install bchunk

After you installed the bchunk, you can do manual splitting as follows:

bchunk -w CDImage.wav CDImage.cue result

Where:
CDImage.wav is your large wav file CDImage.cue is the cue file result is the prefix for your wav songs (which gives you result01.wav, result02.wav...)

3. Burn to Audio CD:

You can use Brasero Disc Burner to burn the wav songs to a Audio CD.

Reference: http://gimpel.gi.funpic.de/wiki/index.php?title=Howto:convert_ape_to_wav/mp3/ogg_on_Linux/