Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276910 - media-video/mplayer-1.0_rc2_p20090530: on AMD Opteron 2382 (Barcelona, 10h) mencoder produces incorrect videos from single PNG files, independently of the encoder used (tested: lavc, copy), FIXED in the live ebuild mplayer-9999
Summary: media-video/mplayer-1.0_rc2_p20090530: on AMD Opteron 2382 (Barcelona, 10h) m...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-07 10:50 UTC by Some stupid real name
Modified: 2009-08-03 21:11 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 Some stupid real name 2009-07-07 10:50:04 UTC
This is just a note that something is wrong with the current version of MPlayer available in Portage tree, but the live ebuild fixes it. Thus, it might be a good idea to test previous versions of MPlayer or package whatever is in the version control at the moment as the next update. If that is not possible, then we will have to wait for another rc and hopefully the fix explained at the end of this bug report will help someone fix their system temporarily.

Mencoder produces incorrect videos when used with different codecs and encoders, for example when used with

mencoder "mf://*.png" -mf fps=5 -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=10000 -o movie.avi

The result is that the movie oscillates between being dark and bright (original files were simply gnuplot plots with white background), multiple frames are stacked on top of each other, etc. 

However, mplayer plays other (non-mencoder encoded) movies correctly. Thus, there must be something wrong with mencoder in that particular version.

I have not tested other versions, but it seems that the issue has been fixed upstream -- the live ebuild mplayer-9999 works fine and solves the issue. 

FIX: emerge mplayer-9999, i.e. the live ebuild. This can be done by adding a line 

 =media-video/mplayer-9999 ~amd64

to your /etc/portage/profile/package.keywords, and 

 =media-video/mplayer-9999

to /etc/portage/profile/package.unmask, and typing emerge mplayer. If everything is set the live ebuild should be emerged.

Reproducible: Always

Steps to Reproduce:
1. Generate a bunch of PNG files.
2. mencoder "mf://*.png" -mf fps=5 -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=10000 -o movie.avi
3. mplayer movie.avi

Actual Results:  
Movie is incorrectly encoded.

Expected Results:  
Correctly encoded movie.
Comment 1 Wormo (RETIRED) gentoo-dev 2009-07-11 21:35:44 UTC
Thanks for the report. Please include your 'emerge --info' as well, since this could also be a toolchain issue (and the recent mencoder source code doesn't happen to trigger the problem anymore).
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-07-15 09:24:26 UTC
Reopen this bug when you provide the requested information.
Comment 3 Some stupid real name 2009-07-19 23:14:24 UTC
That was a while ago, so the difference between what is below and what was then is that the GCC used back then was gcc-4.3.3-r2 and the CFLAGS were -O3 -march=barcelona, i.e. without the GRAPHITE loop optimizations.

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.4.0, glibc-2.10.1-r0, 2.6.30 x86_64)
=================================================================
System uname: Linux-2.6.30-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2382-with-gentoo-2.0.1
Timestamp of tree: Sun, 19 Jul 2009 06:30:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r2, 2.6.2-r1
dev-util/cmake:      2.6.4-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -pipe -march=barcelona -fomit-frame-pointer -floop-strip-mine -floop-block -floop-interchange -ftree-loop-distribution -ftree-loop-im"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CPPFLAGS="-O3 -pipe -march=barcelona -fomit-frame-pointer -floop-strip-mine -floop-block -floop-interchange -ftree-loop-distribution -ftree-loop-im"
CXXFLAGS="-O3 -pipe -march=barcelona -fomit-frame-pointer -floop-strip-mine -floop-block -floop-interchange -ftree-loop-distribution -ftree-loop-im"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sfperms strict unmerge-orphans userfetch"
FFLAGS="-O3 -pipe -march=barcelona -fomit-frame-pointer -floop-strip-mine -floop-block -floop-interchange -ftree-loop-distribution -ftree-loop-im"
GENTOO_MIRRORS="ftp://gentoo.llarian.net/pub/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en pl"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/odra"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac aalib acl acml acpi acpiu alsa amd64 amrnb amrwb apm aspell async audacious bash-completion berkdb blas boost bzip2 cairo cdparanoia cleartype cli corefonts cracklib crypt cups curl cxx dbus dga divx djvu dri dts dvd dvdread enca encode encoder equalizer expat ffmpeg fftw fontconfig fortran fpx gcj gd gdbm gfortran ggi gif git glib gmp gnutls gpm gpu graphite graphviz gs gsl gtk hdri heterogeneous iconv icu imagemagick imlib isdnlog java jpeg jpg lapack latex lcms ldap libcaca libssh2 live lm_sensors lua lzo mad metis midi mmx mmxext mng mp3 mpeg2 mpfr mpi mplayer mudflap multilib mysql nas ncurses network nforce2 nls nptl nptlonly nsplugin numpy nut nvidia objc objc++ ogg openexr opengl openmp openssl pam parmetis patented pch pcre pdf perl php plotutils pmu png pnm povray ppds pppd python qhull qt3 qt3support qt4 quicktime radio rar readline reflection rtc samba schroedinger sensord server session shaders slp smp sms sparse speex spell spl sqlite sse sse2 sse3 ssh ssl ssse3 subversion svg svn swat sysfs syslog tcl tcpd tga threads tiff tk tls truetype umfpack unicode vdpau vim-syntax vmd voice vorbis vtk webkit wma wmf wxwidgets wxwindows x264 xcomposite xemacs xml xorg xulrunner xvid zeroconf zlib" ALSA_CARDS="hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-08-03 21:11:02 UTC
Try 20090731, reopen if this is still a problem.