"My Home Automation Projects"

Transcoders - Transcode

Please also read the Disclaimer

MediaNet - Transcoder Modules - Transcode

Purpose: to transcode between file formats

This module uses command line utilities to transcode a file to mp3

You also require the Transcoders package. Download and copy  the files into .\Transcoders\Transcoding\Transcoders\ folder

LOADER.xml

<loader>
    <instance>
        <transcoder module="TRANSCODE" enabled="n" ext="wma" />
            to enable set enabled="y", ext= tells the core what file type this transcoder instance deals with
        <settings copy="y" />
            if the transcoder locks the source file then copy="y" will make a copy in the "Temp" folder before transcoding starts
       
<settings samplerate="44100" />
            specify the default sample rate (44100 is the default if this entry is missing)
       
<settings bitrate="128" />
            specify the default bitrate (128 is the default if this entry is missing)
        <settings cmd="wmadec.exe {sourcefile} | lame.exe -r -x -t -b {bitrate} --resample {samplerate} --silent - -" />
            cmd= specifies the command line used to transcode
    </instance>
</loader

This module comes with loader.xml files to support transcoding of WMV, WAV, FLAC and OGG

It also comes with a loader.xml for MP3 files for use by the Player device, should the user wish to resample mp3's for slow connections