Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 93390 - ffmpeg2theora seg faults
Summary: ffmpeg2theora seg faults
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-20 18:00 UTC by Lee
Modified: 2005-10-17 13:48 UTC (History)
0 users

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


Attachments
diff for libtheora/libtheora-1.0_alpha4.ebuild (THEO,522 bytes, patch)
2005-06-13 05:21 UTC, 4nykey
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lee 2005-05-20 18:00:55 UTC
ffmpeg2theora my.vob segfaults...



Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
ffmpeg2theora my.vob

ffmpeg2theora VTS_01_4.VOB
Input #0, mpeg, from 'VTS_01_4.VOB':
  Duration: 577013:42:28.6, start: 2994.172378, bitrate: N/A
  Stream #0.0: Video: mpeg2video, 720x480, 29.97 fps
  Stream #0.1: Audio: ac3, 48000 Hz, stereo, 192 kb/s
  Stream #0.2: Audio: ac3, 48000 Hz, stereo, 192 kb/s
  Resize: 720x480 => 320x240
No accelerated IMDCT transform found
  Resample: 48000Hz => 44100Hz
[mpeg @ 0xb7fca540]read_seek: 0 0
[mpeg @ 0xb7fca540]using cached pos_max=0x37dde80e pos_limit=0x37dde80e
dts_max=20703298
[mpeg @ 0xb7fca540]pos_min=0x80e pos_max=0x37dde80e dts_min=269486288
dts_max=20703298
[mpeg @ 0xb7fca540]2062 937289742 937289742 / 269486288 20703298 20703298
target:0 limit:937289742 start:937289742 noc:1
[mpeg @ 0xb7fca540]pos_min=0x80e pos_max=0x37dde80e dts_min=269486288
dts_max=20703298
[mpeg @ 0xb7fca540]2062 468711438 937289742 / 269486288 53386112 20703298
target:0 limit:937289741 start:468645901 noc:0
[mpeg @ 0xb7fca540]pos_min=0x80e pos_max=0x1beff80e dts_min=269486288
dts_max=53386112
[mpeg @ 0xb7fca540]2062 468711438 468711438 / 269486288 53386112 53386112
target:0 limit:468645900 start:468645900 noc:1
[mpeg @ 0xb7fca540]pos_min=0x80e pos_max=0x1beff80e dts_min=269486288
dts_max=53386112
[mpeg @ 0xb7fca540]2062 234395662 468711438 / 269486288 11845613 53386112
target:0 limit:468645899 start:234323980 noc:0
[mpeg @ 0xb7fca540]pos_min=0x80e pos_max=0xdf8980e dts_min=269486288
dts_max=11845613
[mpeg @ 0xb7fca540]2062 234395662 234395662 / 269486288 11845613 11845613
target:0 limit:234323979 start:234323979 noc:1
[mpeg @ 0xb7fca540]pos_min=0x80e pos_max=0xdf8980e dts_min=269486288
dts_max=11845613
[mpeg @ 0xb7fca540]2062 117264398 234395662 / 269486288 289520803 11845613
target:0 limit:234323978 start:117163020 noc:0
[mpeg @ 0xb7fca540]pos_min=0x80e pos_max=0x6fd500e dts_min=269486288
dts_max=289520803
[mpeg @ 0xb7fca540]2062 360462 117264398 / 269486288 269531333 289520803
target:0 limit:117163019 start:2063 noc:0
[mpeg @ 0xb7fca540]pos=0x80e 269486288<=0<=269531333
Segmentation fault


Expected Results:  
made an ogg theora file!!



same vob file works in win32 version...
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2005-05-20 18:41:52 UTC
Which version? `emerge --info`, please.
Comment 2 Lee 2005-05-20 18:44:50 UTC
ffmpeg2theoda-0.12 and ffmpeg2theoda-0.13


emerge --info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r8 i686)
=================================================================
System uname: 2.6.11-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, May 13 2005, 05:24:45)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/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"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.blueyonder.co.uk"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="x86 X a52 aac aalib acpi alsa apm arts autofs avi berkdb bitmap-fonts
bonobo cdr crypt cups curl dts dv dvd dvdr eds emboss encode esd fam ffmpeg
foomaticdb fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile
ieee1394 imagemagick imap imlib ipv6 jpeg kde ldap libg++ libwww mad mbox mikmod
mime motif mozilla mp3 mpeg ncurses nls ogg oggvorbis openal opengl oss pam pcre
pda pdflib perl png pnp postgres python qt quicktime readline samba sdl slc
spell ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode
usb vorbis xft xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 3 4nykey 2005-06-13 05:18:36 UTC
It appears to be due to 'encode' USE flags in libtheora ebuild.

I.e './configure --enable-encode' will result in

>/* Do not build encoding support */
> #define THEORA_SUPPORT_ENCODE 0

in config.h. Hence no encoding support in lib and ff2theora will segfault.

So it should be either '--disable-encode' or nothing.
Comment 4 4nykey 2005-06-13 05:21:43 UTC
Created attachment 61146 [details, diff]
diff for libtheora/libtheora-1.0_alpha4.ebuild

Something like this should do it.
Comment 5 Hanno Böck gentoo-dev 2005-10-17 13:48:02 UTC
Added a check to 0.15 whether libtheora has been built with encode.