Convert Wav to AMR

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Convert Wav to AMR

kuladeep18k
Hello All,

I am trying to convert a wav file to amr file. and i am trying with:
 
gst-launch filesrc location=spider2.wav ! wavparse !  amrnbenc ! filesink location=amr.amr

Pipeline. but its giving Error like:

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Resource not found.
Additional debug info:
gstfilesrc.c(1055): gst_file_src_start (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:
No such file "spider2.wav"
Setting pipeline to NULL ...
Freeing pipeline ...

But while converting amr to wav file
gst-launch filesrc location=~/Desktop/sample.amr ! amrparse ! amrnbdec ! wavenc ! filesink location=~/Desktop/amr.wav this pipeline is working fine. but vice versa is not working. Can any body Help PLZ...

Thanks in advance for any contribution.
Regards,
Kuladeep.



Reply | Threaded
Open this post in threaded view
|

Re: Convert Wav to AMR

michael smith-6-3
On Mon, Jun 21, 2010 at 11:47 PM, kuladeep18k
<[hidden email]> wrote:

>
> Hello All,
>
> I am trying to convert a wav file to amr file. and i am trying with:
>
> gst-launch filesrc location=spider2.wav ! wavparse !  amrnbenc ! filesink
> location=amr.amr
>
> Pipeline. but its giving Error like:
>
> Setting pipeline to PAUSED ...
> ERROR: Pipeline doesn't want to pause.
> ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Resource not
> found.
> Additional debug info:
> gstfilesrc.c(1055): gst_file_src_start ():
> /GstPipeline:pipeline0/GstFileSrc:filesrc0:
> No such file "spider2.wav"

Is this somehow unclear? There's no file "spider2.wav" in the
directory you're running this from. In your second example that you
say is working, you're using a different path.

Mike

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Convert Wav to AMR

Dianahemes
In reply to this post by kuladeep18k
How to Convert WAV to AMR with Switch Audio Converter
Download Switch Audio Converter. Download Switch Audio Converter.
Import WAV Files into the Program. Click on the green Add File(s) button, located in the main toolbar to open the file finder window.
Choose an Output Folder.
Set the Output Format.
Convert WAV to AMR.

Regards,
Diana