Convert avi to mp3
Anyone know a way to convert avi to mp3? Thank you in advance for any suggestions.
|
Just to clarify, you want to convert AVI (a video format) to MP3 (an audio format)? Maybe you mean extract the audio from an AVI and save it as MP3? I don't have any clues as to how to di this, but your post looks confusing to me. Just wanting to verify.
|
yes, I wish to extract audio from avi and save as mp3. http://www.google.com/search?hl=en&q...=Google+Search shows some Microsoft applications that do this. I have aprx 50 avi files totaling 5 GB in different directories. I want to run script or program from terminal to extract audio from files into mp3's, then move all of the mp3's into one directory. I can figure out how to write script to move files into new directory, im not sure how to get avi audio into mp3. any help will be greatly appreciated.
|
I wrote a script which does just that. It needs mplayer and LAME:
Code:
#!/bin/bash |
7
|
Thank you much Dave! very very helpful. :D :D :D
|
I have a file secret-world.mp4. How I can edit the script to work with it.
|
Hi.
No editing required. The file to be converted is just given as the argument to the script, e.g. Code:
/path/to/the/saved/script secret-world.mp4 |
I received this message.
-aofile is deprecated. Use -ao pcm:file=<filename> instead. Could not find "any2wav.wav". Couldn't encode secret-world.avi.mp3. Exiting. Thanks |
Quote:
Code:
if ! mplayer -vo dummy -ao pcm -aofile any2wav.wav "$1" Code:
if ! mplayer -vo dummy -ao pcm:file=any2wav.wav "$1" |
This is the code
Quote:
Error opening/initializing the selected video_out (-vo) device. Exiting... (End of file) Could not find "any2wav.wav". Couldn't encode secret-world.avi.mp3. Exiting. |
This is the code
Quote:
Error opening/initializing the selected video_out (-vo) device. Exiting... (End of file) Could not find "any2wav.wav". Couldn't encode secret-world.avi.mp3. Exiting. |
Quote:
Code:
if ! mplayer -vo null -ao pcm:file=any2wav.wav "$1" Code:
if ! mplayer -vc null -vo null -ao pcm:fast:file=any2wav.wav "$1" Edit: Just tried the script it works with the line with the -vc null -vo null ... in it. Code:
>$ ./avitomp3 dave\ chapelle\ -killing\ them\ softly.avi |
Hi all.
This is what I'm using at the moment (with the new-ish mplayer syntax) Code:
#!/bin/bash Dave |
All times are GMT -5. The time now is 02:59 PM. |