[MPlayer-users] mencoder illegal instruction

Wolfgang Breyha wbreyha at gmx.net
Tue Mar 10 13:43:42 CET 2009


Hi!

I'm converting several import formats to quicktime movies using mencoder with
x264/faac.

Some of the movies I try to convert end up in an illegal instruction error
near the end of the conversion either in pass1 or pass2. Length of output
(2pass file, or rendered movie) differs. Sometimes the same movie is rendered
without error.

The machine is an HP DL380 G5 hosting this virtual RHEL 5.3 on vmware with 2
VCPUs. I tried mencoder releases ....
mplayer-1.0-0.91.20080531svn.lvn8.src.rpm
mplayer-1.0-0.102.20080903svn.fc10.src.rpm
mplayer-1.0-0.105.20090107svn.fc11.src.rpm
mplayer-1.0-0.106.20090204svn.fc11.src.rpm
with
x264-0-0.10.20070819.lvn8.src.rpm
x264-0.0.0-0.18.20080905.fc10.src.rpm
x264-0.0.0-0.23.20090119git451ba8d.fc11.src.rpm

All showed the same effects.

Currently mencoder is built from latest Fedora 11 src.rpms...
mplayer-1.0-0.106.20090204svn.fc11.src.rpm
x264-0.0.0-0.23.20090119git451ba8d.fc11.src.rpm

mencoder is run as (this is one example which crashed recently):
+ mencoder
/var/streamin/philologie/romanistik/tuerschmann/SS09/110351/el_crimen_de_cuenca_dvd.mp4
-quiet -o /dev/null -passlogfile /var/tmp/toquick-8900.2passlog -ovc x264
-x264encopts
pass=1:turbo:threads=2:bitrate=900:frameref=5:bframes=1:me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=50
-vf scale=704:-10,crop=704:576:0:0,scale=-10:-1,harddup -oac faac -faacopts
br=96:mpeg=4:object=2 -channels 2 -srate 48000 -ofps 25

output:
MEncoder SVN-r28461-4.1.2 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Xeon(R) CPU            5160  @ 3.00GHz (Family: 6, Model: 15,
Stepping: 11)
success: format: 0  data: 0x0 - 0x2b03e118
libavformat file format detected.
[lavf] Video stream found, -vid 0
[lavf] Audio stream found, -aid 1
VIDEO:  [avc1]  704x576  24bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44  fourcc:0x31637661  size:704x576  fps:30.000  ftime:=0.0333
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [scale w=-10 h=-1]
Opening video filter: [crop w=704 h=576 x=0 y=0]
Crop: 704 x 576, 0 ; 0
Opening video filter: [scale w=704 h=-10]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
VDec: vo config request - 704 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar I420 as output csp (no 1)
Movie-Aspect is 1.22:1 - prescaling to correct movie aspect.
[swscaler @ 0x87163e0]using unscaled yuv420p -> yuv420p special converter
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile Main, level 3.0
Writing header...
ODML: vprp aspect is 16384:13405.
Setting audio delay to 0.043s.
Writing header...
ODML: vprp aspect is 16384:13405.
Setting audio delay to 0.043s.

ending up in:
/usr/local/streaming/dvd_toquicktime.sh: line 54:  8910 Illegal instruction
  (core dumped) mencoder "$INFILE" -quiet -o /dev/null -passlogfile
$TEMPFILE.2passlog -ovc x264 -x264encopts
pass=1:turbo:threads=2:bitrate=900:frameref=5:bframes=1:me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=50
-vf
${DEINT}scale=$SCALED_VIDEO_WIDTH:-10,crop=$SCALED_VIDEO_WIDTH:$SCALED_VIDEO_HEIGHT:0:0,scale=-10:-1,harddup
-oac faac -faacopts br=96:mpeg=4:object=2 -channels 2 -srate 48000 -ofps 25

