M4A faad
From JinzoraWiki
Introduction
In order to get Jinzora to stream aac or m4a encoded music files, you will need to install an aac decoder such as faad.
Install AAC decoder (faad)
There are several ways you can install faad, depending on which linux distro you're using. I'm using Ubuntu and I simply installed it with the following command.
sudo apt-get install faad
Setup Jinzora to use faad for m4a decoding
Edit your settings.php file for Jinzora. This file should be in your jinzora2 directory under your web root. Here are the parameters you will need to change to enable faad to decode m4a.
$allow_resample = "true"; ... $path_to_mplayer = "/usr/bin/faad"; $mplayer_opts = "-f 1 -o /dev/stdout"; ... $always_resample = "flac|mpc|wv|wav|shn|mp4|ape|ofr|ogg|wma|m4a"; $always_resample_rate = "128";
This tells Jinzora to use faad instead of mplayer to decode m4a files. The option -f 1 tells it to decode to a wav file and -o /dev/stdout sends the output to stdout for lame to pick it up and process it. Make sure you have m4a in the list of formats to always resample. It should be by default. Save the settings.php file and reload Jinzora in your web browser. You should now be able to stream m4a files.
- Note: This should work regardless of using playlists or an embedded player, however, I've only tested it with the embedded fsmp3 player.
Cheers
