Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

[solved]How to extract sounds from a video?

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
maverick6664
Guru
Guru
Posts: 413
Joined: Fri May 13, 2005 7:20 pm
Location: Tokyo / Japan
Contact:
Contact maverick6664
Website

[solved]How to extract sounds from a video?

  • Quote

Post by maverick6664 » Fri Nov 05, 2010 7:49 am

Hi,
This may be easy, but I don't know how. How can I make a .wav or .mp3 sound file from an .mp4 or .avi video file? sox doesn't support this.... :(

TIA!
Last edited by maverick6664 on Fri Nov 05, 2010 8:43 am, edited 1 time in total.
Tetsuji Rai
a.k.a. Lukiest in the world
Top
your_WooDness
Tux's lil' helper
Tux's lil' helper
Posts: 77
Joined: Thu Oct 25, 2007 9:01 am

  • Quote

Post by your_WooDness » Fri Nov 05, 2010 8:06 am

Hi,

you could use a GUI such as avidemux2 or ffmepg on the command line: ffmpeg -i <video_file> -acodec copy <mp3_file>

WooD
Top
maverick6664
Guru
Guru
Posts: 413
Joined: Fri May 13, 2005 7:20 pm
Location: Tokyo / Japan
Contact:
Contact maverick6664
Website

  • Quote

Post by maverick6664 » Fri Nov 05, 2010 8:17 am

your_WooDness wrote:Hi,

you could use a GUI such as avidemux2 or ffmepg on the command line: ffmpeg -i <video_file> -acodec copy <mp3_file>

WooD
Thank you, but the audio file made by ffmpeg becomes mp2 instead of mp3. How can I make an mp3? And I cannot make a 128kb bit rate file. I use "ffmpeg -i <video> -acodec copy -ab 128k <mp3_file>
Tetsuji Rai
a.k.a. Lukiest in the world
Top
your_WooDness
Tux's lil' helper
Tux's lil' helper
Posts: 77
Joined: Thu Oct 25, 2007 9:01 am

  • Quote

Post by your_WooDness » Fri Nov 05, 2010 8:32 am

Hi,

you could try this one:

Code: Select all

ffmpeg -i <video_file> -acodec libmp3lame -ar 44100 -ab 128k -ac 2 <mp3_file>
WooD
Top
Ahenobarbi
Retired Dev
Retired Dev
User avatar
Posts: 345
Joined: Thu Apr 02, 2009 6:54 pm
Location: Warsaw, PL

  • Quote

Post by Ahenobarbi » Fri Nov 05, 2010 8:37 am

This how to is about converting DVDs to h264 but there is one step about extracting audio with mplayer:

Code: Select all

mplayer movie -aid track_id -dumpaudio -dumpfile where_you_want_audio.ac3
or if there is only one audio track in the video

Code: Select all

mplayer movie -dumpaudio -dumpfile where_you_want_audio.ac3
Top
maverick6664
Guru
Guru
Posts: 413
Joined: Fri May 13, 2005 7:20 pm
Location: Tokyo / Japan
Contact:
Contact maverick6664
Website

  • Quote

Post by maverick6664 » Fri Nov 05, 2010 8:42 am

your_WooDness wrote:Hi,

you could try this one:

Code: Select all

ffmpeg -i <video_file> -acodec libmp3lame -ar 44100 -ab 128k -ac 2 <mp3_file>
WooD
Thanks! It worked for me!
Tetsuji Rai
a.k.a. Lukiest in the world
Top
Post Reply

6 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic