[MPlayer-users] Extracting audio from a video and saving it as an mp3

Marek Gleń marek.glen at gmail.com
Sat Mar 28 18:30:29 CET 2009


On Sat, Mar 28, 2009 at 6:23 PM, Malte Gell <malte.gell at gmx.de> wrote:
> Hi there!
>
> I want to extract audio only from a video, i use it this way:
>
> mencoder xyz.flv  -ovc frameno -oac mp3lame -lameopts preset=standard:vol=8 -o
> xyz.mp3
>
> but, the resulting xyz.mp3 is not a true mp3 file:
>
> file xyz.mp3
>
> xyz.mp3: RIFF (little-endian) data, AVI, 320 x 240, ~30 fps, video:, audio:
> MPEG-1 Layer 3 (stereo, 22050 Hz)
>
> So, how can I extract audio only to an mp3 file?

mplayer xyz.flv -vo null -ao pcm:file=file.wav && lame file.wav


More information about the MPlayer-users mailing list