Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91728 - xvidcap doesn't capture
Summary: xvidcap doesn't capture
Status: RESOLVED DUPLICATE of bug 115675
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Jonathan Smith (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-06 12:33 UTC by Dan Andresan
Modified: 2006-01-21 09:39 UTC (History)
2 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 Dan Andresan 2005-05-06 12:33:29 UTC
I try to record some screen action as mpeg4.
I get: xtoffmpeg.XImageToFFMPEG(): image depth 32 not supported ... aborting
The problem is in src/xtoffmpeg.c in the following area (easy to identify, search for the error string):

case 32:
                if ( c_info.alpha_mask == 0xFF000000 && image->green_mask == 0xFF00 ) {
                    // byte order is relevant here, not endianness
                    // endianness is handled by avcodec, but atm no such thing
                    // as having ABGR, instead of ARGB in a word. Since we
                    // need this for Solaris/SPARC, but need to do the conversion
                    // for every frame we do it outside of this loop, cf. below
                    // this matches both ARGB32 and ABGR32
                    input_pixfmt = PIX_FMT_ARGB32;
                } else {
                    fprintf (stderr, "xtoffmpeg.XImageToFFMPEG(): image depth %i not supported ... aborting\n", image
->bits_per_pixel);
                    exit (1);
                }
                break;

If I bypass the error, by replacing exit(1) with input_pixfmt = PIX_FMT_ARGB32, things work beautifully.

Now please could someone smarter than me explain what is going on?
I run amd64 with nvidia graphics 24 bit image depth (seen as 32). Please tell ne if I need to provide more info.

Thanks.

Reproducible: Always
Steps to Reproduce:
1.run xvidcap
2. go into options
3. save as movie.mpeg, rate 25, format MPEG4

Actual Results:  
xvidcap exits witt 
xtoffmpeg.XImageToFFMPEG(): image depth 32 not supported ... aborting 

Expected Results:  
record my screen as a movie 

from Xorg.0.log: 
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
Comment 1 Jonathan Smith (RETIRED) gentoo-dev 2005-06-25 10:58:06 UTC
if this is still a problem, please provide emerge info...
Comment 2 Dan Andresan 2005-06-25 15:56:52 UTC
thank you Jonathan for looking at this bug report. My emerge info is below: 
 
shuttle ~ # emerge info 
Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, 
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r11 x86_64) 
================================================================= 
System uname: 2.6.11-gentoo-r11 x86_64 AMD Athlon(tm) 64 Processor 3500+ 
Gentoo Base System version 1.6.12 
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 11 2005, 00:28:34)] 
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
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-r10 
sys-devel/libtool:   1.5.16 
virtual/os-headers:  2.6.8.1-r4 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon64 -mtune=athlon64 -O2 -pipe" 
CHOST="x86_64-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/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=athlon64 -mtune=athlon64 -O2 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ 
http://gentoo.mirror.sdv.fr http://gentoo.math.bme.hu" 
LINGUAS="en_GB ro" 
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="amd64 X aac aalib acl acpi alsa apache2 arts audiofile avi berkdb 
bitmap-fonts bluetooth bzlib caps cdparanoia cdr cjk crypt cups curl dga dri 
dv dvdread emacs encode fam fbcon ffmpeg flac flash font-server gd gdbm gif 
gphoto2 gpm gstreamer gtk2 imagemagick imap imlib innodb ipv6 jabber jack java 
jikes jp2 jpeg jpeg2k junit kde lesstif libg++ libwww lirc lzw lzw-tiff mad 
maildir mbox mcal mikmod mng motif mp3 mpeg mysql ncurses network nls nptl 
nvidia offensive ogg opengl pam pcre pda perl pic png povray prelude python qt 
quicktime readline ruby samba sasl scanner sdl slang snmp speex spell sqlite 
ssl svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts 
unicode usb userlocales vhosts vorbis wmf xine xml2 xmms xosd xpm xrandr xv 
xvid yahoo zlib linguas_en_GB linguas_rouserland_GNU kernel_linux elibc_glibc" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS 
 
