LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 05-30-2008, 11:11 AM   #1
sigma_50
Member
 
Registered: Jan 2007
Distribution: Debian, Ubuntu
Posts: 53

Rep: Reputation: 15
Extract audio from mov file


I want to Extract audio from a Mov video file to audio file, what software should i use, i use Ubuntu 8.04 with kernel 2.6.24-17 Thanks in advance.
 
Old 05-30-2008, 11:40 AM   #2
beadyallen
Member
 
Registered: Mar 2008
Location: UK
Distribution: Fedora, Gentoo
Posts: 209

Rep: Reputation: 36
There may be programs to demux it directly, but mplayer can just dump the audio as a wav file. (Maybe mplayer/mencoder can demux directly?). Try
Code:
mplayer iput.mov -vo null -ao pcm:file=audio.wav:fast
This will give you the raw audio file named audio.wav. Then you can convert it to mp3, ogg, or whatever.
 
Old 05-31-2008, 12:18 AM   #3
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
You could use the "-dumpaudio" option also.
Code:
mplayer file.mov -dumpaudio -dumpfile audio.mp3
MPlayer will also tell you the audio codec used in the video, so you know what extension to use for the dumped audio file.
Code:
mplayer file.mov 2>/dev/null | grep "DECAUDIO"
 DECAUDIO: Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
 DECAUDIO: AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
 DECAUDIO: Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
 
Old 05-31-2008, 02:35 AM   #4
sigma_50
Member
 
Registered: Jan 2007
Distribution: Debian, Ubuntu
Posts: 53

Original Poster
Rep: Reputation: 15
audio from file

Thank you for your replies, it worked with Mplayer, now i have one more question, can you recommend av video edition program for Ubuntu with GUI, where you can edit sound and video in? Thanks in advance.
 
  


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
Extract audio from exif jpeg file? gbowden Slackware 9 07-13-2007 08:08 AM
.MOV audio codecs?!? Vid Linux - Software 3 02-11-2004 11:36 PM
mplayer // I am only getting audio for .mov files Wapo Linux - Software 6 07-29-2003 08:06 PM
MPlayer playing mov: Audio no sound jpbarto Linux - Software 1 05-07-2003 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:55 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