Chris J | 1 Jan 2009 02:08
Favicon

Re: faad2/faac libraries

Chris Bagwell wrote:
> robs wrote:
>> --- On Wed, 24/12/08, Chris J <cpj1 <at> visi.com> wrote:
>>  
>>> Is anyone working on patch to get  sox working with the
>>> faad2/faac libraries?
>>>     
>>
>> Not AFAIK; please go ahead, all patches welcome!
>>
>> Cheers,
>> Rob
>>
>>   
> and just to clarify... we don't support those libraries directly but 
> we support linking in ffmpeg which can link in faad2/faac.  Requiring 
> ffmpeg for just aac support is a little heavy handed so patches to 
> support faad2/faac directly are welcome.
>

Dang.  I was hoping someone else already had a vested interest.  If I do 
it, it'll probably take 3 times as long compared to a better 
programmer.  Give me a week or two, I'll go through the source code and 
see if I can build an assessment of what it would take to integrate the 
libraries into Sox.

On the bright side, after working with the code, I found that Sox 
compiles cleanly using the Sun Studio C compiler, and FAAD2 will compile 
with a couple of source code tweaks.  I'll have to dig through my notes 
to see what I did.
(Continue reading)

Chris Bagwell | 1 Jan 2009 02:24

Re: AAC support via FFMPEG?

Jugdish wrote:
>> I have not had a chance to try this myself but you may be able to get it
>> working with an addtional option.  Right now we do not directly map aac
>> files to ffmpeg handler.  We do map mp4 and m4a file extensions though
>> which I think are the same thing (I don't have any non-encrypted aac
>> files so don't really know if they are the same for sure).
>>
>> Try something like this:  play -t ffmpeg input.aac
>>
>> Let us know if it works and we can make a small change to map aac file
>> extensions to ffmpeg handler.
>>     
>
> Gave this a try, and produced this error:
>
>   
>> play -t ffmpeg audio.aac
>>     
> play ffmpeg: ffmpeg could not open CODECs for audio.aac
> play formats: can't open input  `audio.aac':
>
> Does this mean I don't have things correctly configured, or just that
> it doesn't know how to decode AAC?
>
>   
Since I've not used ffmpeg for aac support yet, I'm not sure if it tells 
us anything.  It will be helpful to verify that your version of ffmpeg 
actually has faac/faad support linked in.  There is probably an easier 
way but try this.

(Continue reading)

Jugdish | 1 Jan 2009 23:52
Picon

Re: AAC support via FFMPEG?

> Run this commnand on where ever you installed sox:
>
> ldd /usr/local/lib/sox/libsox_fmt_ffmpeg.so

OK, turns out I am missing that file. My lib/sox directory is actually empty.

I thought that I was correctly linking SoX to the ffmpeg libraries,
but maybe not. Here's what I did for the compile:

export CPPFLAGS="-I/home/jugdish/apps/ffmpeg-r16391/include"
export LDFLAGS="-L/home/jugdish/apps/ffmpeg-r16391/lib
-Wl,-rpath,/home/jugdish/apps/ffmpeg-r16391/lib"
./configure --without-libltdl --prefix=/home/jugdish/apps/sox-14.2.0
make
make install

I noticed that during the configure step, it printed this out:

checking for FFMPEG... no
checking libavformat/avformat.h usability... yes
checking libavformat/avformat.h presence... yes
checking for libavformat/avformat.h... yes

The fact that it said it couldn't find FFMPEG concerned me, but then
at the end of the output from configure, it said this:

Debugging build................... no
External module support........... no
ALSA driver....................... yes
libao driver...................... no
(Continue reading)

Chris Bagwell | 2 Jan 2009 04:33

Re: AAC support via FFMPEG?

Jugdish wrote:
>> Run this commnand on where ever you installed sox:
>>
>> ldd /usr/local/lib/sox/libsox_fmt_ffmpeg.so
>>     
>
> OK, turns out I am missing that file. My lib/sox directory is actually empty.
>
>   
I neglected to mention modules are option features... So you did correct 
by looking at libsox.  Your output below shows libfaac and libfaad as 
linked in so all looks good from that point of view.  Its probably more 
a bug in SoX then that it can't handle aac files.  Not sure why as I 
thought ffmpeg would just auto-detect it was an aac and process it.

I'm not much more to offer right now... If you want to email me directly 
a small aac file, I can do some debugging and get it working some 
time... it may be a while though.

Chris
> I thought that I was correctly linking SoX to the ffmpeg libraries,
> but maybe not. Here's what I did for the compile:
>
>   
>         libavformat.so.52 =>
> /home/jugdish/apps/ffmpeg-r16391/lib/libavformat.so.52
> (0x0000002a95938000)
>         libavcodec.so.52 =>
> /home/jugdish/apps/ffmpeg-r16391/lib/libavcodec.so.52
> (0x0000002a95b1f000)
(Continue reading)

AlgoMantra | 2 Jan 2009 07:57
Picon

Re: microsound using sox

Thanks for the corrections, Rob!

The repeat effect is still working on my version Sox 14.0.0

Oh, happy sox-ing in 2009....

-------    -.-
1/f   )))  --.
-------    ...
http://www.algomantra.com

