LinuxQuestions.org
Visit Jeremy's Blog.
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 03-07-2006, 03:21 AM   #1
dth1
Member
 
Registered: Oct 2004
Location: Stoney Stanton - England
Distribution: openSuse tumbleweed
Posts: 329

Rep: Reputation: 33
Ripping sound from a video avi file to mp3


I have a video avi file and would like to rip the sound from this to make a mp3.

What program can do this?

Many thanks
 
Old 03-07-2006, 10:36 AM   #2
auditek747
Member
 
Registered: Feb 2004
Location: Ohio, USA
Distribution: Arch Linux
Posts: 464

Rep: Reputation: 30
Mencoder will probably do it. (MPlayer)
If you want a gui, Avidemux will do it.
 
Old 03-07-2006, 10:42 AM   #3
dth1
Member
 
Registered: Oct 2004
Location: Stoney Stanton - England
Distribution: openSuse tumbleweed
Posts: 329

Original Poster
Rep: Reputation: 33
Cheers for the posting.

I have been looking at mencoder and trying to work out the instructions. Does:-

mencoder tcextract -i filename.avi -x mp3 -a 0 > all_audio.mp3

sound right?
 
Old 03-07-2006, 03:13 PM   #4
auditek747
Member
 
Registered: Feb 2004
Location: Ohio, USA
Distribution: Arch Linux
Posts: 464

Rep: Reputation: 30
I believe "tcextract" is part of "transcode".
I'm only guessing but it looks like your command is assuming
that the source avi has mp3 audio. Do you know this for sure?

If it DOES for sure, you can do:

Code:
mplayer -ao pcm -vo null -vc dummy -dumpaudio -dumpfile myvideo.mp3 myvideo.avi
If it DOES NOT, you can do:

Code:
mencoder myvideo.avi -o myvideo2.avi -oac mp3lame -ovc lavc
Then:

Code:
mplayer -ao pcm -vo null -vc dummy -dumpaudio -dumpfile myvideo.mp3 myvideo2.avi
Then you can get rid of myvideo2.avi

Last edited by auditek747; 03-07-2006 at 03:16 PM.
 
Old 03-07-2006, 03:44 PM   #5
dth1
Member
 
Registered: Oct 2004
Location: Stoney Stanton - England
Distribution: openSuse tumbleweed
Posts: 329

Original Poster
Rep: Reputation: 33
Cheers for that - worked a treat.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kaffeine, sound in avi doesnt work. Mp3 is fine. asQ Linux - Software 4 12-06-2005 12:01 PM
how to play .rmvb, .avi, .wmv, .mp3 file shawn82 Linux - General 2 07-05-2005 09:51 AM
mp3 ripping with sound juicer jbzy3000 Fedora 5 03-11-2005 07:29 PM
AVI Video or Sound awlred Linux - Software 1 06-09-2004 01:55 PM
AVI Audio to MP3 File Obi Perrin Linux - Software 2 03-10-2003 10:27 AM

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

All times are GMT -5. The time now is 05:27 PM.

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