[MEncoder-users] segfaults caused by vf scale ???

magni at ien.it magni at ien.it
Sat Dec 31 08:42:10 CET 2005


Greetings everybody, I hope someone can help me.

I am trying to re-encode a video I have so that it is readable by the
Nokia770.
I am using a script that people found works
(http://maemo.org/maemowiki/VideoEncoding) that basically uses variations of
the command line:

mencoder infile.avi -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4 -vf
scale=352:208 -ffourcc DIVX -ofps 15 -o outfile.avi

no matter which variation I use of the command, I always get a Segmentation
fault - with no exlanations.
Except when I take away the "-vf scale" option: in this case it works
perfectly.
BUT! For my use it is fundamental to rescale it, since the device is very
picky about the frame sizes/bitrates ...

do you have any hint? I didnt find anything on the net concerning segfaults
caused by vf scale...


thanks for any help


Alessandro


*************************************************************************
my starting file is this:

 tcprobe -i DistantOrigin.avi
[tcprobe] RIFF data, AVI video
[avilib] V: 23.976 fps, codec=XVID, frames=66146, width=384, height=288
[avilib] A: 22050 Hz, format=0x00, bits=0, channels=2, bitrate=0 kbps,
[avilib]    1 chunks, 23 bytes, VBR
[tcprobe] summary for DistantOrigin.avi, (*) = not default, 0 = not detected
import frame size: -g 384x288 [720x576] (*)
       frame rate: -f 23.976 [25.000] frc=1 (*)
           length: 66146 frames, frame_time=41 msec, duration=0:45:58.839

************************************************************************
and the typical output:

mencoder DistantOrigin.avi -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4 -vf
scale=352:208 -ffourcc DIVX -ofps 15 -o d.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale

MEncoder 1.0pre7-3.4.3 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection.
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0  data: 0x0 - 0x6c4f0ea
AVI file format detected.
VIDEO:  [XVID]  384x288  12bpp  23.976 fps  324.6 kbps (39.6 kbyte/s)
[V] filefmt:3  fourcc:0x44495658  size:384x288  fps:23.98  ftime:=0.0417
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 22050 Hz, 2 ch, s16le, 0.0 kbit/nan% (ratio: 0->0)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [scale w=352 h=208]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Forcing output fourcc to 58564944 [DIVX]
MP3 audio selected
Building audio filter chain for 22050Hz/2ch/s16le -> 22050Hz/2ch/s16le...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp
header.
VDec: vo config request - 384 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 7 -> 6
SwScaler: reducing / aligning filtersize 7 -> 6

SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: libavcodec (352x208 fourcc=58564944 [DIVX])
Segmentation faultf ( 0%)   0fps Trem:   0min   0mb  A-V:  nan [0:0]




More information about the MEncoder-users mailing list