------------------------------------------------------------------------------
_______________________________________________
Sox-users mailing list
Sox-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
robs | 2 Jan 2009 09:31
Picon
Favicon

Re: microsound using sox

--- On Fri, 2/1/09, AlgoMantra <algomantra <at> gmail.com> wrote:
> The repeat effect is still working on my version Sox 14.0.0

Word of warning: the bugs in repeat have been there for some time; they are (from the W.I.P. ChangeLog):

  o Fix `repeat' sometimes stopping repeating too soon.  (robs)
(bug introduced in 12.18.1)

  o Fix `repeat' sometimes repeating wrong audio segments.  (robs)
(bug in original implementation: 12.17.5)

Both are `intermittent' and relatively rare, so with SoX 14.0.0 (etc.), you may get away with it sometimes,
but not others :-(

/Rob

------------------------------------------------------------------------------
Suganya Rajarethinam | 3 Jan 2009 11:22
Picon

Can't open Decoded Data

Hi,

       We are using Sangoma tapping system to capture G711 data from an ISDN PRI
line. The data is captured in a hexadecimal format by which we are storing the data
into a file with al extension and we tried to decode the data into .wav/.au format
using Sox utility.

The following Sox command will be used to decode the captured data:

sox cap.al -t raw -r 8012 cap.wav

But we can't open the converted format. Please help to do this.



-
Regards,
Suganya R.

------------------------------------------------------------------------------
_______________________________________________
Sox-users mailing list
Sox-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users
robs | 3 Jan 2009 11:45
Picon
Favicon

Re: Can't open Decoded Data

--- On Sat, 3/1/09, Suganya Rajarethinam <mani.suganya <at> gmail.com> wrote:
> sox cap.al -t raw -r 8012 cap.wav
> 
> But we can't open the converted format. Please help to
> do this.

Please try
  sox -r 8012 cap.al cap.wav

------------------------------------------------------------------------------
robs | 3 Jan 2009 13:39
Picon
Favicon

Re: Can't open Decoded Data

--- On Sat, 3/1/09, Suganya Rajarethinam <mani.suganya <at> gmail.com> wrote:
> The following error message will be displayed.
> 0xC00D1199: Cannot play the file

Hmmm... In that case, please try the following:

  sox -r 8012 -n test.al synth 1 gain -3
  play test.al

  sox -r 8012 test.al test.wav
  play test.wav

Both `play's should play a sine wave tone for 1 sec.  If they do, then SoX is working and you should be able to
substitute `test.al' for any other .al file in the last 2 commands.

HTH,
Rob

------------------------------------------------------------------------------
jeff covey | 5 Jan 2009 03:04
Picon
Favicon
Gravatar

Re: splitting an audio file on a recurring sound

On Mon, Dec 22, 2008 at 2:06 PM, Chris Bagwell <chris <at> cnpbagwell.com> wrote:

> Nope, no support.

ok, thanks!

--

-- 
jeff covey
http://jeffcovey.net/

------------------------------------------------------------------------------

Gmane