[MPlayer-users] segfault in mencoder

Justin Moore justin at cs.duke.edu
Tue Mar 4 08:21:45 CET 2003

On Tue, 2003-03-04 at 02:07, D Richard Felker III wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> 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.

   I should have been a bit more specific.  This is the full audio dump
of a DVD I own (~2 hrs), and I'm trying to extract bits and pieces of
the audio track in mp3 format.  Hence the -ss and -endpos options.  I've
got a script that takes a list of start times, end times, and titles,
and I want [ something ] to carve out the song in the time range and
give it the appropriate title.  The easiest [ something ] I knew of with
this capability was mencoder.  I'm open to suggestions for alternatives.

   Regardless, I figured the developers would want to know about this
bug. :)


Justin Moore <justin at cs.duke.edu>
Duke University Department of Computer Science

More information about the MPlayer-users mailing list