LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mp4 to mp3 convert (https://www.linuxquestions.org/questions/linux-software-2/mp4-to-mp3-convert-4175544931/)

Garrett85 06-09-2015 02:08 PM

mp4 to mp3 convert
 
Does anyone know a good program for converting mp4 files to mp3,s?

TobiSGD 06-09-2015 02:14 PM

I use ffmpeg for all kinds of conversions between multimedia formats.

Sefyir 06-09-2015 02:46 PM

ffmpeg or avconv (essentially ffmpeg) is good.
For a very simple conversion, it would go something like this:

Code:

ffmpeg -i file.mp4 file.mp3
To do a bunch, loop the file names with a for loop.

Garrett85 06-09-2015 04:02 PM

Quote:

Originally Posted by Sefyir (Post 5374779)
ffmpeg or avconv (essentially ffmpeg) is good.
For a very simple conversion, it would go something like this:

Code:

ffmpeg -i file.mp4 file.mp3
To do a bunch, loop the file names with a for loop.

garrett@mint-desktop ~/Desktop $ ffmpeg
ffmpeg: command not found

garrett@mint-desktop ~/Desktop $ sudo apt-get install ffmpeg
[sudo] password for garrett:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

schneidz 06-09-2015 04:03 PM

Quote:

Originally Posted by Garrett85 (Post 5374805)
garrett@mint-desktop ~/Desktop $ ffmpeg
ffmpeg: command not found

garrett@mint-desktop ~/Desktop $ sudo apt-get install ffmpeg
[sudo] password for garrett:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

try avconv.

Garrett85 06-09-2015 05:40 PM

avconv
 
Quote:

Originally Posted by schneidz (Post 5374807)
try avconv.

garrett@mint-desktop ~ $ sudo apt-get install avconv
[sudo] password for garrett:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package avconv

Sefyir 06-09-2015 05:48 PM

Quote:

Originally Posted by Garrett85 (Post 5374838)
garrett@mint-desktop ~ $ sudo apt-get install avconv
[sudo] password for garrett:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package avconv

Did you run avconv?

Code:

$ sudo apt-get install avconv
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Unable to locate package avconv

$ avconv -i file.mp4 file.mp3

I'm not sure why the ubuntu repository is not providing avconv, especially since it's (apparently) preinstalled and have dropped their support of ffmpeg which..

Quote:

This may mean that the package is missing, has been obsoleted, or
is not actually obsolete

John VV 06-09-2015 06:47 PM

you are aware that a mp4 is a MORE compressed file than a mp3
and BOTH are whats called " lousy" in that they toss DATA( information) into the trash can to compress the files

and mp4 tosses out even MORE information

do not expect the files to sound good or if video look good

expect a bit of a "bad" image quality

Garrett85 06-09-2015 07:33 PM

I have made a mistake. I need to files to go from m4b to mp3. Any ideas?

John VV 06-09-2015 07:46 PM

being a audio book format

is it DRM'ed

if so .......

Garrett85 06-09-2015 11:23 PM

No there's no DRM on the file. I try not to give any of my money to companies that DRM encumber their files. One reason I never buy from audible.com

Sefyir 06-10-2015 12:02 AM

It's probably the exact same syntax. Since you probably have avconv
Code:

avconv -i file.m4b file.mp3

TobiSGD 06-10-2015 03:31 AM

If I am not mistaken, avconv is provided by the libav package, try to install that.

Garrett85 06-11-2015 10:59 AM

garrett@mint-desktop ~ $ sudo apt-get install libav
[sudo] password for garrett:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libav

garrett@mint-desktop ~ $ sudo apt-get install avonc
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package avonc

Any ideas?

TobiSGD 06-11-2015 11:40 AM

Which version of Ubuntu do you use?


All times are GMT -5. The time now is 04:49 AM.