[FFmpeg-user] Help with extracting audio from MP4

Peter peter777 at users.sourceforge.net
Thu Jan 19 08:18:55 EET 2017


On Thursday, 19 January 2017 6:15:01 AM AEDT Carl Eugen Hoyos wrote:
> 2017-01-19 5:40 GMT+01:00 Peter <peter777 at users.sourceforge.net>:
> > If I simply supply an output filename, it results in the codec of
> > MPEG Audio Layer 1
> 
> That's impossible, no layer 1 encoder exists for FFmpeg.

The line must have benn cutoff in your viewer, .. the line was ..

If I simply supply an output filename, it results in the codec of MPEG Audio 
Layer 1/2(mpga), sample rate: 48000 Hz and bitrate: 64 kb/s

> Maybe you are searching for something like the following?
> $ ffmpeg -i 16187821_363927127308754_4400528164682465280_n.mp4
> -acodec copy out.aac

Thanks, I tried that.  The sound is okay. For mp3 output, I used an example ..

ffmpeg -i 16187821_363927127308754_4400528164682465280_n.mp4 -codec:a 
libmp3lame -qscale:a 2 output.mp3

Not sure if I'm using the correct parametrs though. We require the output to 
be an mp3 file.

Peter



More information about the ffmpeg-user mailing list