gdb output:
# gdb -c /var/tmp/core.8910
GNU gdb Fedora (6.8-27.el5)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
(no debugging symbols found)
Core was generated by `mencoder
/var/streamin/philologie/romanistik/tuerschmann/SS09/110351/el_crimen_'.
Program terminated with signal 4, Illegal instruction.
[New process 9315]
#0  0x06355ebb in ?? ()
(gdb) bt
#0  0x06355ebb in ?? ()
#1  0x00000070 in ?? ()
#2  0x00000000 in ?? ()
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x6355e9b to 0x6355edb:
0x06355e9b:	add    %ebx,%edx
0x06355e9d:	sub    $0x4,%eax
0x06355ea0:	jge    0x6355e14
0x06355ea6:	shr    %edx
0x06355ea8:	add    $0x8,%edx
0x06355eab:	and    $0xfffffff0,%edx
0x06355eae:	mov    0x78(%esp),%eax
0x06355eb2:	xor    %ebx,%ebx
0x06355eb4:	xor    %esi,%esi
0x06355eb6:	call   0x6353830
0x06355ebb:	pabsw  %mm3,%mm1
0x06355ebf:	pabsw  %mm4,%mm5
0x06355ec3:	pabsw  %mm2,%mm7
0x06355ec7:	paddw  %mm5,%mm1
0x06355eca:	paddw  %mm1,%mm7
0x06355ecd:	movq   (%esp,%ebx,8),%mm1
0x06355ed1:	movd   %edx,%mm5
0x06355ed4:	psllw  $0x2,%mm1
0x06355ed8:	psubw  %mm0,%mm1
End of assembler dump.
(gdb) info all-registers
eax            0x9a2b3b0	161657776
ecx            0x9a2b570	161658224
edx            0x430	1072
ebx            0x0	0
esp            0xb44754b8	0xb44754b8
ebp            0x22	0x22
esi            0x0	0
edi            0x68	104
eip            0x6355ebb	0x6355ebb
eflags         0x10246	[ PF ZF IF RF ]
cs             0x73	115
ss             0x7b	123
ds             0x7b	123
es             0x7b	123
fs             0x0	0
gs             0x33	51
st0            <invalid float value>	(raw 0x0000ffff000cfffafffc)
st1            <invalid float value>	(raw 0x0000ffff000700050005)
st2            <invalid float value>	(raw 0x0000ffff0002000c0006)
st3            <invalid float value>	(raw 0x0000ffff0002fff40002)
st4            <invalid float value>	(raw 0x0000ffff000c001a0010)
st5            <invalid float value>	(raw 0x0000ffff000000000000)
st6            <invalid float value>	(raw 0x0000ffff000000000000)
st7            <invalid float value>	(raw 0x0000ffff000000000000)
fctrl          0x21	33
fstat          0xff	255
ftag           0xeeae	61102
fiseg          0x0	0
fioff          0x730632	7538226
foseg          0x0	0
fooff          0x7bb447	8107079
fop            0x3a7	935
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x4, 0x0, 0x0, 0x0, 0x4, 0x0,
    0x2, 0x0, 0x4, 0x0, 0x2, 0x0, 0x6, 0x0, 0x2, 0x0}, v8_int16 = {0x4, 0x0,
0x4, 0x2, 0x4, 0x2, 0x6, 0x2},
  v4_int32 = {0x4, 0x20004, 0x20004, 0x20006}, v2_int64 = {0x2000400000004,
0x2000600020004},
  uint128 = 0x00020006000200040002000400000004}
---Type <return> to continue, or q <return> to quit---
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x2, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x2, 0x0}, v8_int16 = {0x2, 0x0,
0x0, 0x1, 0x1, 0x1, 0x1, 0x2},
  v4_int32 = {0x2, 0x10000, 0x10001, 0x20001}, v2_int64 = {0x1000000000002,
0x2000100010001},
  uint128 = 0x00020001000100010001000000000002}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0,
0x8000000000000000}, v16_int8 = {0x2, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0x1, 0x0, 0xff, 0xff},
v8_int16 = {0x2, 0x0, 0x0, 0x1, 0x1, 0x1,
    0x1, 0xffff}, v4_int32 = {0x2, 0x10000, 0x10001, 0xffff0001}, v2_int64 =
{0x1000000000002, 0xffff000100010001},
  uint128 = 0xffff0001000100010001000000000002}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x0}, v16_int8 = {0x1, 0x0, 0x1,
    0x0, 0xff, 0xff, 0xff, 0xff, 0x1, 0x0, 0x1, 0x0, 0xff, 0xff, 0x4, 0x0},
v8_int16 = {0x1, 0x1, 0xffff, 0xffff,
    0x1, 0x1, 0xffff, 0x4}, v4_int32 = {0x10001, 0xffffffff, 0x10001,
0x4ffff}, v2_int64 = {0xffffffff00010001,
    0x4ffff00010001}, uint128 = 0x0004ffff00010001ffffffff00010001}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0,
0x8000000000000000}, v16_int8 = {0x4, 0x0, 0x4,
    0x0, 0x0, 0x0, 0x6, 0x0, 0x2, 0x0, 0x4, 0x0, 0x2, 0x0, 0x77, 0x77},
v8_int16 = {0x4, 0x4, 0x0, 0x6, 0x2, 0x4,
    0x2, 0x7777}, v4_int32 = {0x40004, 0x60000, 0x40002, 0x77770002}, v2_int64
= {0x6000000040004,
    0x7777000200040002}, uint128 = 0x77770002000400020006000000040004}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double =
{0x8000000000000000, 0x0}, v16_int8 = {0x76, 0x76,
    0x76, 0x76, 0x76, 0x76, 0x76, 0x76, 0x75, 0x75, 0x75, 0x75, 0x75, 0x75,
0xc7, 0x3}, v8_int16 = {0x7676, 0x7676,
    0x7676, 0x7676, 0x7575, 0x7575, 0x7575, 0x3c7}, v4_int32 = {0x76767676,
0x76767676, 0x75757575, 0x3c77575},
  v2_int64 = {0x7676767676767676, 0x3c7757575757575}, uint128 =
0x03c77575757575757676767676767676}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0, 0x0, 0xc7, 0x3, 0x7a,
    0x2, 0xe2, 0xa, 0x0, 0x0, 0x60, 0x6, 0x0, 0x0, 0x4d, 0x1}, v8_int16 =
{0x0, 0x3c7, 0x27a, 0xae2, 0x0, 0x660,
    0x0, 0x14d}, v4_int32 = {0x3c70000, 0xae2027a, 0x6600000, 0x14d0000},
v2_int64 = {0xae2027a03c70000,
    0x14d000006600000}, uint128 = 0x014d0000066000000ae2027a03c70000}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0, 0x0, 0x7a, 0x2, 0x7a,
    0x2, 0x71, 0x5, 0x0, 0x0, 0x30, 0x3, 0x0, 0x0, 0x0, 0x0}, v8_int16 = {0x0,
0x27a, 0x27a, 0x571, 0x0, 0x330,
    0x0, 0x0}, v4_int32 = {0x27a0000, 0x571027a, 0x3300000, 0x0}, v2_int64 =
{0x571027a027a0000, 0x3300000},
  uint128 = 0x00000000033000000571027a027a0000}
mxcsr          0xffff0000	[ #16 #17 #18 #19 #20 #21 #22 #23 #24 #25 #26 #27
#28 #29 #30 #31 ]
mm0            {uint64 = 0xffff000cfffafffc, v2_int32 = {0xfffafffc,
0xffff000c}, v4_int16 = {0xfffc, 0xfffa, 0xc,
    0xffff}, v8_int8 = {0xfc, 0xff, 0xfa, 0xff, 0xc, 0x0, 0xff, 0xff}}
mm1            {uint64 = 0xffff000700050005, v2_int32 = {0x50005, 0xffff0007},
v4_int16 = {0x5, 0x5, 0x7, 0xffff},
  v8_int8 = {0x5, 0x0, 0x5, 0x0, 0x7, 0x0, 0xff, 0xff}}
mm2            {uint64 = 0xffff0002000c0006, v2_int32 = {0xc0006, 0xffff0002},
v4_int16 = {0x6, 0xc, 0x2, 0xffff},
  v8_int8 = {0x6, 0x0, 0xc, 0x0, 0x2, 0x0, 0xff, 0xff}}
mm3            {uint64 = 0xffff0002fff40002, v2_int32 = {0xfff40002,
0xffff0002}, v4_int16 = {0x2, 0xfff4, 0x2,
---Type <return> to continue, or q <return> to quit---
    0xffff}, v8_int8 = {0x2, 0x0, 0xf4, 0xff, 0x2, 0x0, 0xff, 0xff}}
mm4            {uint64 = 0xffff000c001a0010, v2_int32 = {0x1a0010,
0xffff000c}, v4_int16 = {0x10, 0x1a, 0xc,
    0xffff}, v8_int8 = {0x10, 0x0, 0x1a, 0x0, 0xc, 0x0, 0xff, 0xff}}
mm5            {uint64 = 0xffff000000000000, v2_int32 = {0x0, 0xffff0000},
v4_int16 = {0x0, 0x0, 0x0, 0xffff},
  v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff}}
mm6            {uint64 = 0xffff000000000000, v2_int32 = {0x0, 0xffff0000},
v4_int16 = {0x0, 0x0, 0x0, 0xffff},
  v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff}}
mm7            {uint64 = 0xffff000000000000, v2_int32 = {0x0, 0xffff0000},
v4_int16 = {0x0, 0x0, 0x0, 0xffff},
  v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff, 0xff}}

If I can provide more information please let me know.

Regards, Wolfgang Breyha
-- 
Wolfgang Breyha <wbreyha at gmx.net> | http://www.blafasel.at/
Vienna University Computer Center | Austria




More information about the MPlayer-users mailing list