[FFmpeg-user] Encoding raw alaw to PCM

Danie Wessels danie.wessels at live.co.za
Fri Oct 28 10:32:24 CEST 2011



 

> Date: Fri, 28 Oct 2011 10:09:32 +1100
> From: amit.dor.shifer at gmail.com
> To: ffmpeg-user at ffmpeg.org
> Subject: Re: [FFmpeg-user] Encoding raw alaw to PCM
> 
> On Fri, Oct 28, 2011 at 1:15 AM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> 
> > Amit Dor-Shifer <amit.dor.shifer <at> gmail.com> writes:
> >
> > > Attachment (test-123.sample): application/octet-stream, 2340 bytes
> >
> > Is there a software that can decode this sample?
> >
> > Carl Eugen
> >
> >
> > I managed to decode this sample w/asterisk's g729 astconv tool (
> http://asterisk.hosting.lv/src/asterisk-g72x-1.0.tar.bz2):
> 
> ./astconv codec_g729.so -d 10 /tmp/test-123.sample /tmp/test.slin
> 
> After-which, sox was able to play it:
> 
> play -r 8k -t raw -e signed-integer -b 16 /tmp/test.slin
> _______________________________________________
If you were on Windows, you should be able to do (with ffmpeg):
 
ffmpeg.exe -c pcm_alaw -i test-123.sample test.mp3
 
I have been looking for this solution myself since day before yesterday!
Enjoy
 
Dankie
Danie  		 	   		  


More information about the ffmpeg-user mailing list