[MPlayer-users] Floating Point exception using 2 pass encode with Libavcodec

Mike Albon mikea at yuri.org.uk
Sat May 11 00:27:02 CEST 2002


Hi All,

I seem to be having a problem with LibAVcodec multipass mpeg4 encoding.
I can start the process then it just fails with Floating point exception
and I have no idea why. Am I doing something very silly, or is this a
genuine bug?
If required I could be persuaded to recompile for gdb if this is already
not known.
Also while I am emailing, having read the docs, I don't understand how
to make my subtitles use less width, the position on the screen is easy
with -subpos, but there isn't a -subwidth option I could find. I tried
to use -vop expand=-40:0:0:0:1 but that removed 40 pixels from the video
information as well.

I call:

mencoder -dvd 1 -dvd-device /dev/sr0 -chapter 1-7 -npp tn:2,lb -ovc lavc
-lavcopts
vcodec=mpeg4:vqmin=1:vqdiff=10:vme=1:vbitrate=2000:vmax_b_frames=4:vb_strategy=1 -o sd1b.avi -sub dump.mpsub -pass 2 -v

The output is:
MEncoder CVS-020509-17:09-2.95.4 (C) 2000-2002 Arpad Gereoffy (see
DOCS!)

CPU vendor name: GenuineIntel  max cpuid level: 2
CPU: Intel Celeron 2/Pentium III Tualatin (Type: 6, Stepping: 1)
extended cpuid-level: 4
Testing OS support for SSE... yes.
Testing OS support for SSE unmasked exceptions... yes.
Tests of OS support for SSE passed.
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Reading /home/mikea/.mplayer/codecs.conf: 30 audio & 81 video codecs
Font /home/mikea/.mplayer/font/font.desc loaded successfully! (206
chars)
Detected AVI file format!
MainAVIHeader.dwFlags: (2320) HAS_INDEX IS_INTERLEAVED TRUST_CKTYPE
VIDEO:  [FrNo]  0x0  24bpp  29.97 fps  179.4 kbps (21.9 kbyte/s)
Using pass3 control file: frameno.avi
get_path('') -> '/home/mikea/.mplayer/'
get_path('DVDKeys') -> '/home/mikea/.mplayer/DVDKeys'
libdvdcss debug: GetASF authenticated
libdvdcss debug: already authenticated
Reading disc structure, please wait...
There are 1 titles on this DVD.
There are 14 chapters in this DVD title.
There are 1 angles in this DVD title.
dvdcss: opening /home/mikea/.mplayer/DVDKeys/1999022210292000/0000003567
to look for key
DVD successfully opened!
[open] audio stream: 0 audio format: ac3 language: unknown aid: 128
[open] number of audio channels on disk: 1.
[open] number of subtitles on disk: 0
DVD start cell: 0  pack: 0x0-0xCEF  
DVD start=0 end=866923  
success: format: 0  data: 0x0 - 0x69D35800
DVD Seek! lba=0x0  cell=0  packs: 0x0-0xCEF  
Angle-seek synced! skip=0  new_lba=0x0  
Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x826de30  
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x826de30  
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x826de30  
Checking for MOV
DEMUXER: freeing demuxer at 0x826de30  
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x826de30  
Checking for REAL
DEMUXER: freeing demuxer at 0x826de30  
DEMUXER: freeing demuxer at 0x826de30  
DEMUXER: freeing demuxer at 0x826de30  
DEMUXER: freeing demuxer at 0x826de30  
DEMUXER: freeing demuxer at 0x826de30  
DEMUXER: freeing demuxer at 0x826de30  
DVD Seek! lba=0x0  cell=0  packs: 0x0-0xCEF  
Angle-seek synced! skip=0  new_lba=0x0  
system stream synced at 0xD (0)!
==> Found video stream: 0
Detected MPEG-PS file format!
Searching for sequence header... OK!
VIDEO:  MPEG2  720x480  (aspect 2)  29.97 fps  12000.0 kbps (1500.0
kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
Detected audio codec: [mp3] drv:1 (MPEG layer-2, layer-3)
Initializing audio codec...
Selecting Audio Decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer
mp3lib: made decode tables with MMX optimization
init layer2&3 finished, tables done
mp3lib: using MMX optimized decore!
MPEG 1.0, Layer III, 48000 Hz 56 kbit Stereo, BPF: 168
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: srate=48000  chans=2  bps=2  sfmt=0x10  ratio: 7000->192000
SUB: Detected subtitle file format: mpsub
SUB: Read 183 subtitles.
libavcodec: CPU flags: mmx mmxext sse
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
==========================================================================
Opening Video Decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480, Mpeg PES  
[PP] Sorry, postprocessing is not available
[expand] query(Planar YV12) -> 1
[expand] query(Planar I420) -> 1
[expand] query(Planar IYUV) -> 1
vo_debug: query(Mpeg PES) returned 0x0 (i=0) 
Couldn't find matching colorspace - retrying with -vop scale...
SwScale: -1 x -1 (-1=no scaling)
vo_debug: query(Mpeg PES) returned 0x0 (i=0) 
Sorry, selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening Video Decoder: [libmpeg2] MPEG 1/2 Video decoder v2.0
libmpeg2: Using MMXEXT for IDCT transform
libmpeg2: Using MMXEXT for motion compensation
VDec: vo config request - 720 x 480, Planar YV12  
[PP] Using external postprocessing filter, max q = 6
vo_debug: query(Planar YV12) returned 0xC01 (i=0) 
vo_debug: query(Planar I420) returned 0xC01 (i=1) 
vo_debug: query(Planar IYUV) returned 0xC01 (i=2) 
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
video_out->init(720x480->720x540,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0  
REQ: flags=0x401  req=0x0  
videocodec: libavcodec (720x480 fourcc=58564944 [DIVX])
Detected video codec: [mpeg12] drv:1 prio:0 (MPEG 1 or 2)
==========================================================================
MP3 audio selected
Writing AVI header...
LAME version 3.91  (http://www.mp3dev.org/)
Using polyphase lowpass  filter, transition band: 19548 Hz - 20129 Hz

misc:

	scaling: 0.000000
	ch0 (left) scaling: 0.000000
	ch1 (right) scaling: 0.000000
	filter type: 0
	quantization: ISO
	huffman search: normal
	experimental X=0 Y=0 Z=0
	...

stream format:

	MPEG-1 Layer 3
	2 channel - stereo
	padding: auto
	variable bitrate - VBR rh (default)
	...

psychoacoustic:

	tonality estimation limit: 8871.700195 Hz
	using short blocks: allowed
	adjust masking: -1.000000 dB
	psymodel: 1
	noise shaping: 1
	 ^ amplification: 0
	 ^ stopping: 0
	ATH: using
	 ^ type: 4
	 ^ adjust type: 3
	 ^ adapt threshold type: 2
	using temporal masking effect: yes
	...

XXX initial  v_pts=0.000  a_pos=7032 (0.315) 
*** [pp] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
Pos:   0.0s      1f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
A/Vms 6/6 D*** [pp] Allocating mp_image_t, 720x480x12bpp YUV planar,
518400 bytes
*** [lavc] Allocating mp_image_t, 720x480x12bpp YUV planar, 518400 bytes
*** [expand] Direct Rendering mp_image_t, 720x480x12bpp YUV planar,
518400 bytesusing npp filters 0x120000/0x120000
Pos:   0.1s      2f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
A/Vms 6/12 *** [pp] Allocating mp_image_t, 720x480x12bpp YUV planar,
518400 bytes
Pos:   0.1s      3f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
A/Vms 6/13 Pos:   0.1s      4f ( 0%)   0fps Trem:   0min   0mb 
A-V:0.000 [0:0] A/Vms 6/13 ==> Found audio stream: 128
Pos:   0.2s      5f ( 0%)   0fps Trem:   0min   0mb  A-V:0.000 [0:0]
A/Vms 6/13 Floating point exception


System Information:

Distribution: Debian Sid
Kernel Version: 2.4.19-pre4 i686
Libc Version: libc-2.2.5.so
X11 Version: XFree86 Version 4.1.0.1
GCC Version: gcc version 2.95.4 20011002 (Debian prerelease)
LD Version: GNU ld version 2.12.90.0.1 20020307 Debian/GNU Linux
as version: GNU assembler 2.12.90.0.1 20020307 Debian/GNU Linux

CPUInfo:
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 11
model name	: Intel(R) Pentium(R) III Mobile CPU      1133MHz
stepping	: 1
cpu MHz		: 1129.589
cache size	: 512 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 2
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat
pse36 mmx fxsr sse
bogomips	: 2254.43

VideoCard:
VGA compatible controller: nVidia Corporation GeForce2 Go (rev b2)

VideoDriver:
Nvidia Binary vsn 2802.

Audio Controller:
Multimedia audio controller: ESS Technology ES1983S Maestro-3i PCI Audio
Accelerator (rev 10)




More information about the MPlayer-users mailing list