Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55144 - xine-lib-1_rc5 fails to play most AVIs (ffmpeg problem?)
Summary: xine-lib-1_rc5 fails to play most AVIs (ffmpeg problem?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 55237 (view as bug list)
Depends on:
Blocks: 55534
  Show dependency tree
 
Reported: 2004-06-25 05:13 UTC by G.K.MacGregor
Modified: 2004-06-29 03:53 UTC (History)
5 users (show)

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 G.K.MacGregor 2004-06-25 05:13:41 UTC
All of my digital camera AVIs and most of my DivX and XviD AVIs cannot be
played in xine-lib-1_rc5. The digital camera AVIs use the MJPG video format.

All versions of xine-lib previous to 1_rc5 worked perfectly.

Reproducible: Always
Steps to Reproduce:
1. Emerge xine-lib-1_rc5.
2. Attempt to play an XVID or MJPG AVI file.
Actual Results:  
A popup appears saying "The stream (filename) use an unsupported codec: 
Video Codec: (varies depending on codec, but says DIVX, XVID or MJPG 
Start playback anyway?" 
Answering yes causes soundtrack to be played to a black screen, no video. 

Expected Results:  
Both sound and video should be played. 

I believe Xine deals with these formats using its own ffmpeg plugin. Under 
xine-lib-1_rc4, the video plugins built into my Xine were... 
 
$ xine --list-plugins=video_decoder 
 Available xine's plugins: 
   -Video decoder: 
     dxr3-mpeg2, real, mpeg2, image, ffmpegvideo, yuv, rgb, qtv, win32v, 
     bitplane, ffmpeg-wmv8. 
 
...but in my Xine built from the xine-lib-1_rc5 ebuild, both ffmpeg and 
ffmpeg-wmv8 are missing... 
 
$ xine --list-plugins=video_decoder 
 Available xine's plugins: 
   -Video decoder: 
     dxr3-mpeg2, real, mpeg2, image, yuv, rgb, qtv, win32v, bitplane. 
 
But when emerging either rc4 or rc5, when the ./configure stage finishes they 
both mention that the ffmpeg plugin will be built... 
 
config.status: creating src/libffmpeg/Makefile 
config.status: creating src/libffmpeg/libavcodec/Makefile 
config.status: creating src/libffmpeg/libavcodec/armv4l/Makefile 
config.status: creating src/libffmpeg/libavcodec/i386/Makefile 
config.status: creating src/libffmpeg/libavcodec/mlib/Makefile 
config.status: creating src/libffmpeg/libavcodec/alpha/Makefile 
config.status: creating src/libffmpeg/libavcodec/ppc/Makefile 
config.status: creating src/libffmpeg/libavcodec/sparc/Makefile 
config.status: creating src/libffmpeg/libavcodec/libpostproc/Makefile 
 
 * video decoder plugins: 
   - MPEG 1,2         - Amiga Bitplane 
   - Raw RGB          - Raw YUV 
   - ffmpeg: 
     - MPEG-4 (ISO, Microsoft, DivX*, XviD) 
     - Creative YUV    - Motion JPEG 
     - Cinepak         - MS Video-1 
     - FLI/FLC         - MS RLE 
     - Id RoQ          - Id Cin 
     - Apple Graphics  - Apple Video 
     - Apple Animation - Interplay Video 
     - Westwood VQA    - Origin Xan 
     - H.263           - Intel Indeo 3 
     - SVQ1            - SVQ3 
     - Real Video 1.0  - Real Video 2.0 
     - 4X Video        - Sierra Video 
     - Asus v1/v2      - HuffYUV 
     - On2 VP3         - DV 
     - 8BPS            - Duck TrueMotion v1 
     - ATI VCR1        - Flash Video 
     - ZLIB            - MSZH 
   - dxr3_video 
   - w32dll 
   - png 
 
As I've said rc5 does show this after the ./configure stage as well, so the 
fact that ffmpeg is missing from the resulting executable does not make sense. 
 
# emerge info 
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 
2.6.5-gentoo) 
================================================================= 
System uname: 2.6.5-gentoo i686 AMD Athlon(tm) XP 2000+ 
Gentoo Base System version 1.4.16 
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" 
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/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="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache fixpackages sandbox userpriv usersandbox" 
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ 
http://ftp.heanet.ie/pub/gentoo/ http://gentoo.oregonstate.edu/ 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
PKGDIR="/usr/local/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="3dnow X acpi alsa apm avi caps cdr cjk crypt cups dga dvd dvdr encode 
flac foomaticdb gd gdbm gif gimpprint gpm gtk2 imlib jack jack-tmpfs java 
joystick jpeg kde libwww linguas_en_GB live mad mikmod mmx motif mpeg mysql 
ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime 
readline samba sdl slang speex spell sse ssl tcltk tcpd tetex tiff truetype 
x86 xml2 xmms xv zlib"
Comment 1 Pete Plank 2004-06-25 06:17:26 UTC
I'm experiencing the same difficulty with a very similar configuration:

root@misaki distfiles # emerge info
Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0,2.3.4.20040619-r0, 2.6.7-gentoo-r2)
=================================================================
System uname: 2.6.7-gentoo-r2 i686 AMD Athlon(tm) XP 3000+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -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.1/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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aalib alsa apm arts avi berkdb bindist bonobo cdr cjk crypt cups directfb dvd encode esd f77 fam foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imap imlib java jpeg kde libg++ libwww mad mikmod mmx mmxext motif mozilla mpeg mysql ncurses nls nvidia oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba sdl slang spell sse ssl stencil-buffer svga tcltk tcpd tiff truetype usb v4l wxwindows x86 xml xml2 xmms xv xvid zlib"

Comment 2 Manuel Lauss 2004-06-26 04:13:10 UTC
I experience the same problem. It seems to be a bug in xine's ffmpeg plugin.
Got this with xine --verbose=99:

load_plugins: cannot open plugin lib /usr/lib/xine/plugins/1.0.0/xineplug_decode_ff.so:
/usr/lib/xine/plugins/1.0.0/xineplug_decode_ff.so: undefined symbol: ff_pre_estimate_p_frame_motion

hope it helps.
Comment 3 Manuel Lauss 2004-06-26 04:37:21 UTC
I just got it working. Compiled xine-lib-1-rc5 without portage, copied the newly compiled xineplug_decode_ff.so over to xines plugin dir and it works.
Seems some patch portage applies is the real culprit.
I'll investigate it further.
Comment 4 Manuel Lauss 2004-06-26 06:08:53 UTC
Hmm, found it.
Delete the first hunk in the patch
/usr/portage/media-libs/xine-lib/files/protect-CFLAGS.patch-1_rc5
then re-digest an re-emerge the xine-lib-1_rc5 ebuild.
WorksForMe(TM)
Comment 5 G.K.MacGregor 2004-06-26 12:32:16 UTC
Manuel Lauss's fix WorksForMeToo! I can now play everything again.
Comment 6 Clark Torgerson 2004-06-26 23:17:22 UTC
Second confirmation for Manuel's fix. :o)
Comment 7 Martin Holzer (RETIRED) gentoo-dev 2004-06-28 03:46:06 UTC
*** Bug 55237 has been marked as a duplicate of this bug. ***
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2004-06-28 04:04:10 UTC
fixed in xine-lib-1_rc5-r1