Array
(
    [0] => Warning
    [1] => Undefined array key "language"
    [2] => /home/whmcsdev/public_repo/wbteampro.major-release/installation/modules/addons/wbteampro/initialize.php
    [3] => 282
)
Array
(
    [0] => Warning
    [1] => Undefined property: stdClass::$state
    [2] => /home/whmcsdev/public_repo/wbavatax.master/installation/modules/addons/wbavatax/hooks.php
    [3] => 942
)
Array
(
    [0] => Deprecated
    [1] => htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
    [2] => /home/whmcsdev/public_repo/wbavatax.master/installation/modules/addons/wbavatax/hooks.php
    [3] => 279
)
Converting Audio Files - Knowledgebase - WHMCS Dev
Dev License: This installation of WHMCS is running under a Development License and is not authorized to be used for production use. Please report any cases of abuse to abuse@whmcs.com

Converting Audio Files Print

  • 1

This is a great little bit of code for converting a folder of M4A files into MP3 files to be used by a Flash Audio player. You can find more about converting files on a Linux server at this wonderful Wiki page.

#!/bin/bash
for i in *.m4a; do
# out=$(echo $i | sed -e 's/.m4a//g')
# mplayer -ao pcm "$i" -ao pcm:file="${i%.m4a}.mp3"
faad -o - "$i" | lame - "${i%.m4a}.mp3"
done

Was this answer helpful?

« Back

Powered by WHMCompleteSolution