file convert
hi. i am looking to convert files (manually) for my asterisk. i do have some files in .gsm, .wav, .alaw, .ulaw format. i need to change the format between them.
in another box that i have that runs centos 6 the command is file convert name.wav file.ulaw same applies for all other formats. unfortunately i cannot see how to make it work in debian. |
Sorry, you run
Code:
file convert foo.wav bah.ulaw What version of 'file' do you have on your CentOS box? I would write a shell script for this - I would expect that to convert between each pair of formats, you will need to run a different command, so I would write a script to work out the format of the files (based on their extensions) and then run the appropriate command. Does that answer your question, or were you looking for something more specific? |
could you post the script please?
the file formats that i would like to convert between them are: wav, mp3, gsm, g729, alaw, ulaw |
You're lucky it's a Saturday ;) normally it's better for you to try it yourself: I and the other people on the forum will often not have time to write and test a script for you, and you will learn a lot more doing it yourself! However, here it is:
Code:
#!/usr/bin/env bash |
thanks a lot.
|
If it works for you, then please remember to come back and mark the thread as 'SOLVED'.
Thanks, |
All times are GMT -5. The time now is 08:00 AM. |