I have a video I need to convert to mp3 (from the command line - not GUI): video.mp4
I tried:
ffmpeg -i -b 192 video.mp4 video.mp3
with no success. I get the following error:
WARNING: library configuration mismatch
Seems stream 0 codec frame rate differs from container frame rate: 59.83 (29917/500) -> 59.75 (239/4)
WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
Encoder (codec id 86017) not found for output stream #0.0
so I tried lame:
lame -h -b 192 video.mp4 video.mp3
I get:
Warning: unsupported audio format
Am I missing something?
For FFmpeg with Constant Bitrate Encoding (CBR):
or if you want to use Variable Bitrate Encoding (VBR):
The VBR example has a target bitrate of 165 Kbit/s with a bitrate range of 140...185.
soundconverter
is the leading audio file converter for the GNOME Desktop. It reads anything GStreamer can read (Ogg Vorbis, AAC, MP3, FLAC, WAV, AVI, MPEG, MOV, M4A, AC3, DTS, ALAC, MPC, Shorten, APE, SID, MOD, XM, S3M, etc...), and writes to WAV, FLAC, MP3, AAC, and Ogg Vorbis files, or use a GNOME Audio Profile.
SoundConverter aims to be simple to use, and very fast. Thanks to its multithreaded design, it will use as many cores as possible to speed up the conversion. It can also extract the audio from videos.
How to Convert MP4 to MP3 with VLC
Open VLC Media Player. Click "Media" > "Convert" to enter the "Open Media" window. Click the "Add" button on the right side of the screen to enter Windows Explorer. Locate the MP4 on your hard drive you want to convert. Click the "Convert" button at the bottom of the screen.
Select the name of the Target file.
Click the "Audio Codec" tab and select "MP3" from the "Codec" drop down box. Press the "Start" button to begin converting your MP4 to MP3 audio.
Click Start
I have a shell-script that uses
mplayer
(so it can convert anythingmplayer
can play) to extract the audio, and then encode it usinglame
. Here is the code:First you need to
apt-get install mplayer lame
. After that, put the code in a file named ''any2mp3.sh'', give permission to execute, and put that in your $PATH, and you will be able to do:It will convert each file passed to an mp3 with the same name.
It's a little rough, but does the job.
I think the problem is with your syntax of the ffmpeg command.
should work.
I use this small script for converting m4a to mp3.
To convert Upd_Sanity.mp4 to Upd_Sanity.mp3
OR (as
ffmpeg
is deprecated)Description
If you need to use it frequently,
STEP 1 : Create a bash function that performs conversion
STEP 2 : source that bash file
STEP 3 : start conversion calling above function
convertMP4toMP3
References
utilities.sh
First, you have to understand a few things.
MP3
is an audio format.MP4
is a video format.To get the audio out of the MP4 (and to save it as an MP3), use soundconverter .
It is possible to use Lame directly if you use FFmpeg and pipe the output to lame (via stdout and stdin). An example:
This allows you to use lame's considerable commandline options if you wish to explore them...
you can try converting it by vlc or sound converter go to http://soundconverter.org/ sound converter or find in your software center or use vlc for conversion open vlc media convert/save chose your file chose output format chose name and destination and start steaming thats all
Try Transmageddon is available trough the Ubuntu Software Center http://www.linuxrising.org/index.html