<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>62939</bug_id>
          
          <creation_ts>2004-09-05 10:35 0000</creation_ts>
          <short_desc>xvid-1.0.2 needs 64-bit patch as in 1.0.1</short_desc>
          <delta_ts>2004-10-04 12:21:54 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Library</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>zypher@gentoo.org</reporter>
          <assigned_to>media-video@gentoo.org</assigned_to>
          <cc>kugelfang@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>zypher@gentoo.org</who>
            <bug_when>2004-09-05 10:35:48 0000</bug_when>
            <thetext>Please patch xvid-1.0.2&apos;s sources to work on 64bit platforms.
1.0.1 shows an example. That patch doesn&apos;t work on 1.0.2 unfortunately.
Cheers,
Marc.

Reproducible: Always
Steps to Reproduce:
emerge xvid-1.0.2 on 64-bit platforms
Actual Results:</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zypher@gentoo.org</who>
            <bug_when>2004-09-05 10:36:44 0000</bug_when>
            <thetext>Hi herd!
Kugelfang will take a look at this.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fjmccloud@yahoo.com</who>
            <bug_when>2004-10-02 11:48:30 0000</bug_when>
            <thetext>1.0.1 is unstable on amd64, too.
I emerged 1.0.2, discovered it segfaults, found this bug report, and emerged 1.0.1 in hopes it would work, but it segfaults in the same manner (and also has jerky framerate compared to the old 0.9.1).

Observations:
1.  using default configuration in transcode will cause a segfault during DVD transcoding.  In my case it occurs after about 6000 frames.
2.  enabling quarter pel in the config file causes a segfault within 40 frames.

Command line used:
transcode -i /dev/dvd -x dvd -f 29.970 -I 5 -w 800 -y xvid4 -o myfile_xvid4_1pass_qpeltrellisbframe_800.avi -z

Sample problem:

libdvdread: Found 1 VTS&apos;s
libdvdread: Elapsed time 0
[encoder.c] Delaying audio (0)
[encoder.c] Delaying audio (0)],  43.20 fps, EMT: 0:00:00, ( 0| 0| 1)
encoding frames [000000-006536],   6.79 fps, EMT: 0:03:38, ( 0| 0| 0)
clean up | frame threads | unload modules | cancel signal | internal threads | done
[transcode] encoded 6537 frames (0 dropped, 0 cloned), clip length 218.12 s

And if we enable quarterpel:
[encoder.c] Delaying audio (0)
[encoder.c] Delaying audio (0)],  53.23 fps, EMT: 0:00:00, ( 0| 1| 1)
Segmentation fault00000-000040],  19.24 fps, EMT: 0:00:01, ( 0| 0| 9)

My emerge info is:
Portage 2.0.50-r11 (default-amd64-2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r0, 2.6.7)
=================================================================
System uname: 2.6.7 x86_64 5
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS=&quot;amd64&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -pipe&quot;
CHOST=&quot;x86_64-pc-linux-gnu&quot;
COMPILER=&quot;&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control&quot;CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs ccache&quot;
GENTOO_MIRRORS=&quot;http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;X aac alsa amd64 apm audiofile avi berkdb bitmap-fonts bonobo cdr chroot crypt cups dga dnd dv dvd dvdr encode esd faad ffmpeg flac foomaticdb freetype gdbm gif gimpprint glade gnome gphoto2 gpm gtk gtk2 icq ieee1394 imlib joystick jpeg libg++ libwww lufsusermount mad matroska mikmod mng motif mozilla mpeg mpeg4 multilib ncurses nogcj oggvorbis opengl openssh oss pam pdflib perl png pthreads python quicktime readline samba sdl slang spell ssl tcltk tcpd theora tiff transcode truetype usb xine xml2 xmms xprint xv xvid zlib&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fjmccloud@yahoo.com</who>
            <bug_when>2004-10-02 16:42:26 0000</bug_when>
            <thetext>Sorry, I forgot to add the -T 1,-1 argument to the command line, and that fixes the 6000 frame stoppage.  ;-)

But I still contend that quarterpel = 1 causes a segfault even in xvid-1.0.1.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>marc_ozon@hotmail.com</who>
            <bug_when>2004-10-04 06:56:06 0000</bug_when>
            <thetext>The patch has now been added to xvid-1.0.2.ebuild (as of 3 Oct.), but with one minor issue:  there&apos;s a typo in the ebuild that prevents the patch from being applied.

Line 27 of the ebuild reads:
 epatch ${FILESIDR}/${PN}-1.0.1-64bit-clean.patch

Should be:
 epatch ${FILESDIR}/${PN}-1.0.1-64bit-clean.patch

I don&apos;t use a 64-bit platform, so I can&apos;t verify if the patch does what it&apos;s supposed to do, but the ebuild applies the patch on all architectures.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>phosphan@gentoo.org</who>
            <bug_when>2004-10-04 07:36:27 0000</bug_when>
            <thetext>Thanks for the hint. Looks like someone was in a hurry. I guess this can be closed, then?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fjmccloud@yahoo.com</who>
            <bug_when>2004-10-04 12:21:54 0000</bug_when>
            <thetext>I did an emerge sync, emerged the 1.0.2 ebuild, and first pass encoding no longer segfaults (good!) but then I tried quarterpel again.  It still segfaults on amd64.  Should this be filed as a different bug?  It looks like no patch has addressed this before since it also affects 1.0.1.  Thanks!</thetext>
          </long_desc>
      
    </bug>

</bugzilla>