LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-09-2009, 02:44 AM   #1
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
convert wav files using different codecs


I need to convert wave files with g726 codec. i have done this using ffmpeg like this.
Quote:
#ffmpeg -i rec01.wav -ab 40000 -ar 8000 -acodec g726 rec_g726.wav
I streamed this file using my darwin server and open the url at quicktime player. Quicktime player notifying that this is a unsupported media type.

Is this codec conversion correct?(no error return when i convert this file)
How can i play and listen whether this wave file is working?

Actually i need to convert a audio file with g729,g711,g726 and g723.1 codecs. Input may be any audio files but the output with wave file and above mentioned codecs.

How can i do this task?
Please anybody help me.

Last edited by kirukan; 09-09-2009 at 07:50 AM.
 
Old 09-09-2009, 10:59 AM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
ffmpeg -formats
...
DEA g726
...

Mine supports g726, I don't see any of the others. D for decoder, E for encoder, A for audio. Use ffplay to test it if it's playable, it should at a minimum play using ffplay. You might need to install libsdl and libsdl-dev to have ffplay function. Not to imply quicktime compliant, but it appears to at least exist to a limited extent. (Is there some reason that PCM or MP3 can't be used?)

-ab is the audio bitrate, the syntax changed between ffmpeg versions. You should use k now, instead of the long form.
-ab 40k

-ac is the number of channels
-ac 2

-ar is the sampling rate. You could probably use k here too, but for odd rates, I don't like using decimels.
-ar 44100

You can also try ffmpeg -i <output.format> to see what it reports back as after conversion. There's a mediainfo (unrelated) option for an additional, tell me what this file really is option. With out explicitly telling ffmpeg every option for the output, it'll inherit from the source material. Even if it's not compatible with the output format. Or I could be wrong.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
using mpg123 to convert .mp3 to .wav files cddesjar Linux - Software 7 06-26-2018 11:28 PM
Music Q - How to convert wav files into mp3... cbjhawks Linux - Software 3 03-30-2008 04:12 AM
i want to convert .wav file into mp3 files in batch mode sparsh Linux - Software 6 11-20-2007 10:53 AM
Can anyone recommend some good software to convert *.wav files into *mp3 files? Tom "Techno" Earl Linux - Software 4 10-12-2006 04:03 PM
is it possible to convert .wav files to cda so i can play it in my car cd player? 627_627 Linux - Newbie 9 07-27-2004 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration