LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy
User Name
Password
Puppy This forum is for the discussion of Puppy Linux.

Notices


Reply
  Search this Thread
Old 03-15-2015, 04:26 AM   #1
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Rep: Reputation: 169Reputation: 169
mp3 from mp4


Is there a way to extract an mp3 from a mp4 ?
 
Old 03-15-2015, 05:35 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
In its most simple form that could be done with 'ffmpeg -i file.mp4 sound.mp3'. See 'man ffmpeg' for gory details or use a front-end if the manual page scares you ;-p
 
Old 03-15-2015, 08:25 AM   #3
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Outfile #0 does not contain any stream
Conversion failed!

I ended up with 2 zero byte files. :-(

What's up with that ?

It should have at least saved my original.
 
Old 03-15-2015, 08:30 AM   #4
Miati
Member
 
Registered: Dec 2014
Distribution: Linux Mint 17.*
Posts: 326

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by Fixit7 View Post
Outfile #0 does not contain any stream
Conversion failed!

I ended up with 2 zero byte files. :-(

What's up with that ?

It should have at least saved my original.
Did you type it without the -i?

e.g.:
Code:
ffmpeg file.mp4 file.mp3
Because that will cause it to overwrite, it will also give you a warning first.
Code:
File 'file.mp4' already exists. Overwrite ? [y/N]
The -i defines the input stream. Since I am guessing you did not define file.mp4 as the input stream, it assumed stdin was the input stream. Since stdin contained nothing and you defined two files to write to (file.mp4 and file.mp3) it wrote to those two files, prompting the user if a file already existed. That's my best guess on it's behavior.

Last edited by Miati; 03-15-2015 at 08:34 AM.
 
Old 03-16-2015, 05:56 PM   #5
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Thanks, I forgot the -i.
 
  


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
mp3 is to ogg, as mp4 is to ....? Knightron Linux - Software 8 08-22-2012 04:12 AM
Rhythmbox mp3 mp4 support greplinux Linux - Newbie 3 08-21-2010 09:27 PM
mp3 to mp4 thebiggiantmouse Linux - Software 7 07-24-2007 02:04 PM
Can Banshee Encode .mp3 and .mp4? General_Tso Linux - Software 2 06-26-2006 12:24 AM
Multiplexing mp3 and h264 in mp4 rcbaxter Linux - Software 1 03-05-2006 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Puppy

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