[MPlayer-users] segfault in mencoder

D Richard Felker III dalias at aerifal.cx
Tue Mar 4 08:07:13 CET 2003

On Tue, Mar 04, 2003 at 01:53:09AM -0500, Justin Moore wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
>    I'm trying to encode a wav file to mp3 using mencoder; I had ripped
> the audio track using 'mplayer -ao pcm -aofile sound.wav -vo null
> video.avi'.  I keep getting a segfault after mencoder parses the sound
> header.  The error is that in
> int video_read_properties(sh_video_t *sh_video){
> libmpdemux/video.c (line 38), the sh_video variable is NULL.  mencoder
> is not happy when it tries to dereference this pointer. :)
> The command line and output:
> opus:~/media/vid$ mencoder -v -v -v -ss 0:00 -endpos 3:13 -o
> Helter_Skelter.mp3 -oac mp3lame -lameopts cbr:br=192:aq=1:mode=3
> sound.wav

Try this:

lame -b 192 -q 1 -m m sound.wav Helter_Skelter.mp3

Hint: mencoder is a movie encoder. It only outputs avi (or
experimentally mpeg) files with audio+video. Not .mp3 files.


More information about the MPlayer-users mailing list