Re: [ecasound] How to find out if an mp3/ogg file is mono or stereo?

From: Matthias Geier <matthias.geier@email-addr-hidden>
Date: Wed May 29 2013 - 20:17:33 EEST

Hi Julien.

On Wed, May 29, 2013 at 1:22 PM, Julien Claassen <julien@email-addr-hidden> wrote:
> I don't know, how to do it in terms of Ecasound. I can only tell you, that
> to read MP3 and OGG files, Ecasound normally uses external applications
> ogg123 and mpg123 - or mpg321 . You could try the sndfile input object, that
> will use libsndfile and may give you much better results.

Thanks, I didn't know about the 'sndfile' option.
This works perfectly for OGG-files (and for WAV and FLAC as before).

I just have to change one line in my original example:

ai-add sndfile,house_lo.mp3

libsndfile doesn't support MP3, so those still don't work.

But anyway, I can live with WAV/FLAC/OGG.

> Otherwise, you can just use the external sndfile-info tool and parse that
> output, it's easy to parse by machine.

As this uses libsndfile, it doesn't work for MP3s either.

> I hope this helps somehow.

Yes, thank you!

Thanks for the hint about the 'file' command.
This might work, but I prefer if everything can be done with ecasound.
I'm glad that OGG works now, and I can live without MP3 support.


Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
Ecasound-list mailing list
Received on Wed May 29 20:15:01 2013

This archive was generated by hypermail 2.1.8 : Wed May 29 2013 - 20:15:01 EEST