Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 53908

Summary: mplayer can't read avi index written by mencoder - 1GB ODML_CHUNKLEN problem
Product: Gentoo Linux Reporter: Honza <hkmaly>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ciaran.mccreesh, ferringb
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Honza 2004-06-14 11:37:27 UTC
MPlayer (media-video/mplayer-1.0_pre4) can't read whole index of avi file written by mencoder (media-video/mplayer-1.0_pre4) if that avi file is over 1GB (ODML_CHUNKLEN) in size. It behave like only first 1GB is indexed, after that point no seeking is possible.

With -forceidx, index is regenerated and seeking works in whole avi.

Reproducible: Always
Steps to Reproduce:
1. Create avi file over 1GB using mencoder (for example, from Lord Of The Rings: Two Towers Special Edition).
2. Play it
3. Try to seek 1 minute before end.

Actual Results:  
It never cross the 1GB boundary using seek - it will seek to 1GB and do weird
things if it's not keyframe. You can play from it to end of movie, of course.

Expected Results:  
Seek in whole movie.

I think problem begin with adding ODML_CHUNKLEN test code to
libmpdemux/muxer_avi.c - mplayer 0.92 don't have anything like it and it can
generate avi files over 1GB and play them without problem.

Of course, I don't know if real bug is in libmpdemux/muxer_avi.c or if mencoder
generate right avi and bug is in libmpdemux/demux_avi.c which can't read them.

Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.4.26)
=================================================================
System uname: 2.4.26 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.4.10
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -mcpu=athlon -march=i686 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /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/bind
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=athlon -march=i686 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/mnt/hda04/gentoo-var-tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d aalib apache2 apm arts avi berkdb caps cdr crypt cups curl
dga doc dvd encode esd flac foomaticdb gd gdbm gif gpm gtk gtk2 imagemagick
imlib innodb ipv6 java jpeg lcms lesstif libg++ libwww mad mbox mcal memlimit
mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib
perl png python qt quicktime readline samba sdl slang snmp spell sqlite sse ssl
svga tcltk tcpd tetex theora tiff truetype unicode usb vhosts videos wmf x86 xml
xml2 xmms xosd xv zlib"
Comment 1 Brian Harring (RETIRED) gentoo-dev 2004-06-25 12:21:29 UTC

*** This bug has been marked as a duplicate of 52474 ***