Comment 3 Tommy McDaniel 2005-09-15 02:17:14 UTC
I have the same problem, also on AMD64 (dual Opterons). My emerge info is as 
follows: 
 
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 
2.6.11-gentoo-r11 x86_64) 
================================================================= 
System uname: 2.6.11-gentoo-r11 x86_64 AMD Opteron(tm) Processor 246 
Gentoo Base System version 1.6.13 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    1.2.12 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 
sys-devel/binutils:  2.15.92.0.2-r10 
sys-devel/libtool:   1.5.18-r1 
virtual/os-headers:  2.6.11-r2 
ACCEPT_KEYWORDS="amd64" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=opteron -O3 -pipe" 
CHOST="x86_64-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.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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=opteron -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
LANG="en_US.utf8" 
LC_ALL="en_US.utf8" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="amd64 X Xaw3d a52 aac aalib accessibility acl acpi adns aim alsa apache2 
arts audiofile avi bash-completion bcmath berkdb bidi bitmap-fonts bluetooth 
bmp bonobo bzlib calendar canna cdb cdparanoia cdr chasen cjk crypt cscope 
ctype cups curl curlwrappers db2 dba dbase dbm dbx dedicated dga dio directfb 
doc dv dvb dvd dvdr dvdread eds emacs emacs-w3 emboss emul-linux-x86 encode esd 
ethereal evo examples exif expat fam fastcgi fbcon ffmpeg flac flash flatfile 
foomaticdb fortran freetds freewnn ftp gb gcj gd gdbm geoip ggi gif ginac glut 
gmp gnome gnustep gnutls gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile hal 
hardened hardenedphp howl hyperwave-api iconv icq imagemagick imap imlib 
inifile innodb interbase iodbc ipv6 jabber jack javascript joystick jpeg kde 
kerberos krb4 ladcca lcms ldap leim libcaca libg++ libgda libwww lirc 
lm_sensors lzw lzw-tiff m17n-lib mad maildir mailwrapper matroska mbox mcal 
mcve memlimit mhash migemo mikmod milter mime ming mmap mng mnogosearch motif 
mozilla mp3 mpeg mpi msession msql mssql mule mysql mysqli nas ncurses neXt 
netcdf nis nls nocd nptl oci8 odbc offensive ofx ogg openal opengl oracle 
oracle7 osc oscar oss ovrimos pam pcntl pcre pda pdflib perl php plotutils png 
portaudio posix postgres ppds prelude python qdbm qt quicktime readline recode 
ruby samba sapdb sasl scanner sdl session sharedext sharedmem shorten simplexml 
skey slang smartcard sndfile snmp soap sockets socks5 source sox speex spell 
spl sqlite ssl svg symlink sysvipc szip tcltk tcpd tetex theora threads tidy 
tiff tokenizer truetype truetype-fonts type1-fonts unicode usb userlocales v4l 
vcd vhosts videos vorbis wddx wifi wmf wxwindows xface xine xml xml2 xmlrpc 
xmms xosd xpm xprint xsl xv xvid yahoo yaz zeo zlib userland_GNU kernel_linux 
elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, PORTDIR_OVERLAY 
Comment 4 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-01-21 09:20:28 UTC

*** This bug has been marked as a duplicate of 115675 ***
Comment 5 Michael Ploujnikov 2006-01-21 09:26:47 UTC
I don't think this bug is a duplicate of #115675.

I just emerged xvidcap-1.1.3-r2 on an amd64 system, and I was unable to capture because gvidcap crashed with:
[mpeg4 @ 0x2aaaac343e90]removing common factors from framerate
xtoffmpeg.XImageToFFMPEG(): image depth 32 not supported ... aborting

This does not fit the title of bug #115675. Moreover, the patch in bug #115675 only fixes the emerging process, it does not fix this recording bug.
Comment 6 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-01-21 09:34:27 UTC
(In reply to comment #5)
> This does not fit the title of bug #115675. Moreover, the patch in bug #115675
> only fixes the emerging process, it does not fix this recording bug.

Patch xvidcap-1.1.3-use-ffmpeg-0.4.9.patch fixes the codec issue in xvidcap (this patch is not mentioned in the bug, but symptoms are in comment #4).
Comment 7 Michael Ploujnikov 2006-01-21 09:39:52 UTC
Both bugs are marked RESOLVED, but the capturing issue still exists.