Re: How to find out if an mp3/ogg file is mono or stereo?
Matthias Geier <[email protected]> Wed, 29 May 2013 19:17:33 +0200
| Newsgroups | gmane.comp.audio.ecasound.general |
|---|---|
| Message-ID | <CAFesC-efUXksn4M4_kScsqF5yFK-zW86XrdY_Fx1j_zE4rVzjw@mail.gmail.com> |
Hi Julien. On Wed, May 29, 2013 at 1:22 PM, Julien Claassen <[email protected]> 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! @Willem: 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. cheers, Matthias ------------------------------------------------------------------------------ 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. http://p.sf.net/sfu/appdyn_d2d_ap1 _______________________________________________ Ecasound-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ecasound-list