[gst-devel] Amr Encoding

Benoit Fouet benoit.fouet at purplelabs.com
Mon Oct 29 14:49:07 CET 2007


Hi,

Rahul Mittal wrote:
> Hi,
> I am trying out this pipeline to decode audio from a 3gp file and Amr
> encode it..
> but the output file that i am getting is not a valid amr file
>
> gst-launch -v filesrc location=footsie.3gp ! decodebin ! audioconvert
> ! audioresample ! amrnbenc name=amrenc ! queue ! filesink location=
> exam.amr
>
> Does anybody has any idea what is wrong with this pipeline ???
>   

i'd say it lacks an element to write the amr header... (and possibly,
you don't need the queue element)
have you tried adding "#!AMR\n" at the beginning of your file, to see if
it becomes playable (with an hex editor) ?

-- 
Ben
Purple Labs S.A.
www.purplelabs.com




More information about the gstreamer-devel mailing list