|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
AAC batch conversion with Ecasound?Hi, we have ecasound installed on our file server with 1 T of mp3 files.
We need to convert all our mp3 files (mostely 100 Mo mp3 files) in AAC 96kbps. Is there a way to do it in batch with ecasound? If not does anybody have a alternate solution? Thanks a lot for your help. Javier ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Ecasound-list mailing list Ecasound-list@... https://lists.sourceforge.net/lists/listinfo/ecasound-list |
|
|
Re: AAC batch conversion with Ecasound?Hello,
> Hi, we have ecasound installed on our file server with 1 T of mp3 files. > We need to convert all our mp3 files (mostely 100 Mo mp3 files) in AAC > 96kbps. > > Is there a way to do it in batch with ecasound? i don't know AAC, but can give you a more general recipe to do batch-conversion with ecasound for example, you have two directories: mp3/ contains the input MP3-files (*.mp3) aac/ will contain the output AAC files (*.aac) for i in mp3/*; do ecasound -i $i -o aac/`basename $i .mp3`.aac; done above is quick-and-dirty and should work filenames without characters that need to be escaped for the shell to interpret them in the correct way (spaces, parentheses, ...); a more robust variant that does work with any kind of filenames can be made using 'find ... -print0 |xargs -0 ...' more in particular now, you'll also need faac (an AAC encoder), and configure it for 96 Kbps encoding (using the ecasound "ext-cmd-aac-output" configuration option -- see the ecasoundrc and faac manpages for that) greetz, koen. ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Ecasound-list mailing list Ecasound-list@... https://lists.sourceforge.net/lists/listinfo/ecasound-list |
|
|
Re: AAC batch conversion with Ecasound?On Wed, Jul 15, 2009 at 3:14 AM, Xavier G<j@...> wrote:
> Hi, we have ecasound installed on our file server with 1 T of mp3 files. > We need to convert all our mp3 files (mostely 100 Mo mp3 files) in AAC > 96kbps. > > Is there a way to do it in batch with ecasound? > > If not does anybody have a alternate solution? > > Thanks a lot for your help. > As long as you realize that changing from one lossy format to another will create generation loss[1] and possible significant degradation of sound, you're probably best off making a line to decode with mpg123 and piping the output to faac, ecasound can probably do it with some overhead with some -i:<in> -o:<out> arguments. You should not do this if you're going to either redistribute or archive these AAC files. 1. http://en.wikipedia.org/wiki/Transcode -- avuton -- All opinions stated above are mine and do not necessarily reflect those of the US secret service. ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Ecasound-list mailing list Ecasound-list@... https://lists.sourceforge.net/lists/listinfo/ecasound-list |
|
|
Re: AAC batch conversion with Ecasound?Hi,
We are using ecasound for 4 yeras now and love it :) We have a question : Our website members are uploading large mp3 audio files days after days on our servers. We currently try to convert on the fly these mp3 files once uploaded with ecasound to aac files We use this command for i in mp3/*; do ecasound -i resample,96000,$i -o aac/`basename $i .mp3`.aac; done The result is fine, but it seems we get aac files encoded with vbrIs there anything to do in the command or in the settings to get constant bitratre instead of variable? Thanks a lot Xavier Galliot +33682833615 find below the content of out ecasounrc file : ecasound-version = 2.4.6.1 midi-device = rawmidi,/dev/midi default-output = autodetect default-audio-format = s16_le,2,44100,i default-to-precise-sample- rates = false default-to-interactive-mode = false default-mix-mode = avg bmode-defaults-nonrt = 1024,false,50,false,100000,true bmode-defaults-rt = 1024,true,50,true,100000,true bmode-defaults-rtlowlatency = 256,true,50,true,100000,false resource-directory = /usr/share/ecasound2.2/ecasound resource-file-genosc-envelopes = generic_oscillators resource-file-effect-presets = effect_presets ladspa-plugin-directory = /usr/lib/ladspa ext-cmd-text-editor = pico ext-cmd-text-editor-use-getenv = true ext-cmd-wave-editor = ecawave ext-cmd-mp3-input = mpg123 --stereo -r %s -b 0 -q -s -k %o %f ext-cmd-mp3-output = lame -b %B -s %S -x -S - %f ext-cmd-ogg-input = ogg123 -d raw -o byteorder:%E --file=- %f ext-cmd-ogg-output = oggenc -b %B --raw --raw-bits=%b --raw-chan=%c --raw-rate=%s --raw-endianness 0 --output=%f - ext-cmd-mikmod = mikmod -d stdout -o 16s -q -f %s -p 0 --noloops %f ext-cmd-timidity = timidity -Or1S -id -s %s -o - %f ext-cmd-flac-input = flac -d -c %f ext-cmd-flac-output = flac -o %f -f --force-raw-format --channels=%c --bps=%b --sample-rate=%s --sign=%I --endian=%E - ext-cmd-aac-input = faad -w -b 1 -f 2 -d %f ext-cmd-aac-output = faac -P -o %f -R %s -b 96 -C %c - 2009/7/15 Xavier G <j@...> Hi, we have ecasound installed on our file server with 1 T of mp3 files. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Ecasound-list mailing list Ecasound-list@... https://lists.sourceforge.net/lists/listinfo/ecasound-list |
|
|
Re: AAC batch conversion with Ecasound?Hi,
On Thu, 29 Oct 2009, Xavier G wrote: > Our website members are uploading large mp3 audio files days after days on our servers. > We currently try to convert on the fly these mp3 files once uploaded with ecasound to aac files > > We use this command > for i in mp3/*; do ecasound -i resample,96000,$i -o aac/`basename $i .mp3`.aac; done btw, one thing to note that you lose some audio quality in this conversion (from one lossy encoding to another, e.g. from mp3 to aac). You are probably already aware of this, but just as a reminder to others. > The result is fine, but it seems we get aac files encoded with vbr > http://1clickcd.com/convert/aac/file-88815-1256688222.aac Ecasound uses 'faac' utility [1] to encode aac files. You can alter the bitrate settings by modifying the 'ext-cmd-aac-output' setting in ecasoundrc. E.g. changing... > ext-cmd-aac-output = faac -P -o %f -R %s -b 96 -C %c - ... unfortunately, it would seem faac doesn't support CBR mode at all. So your best bet is to play with '-q' and '-b' to reduce the variance. E.g. faac 1.24 has options: Quality-related options: -q <quality> Set default variable bitrate (VBR) quantizer quality in percent (default: 100, averages at approx. 120 kbps VBR for a normal stereo input file with 16 bit and 44.1 kHz sample rate; max. value 500, min. 10).Set quantizer quality. -b <bitrate> Set average bitrate (ABR) to approximately <bitrate> kbps. -c <freq> Set the bandwidth in Hz (default: automatic, i.e. adapts maximum value to input sample rate). One option would be to plug in another AAC codec to ecasound, but there are at least no open-source options. One closed-source option is: http://www.audiocoding.com/nero_aacenc.html ... that requires a license for commercial use, but works in Linux. You can't plug that to ecasound (almost works, but it require a RIFF header written to its stdin which ecasound cannot do), so you have to run it separately. [1] http://www.audiocoding.com/ ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Ecasound-list mailing list Ecasound-list@... https://lists.sourceforge.net/lists/listinfo/ecasound-list |
| Free embeddable forum powered by Nabble | Forum Help |