Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103639 - media-video/mplayer: mencoder gives "Floating point exception" rotating quicktime MOV using ffmepg (mpeg4)
Summary: media-video/mplayer: mencoder gives "Floating point exception" rotating quick...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-24 16:58 UTC by Chris Fairles
Modified: 2006-06-22 08:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Fairles 2005-08-24 16:58:05 UTC
Attempting to rotate a movie.

mencoder 100_0278.MOV -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=1000
-vf rotate=1 -of lavf -o done.mov

MEncoder 1.0pre7-3.3.5-20050130 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
CPUflags: Type: 8 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX SSE SSE2

85 audio & 196 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0  data: 0x0 - 0x91ce5e
QuickTime/MOV file format detected.
--------------
MOV track #0: 177 chunks, 531 samples
MOV: Found MPEG4 movie Elementary Stream Descriptor atom (69)!
Image size: 640 x 480 (24 bpp)
Display size: 640 x 480
Fourcc: mp4v  Codec: 'MPEG-4'
--------------
MOV track #1: 177 chunks, 0 samples
Audio bits: 16  chans: 1  rate: 12000
Fourcc: ulaw
--------------
MOV: longest streams: A: #1 (177 samples)  V: #0 (531 samples)
VIDEO:  [mp4v]  640x480  24bpp  12.599 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7  fourcc:0x7634706D  size:640x480  fps:12.60  ftime:=0.0794
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1  (-1=autodetect) osd: 1
Opening video filter: [rotate=1]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
VIDEO CODEC ID: 12
audiocodec: framecopy (format=0 chans=1 rate=12000 bits=16 bps=24000 sample-0)
AUDIO CODEC ID: 0, TAG: 0
Writing AVI header...
WRITTEN HEADER
Floating point exception

From gdb: 
Program received signal SIGFPE, Arithmetic exception.
[Switching to Thread -1218275648 (LWP 30815)]
Error while running hook_stop:
Invalid type combination in ordering comparison.
0x083c3fa0 in __divdi3 (u=0xf521e80, v=0x0) at
/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/libgcc2.c:551
551     /var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/libgcc2.c: No
such file or directory.
        in /var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/libgcc2.c
gdb> bt
#0  0x083c3fa0 in __divdi3 (u=0xf521e80, v=0x0) at
/var/tmp/portage/gcc-3.3.5.20050130-r1/work/gcc-3.3.5/gcc/libgcc2.c:551
#1  0x08347b34 in av_frac_add (f=0x86b63a0, incr=0xf521e80) at utils.c:2935
#2  0x08346310 in compute_pkt_fields2 (st=0x86b60c0, pkt=0xbf99f420) at utils.c:2173
#3  0x083468a1 in av_interleaved_write_frame (s=0x85ef610, pkt=0xbf99f420) at
utils.c:2309
#4  0x08141807 in write_chunk (stream=0x869c220, len=0x0, flags=0x10) at
muxer_lavf.c:217
#5  0x0806d7b8 in main (argc=0x1, argv=0x1) at mencoder.c:1557

NOTE: Output above was generated with -ggbd3 added to cflags.

The error also occurs on a athalon xp using gcc 3.4.4

file 100_0278.MOV: Apple QuickTime movie (modified)

Recorded from a friends Kodak digital camera.



Reproducible: Always
Steps to Reproduce:
1. Get movie 100_0278.MOV
2. mencoder 100_0278.MOV -oac copy -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1000 -vf rotate=1 -of lavf -o done.mov
Actual Results:  
Floating Point Exception

Expected Results:  
Rotated movie dove.mov outputted.

dsotm movies # emerge --info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.5-r1, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.risq.qc.ca"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa apm arts avi bash-completion berkdb bitmap-fonts
browserplugin cdr crypt cscope cups curl divx4linux dvd dvdr eds emacs emboss
encode esd fam fftw foomaticdb fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2
imlib ipv6 java javascript jpeg libg++ libwww mad mikmod mjpeg mmx motif mozilla
mp3 mpeg msn mysql ncurses netboot nis nntp nptl nsplugin nvidia ogg oggvorbis
opengl oss pam pcmcia pdflib perl png posix python qt quicktime readline real
sdl smp spell sse sse2 ssl svga tcltk tcpd tetex threads tiff truetype
truetype-fonts type1-fonts vcd verbose vorbis wifi win32codecs wxwindows xine
xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS


dsotm movies # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.20GHz
stepping        : 9
cpu MHz         : 3192.180
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
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 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips        : 6307.84

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 15
model           : 2
model name      : Intel(R) Pentium(R) 4 CPU 3.20GHz
stepping        : 9
cpu MHz         : 3192.180
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 1
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 apic sep mtrr pge mca cmov
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe cid xtpr
bogomips        : 6373.37
Comment 1 Chris Fairles 2005-08-24 17:03:53 UTC
You can get the movie (9M) from
http://www.tripthelight.net/100_0278.MOV
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2006-06-21 17:04:33 UTC
Chris, has this been fixed in newer versions?
Comment 3 Steve Dibb (RETIRED) gentoo-dev 2006-06-22 08:09:16 UTC
needinfo