# $Id: convert.conf 14363 2007-11-05 05:29:34Z andy $ # # Configuration file for transcoding # # If you wish to create custom transcoding entries that won't be overwritten # by a new release of SqueezeCenter, create a custom-convert.conf file in the # SqueezeCenter root directory, or the root of the Plugins directory. # # On Debian, you can also create this file in # /etc/slimserver/custom-convert.conf # # first line is the source format, destination format and the destination device. Asterisk matches all # second line is the command line for the conversion # # First line format: # # # : Source music format: mp3, mov, ogg, wav, etc... # : Destination music format: Generally mp3, or # possibly aif or others depending on the types # your player supports. SliMP3 supports only # MP3. Squeezebox currently supports mp3, aif # and wav. Squeezebox2 adds support for Flac and WMA. # : currently slimp3, squeezebox, or *. # The * is a wildcard that matches all device # types. # : The ID of the destination device. The # ID of the destination device is the MAC address # of a SliMP3 or Squeezebox device, or the IP of # an HTTP client (such as your computer running # WinAmp). The '*' wildcard matches all hosts # # either or both of and # may be the '*' wildcard # # # $FILE$ is the absolute path to the source file # $RATE$ is the sample rate of the source file (in kS/sec) # $BITRATE$ is the bandwidth of the output stream in kb/s # [bin] is the executable binary for the encoder or decoder # - is a special command line that implies passthrough of data # specific combinations match before wildcards # AAC Input conversions mov mp3 * * [mov123] $FILE$ | [lame] --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ -r - - # [faad] -w -f 2 $FILE$ | [lame] --resample 44100 --silent -q $QUALITY$ -b $BITRATE$ -x -r - - mov aif * * [mov123] $FILE$ mov flc * * [mov123] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 - # [faad] -w -f 2 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian little --sign signed --channels 2 --bps 16 --sample-rate 44100 - #mov wav * * # [faad] -w -f 2 $FILE$ # Apple Lossless conversions alc mp3 * * [alac] -r $FILE$ | [lame] --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ -r -x - - alc wav * * [alac] -r $FILE$ alc flc * * [alac] $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian big --sign signed --channels 2 --bps 16 --sample-rate 44100 - # Ogg Conversions ogg ogg * * - ogg mp3 * * [sox] -t ogg $FILE$ -t raw -r 44100 -c 2 -w -s $-x$ - | [lame] --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ -r - - ogg aif * * [sox] -t ogg $FILE$ -t raw -r 44100 -c 2 -w -s $-x$ - ogg flc * * [sox] -t ogg $FILE$ -t raw -r 44100 -c 2 -w -s $-x$ - | [flac] -cs --compression-level-0 --totally-silent --endian big --channels 2 --bps 16 --sample-rate 44100 --sign signed - # Wav input conversions wav wav * * - wav mp3 * * [lame] --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ $FILE$ - wav flc * * [flac] -cs --totally-silent --compression-level-0 --skip=$START$ --until=$END$ -- $FILE$ # AIFF Input conversions aif aif * * - aif mp3 * * [lame] --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ $FILE$ - aif flc * * [flac] -cs --totally-silent --compression-level-0 --skip=$START$ --until=$END$ -- $FILE$ # FLAC Input conversions flc flc * * - flc mp3 * * [flac] -dcs --skip=$START$ --until=$END$ -- $FILE$ | [lame] --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ - - flc wav * * [flac] -dcs --force-raw-format --endian=little --sign=signed --skip=$START$ --until=$END$ -- $FILE$ # WMA Input conversions wma wma squeezebox2 * - wma mp3 * * [wmadec] -r 44100 -b 16 -n 2 $FILE$ | [lame] $-x$ --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ - - wma wav * * [wmadec] -r 44100 -b 16 -n 2 $FILE$ wma flc * * [wmadec] -r 44100 -b 16 -n 2 $FILE$ | [flac] -cs --totally-silent --compression-level-0 --endian little --sign signed --channels 2 --bps 16 --sample-rate 44100 - # MusePack Input conversions mpc mp3 * * [mppdec] --raw-le --silent --prev --gain 3 $FILE$ - | [lame] $-x$ --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ - - mpc aif * * [mppdec] --raw-be --silent --prev --gain 2 $FILE$ - mpc wav * * [mppdec] --raw-le --silent --prev --gain 2 $FILE$ - mpc flc * * [mppdec] --silent --prev --gain 2 $FILE$ - | [flac] -cs --totally-silent --compression-level-0 - # Monkey's Audio/APE Input conversions ape mp3 * * [mac] $FILE$ - -d | [lame] --resample 44100 $-x$ --silent -q $QUALITY$ --abr $BITRATE$ - - ape wav * * [mac] $FILE$ - -d ape flc * * [mac] $FILE$ - -d | [flac] -cs --totally-silent --compression-level-0 - # Wavpack Input conversions wvp mp3 * * [wvunpack] $FILE$ -wq --skip=$START$ --until=$END$ -o - | [lame] --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ - - wvp wav * * [wvunpack] $FILE$ -rq --skip=$START$ --until=$END$ -o - wvp flc * * [wvunpack] $FILE$ -wq --skip=$START$ --until=$END$ -o - | [flac] -cs --totally-silent --compression-level-0 - # Mpeg 3 Input conversions mp3 mp3 * * - #mp3 flc * * # [lame] --mp3input --decode -t --silent $FILE$ - | [flac] -cs --totally-silent --compression-level-0 - # special case for smart bitrates on mp3 input mp3 mp3 transcode * [lame] --resample 44100 --silent -q $QUALITY$ --abr $BITRATE$ $FILE$ - # special case for flac cue sheets flc flc transcode * [flac] -dcs --skip=$START$ --until=$END$ -- $FILE$ | [flac] -cs --totally-silent --compression-level-0 - # This example transcodes MP3s to MP3s, if the target machine has the # given MAC address. This rule will take precedence over the # previous rule because it's more specific. #mp3 mp3 squeezebox 00:02:dd:34:e9:62 # ./brute_filter $FILE$ -