[Ffmpeg-devel] x11grab with 8 bpp (8 bit palette)

Oon Arfiandwi oon
Wed Jan 31 23:53:33 CET 2007


Dear ffmpeg developers,

I have problem to grab X11 with ffmpeg.
If I use 16 bpp, x11 grab works fine,
but if I change the color depth to 8 bit,
the x11 grab only record blank (the result
movie only blank with black color).

is it only happen on my configuration?
any other user have same problem?

if the problem is the ffmpeg bugs,
is it any patch?


these my configurations:

xdpyinfo:
----
name of display:    :0.0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    70101000
X.Org version: 7.1.1
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
     depth 1, bits_per_pixel 1, scanline_pad 32
     depth 4, bits_per_pixel 8, scanline_pad 32
     depth 8, bits_per_pixel 8, scanline_pad 32
     depth 15, bits_per_pixel 16, scanline_pad 32
     depth 16, bits_per_pixel 16, scanline_pad 32
     depth 24, bits_per_pixel 32, scanline_pad 32
     depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0x3200007, revert to PointerRoot
number of extensions:    30
     BIG-REQUESTS
     Composite
     DAMAGE
     DOUBLE-BUFFER
     DPMS
     Extended-Visual-Information
     GLX
     MIT-SCREEN-SAVER
     MIT-SHM
     MIT-SUNDRY-NONSTANDARD
     RANDR
     RECORD
     RENDER
     SECURITY
     SGI-GLX
     SHAPE
     SYNC
     TOG-CUP
     X-Resource
     XC-APPGROUP
     XC-MISC
     XFIXES
     XFree86-Bigfont
     XFree86-DGA
     XFree86-Misc
     XFree86-VidModeExtension
     XInputExtension
     XKEYBOARD
     XTEST
     XVideo
default screen number:    0
number of screens:    1

screen #0:
   dimensions:    1024x768 pixels (347x260 millimeters)
   resolution:    75x75 dots per inch
   depths (7):    8, 1, 4, 15, 16, 24, 32
   root window id:    0x55
   depth of root window:    8 planes
   number of colormaps:    minimum 1, maximum 1
   default colormap:    0x20
   default number of colormap cells:    256
   preallocated pixels:    black 0, white 1
   options:    backing-store NO, save-unders NO
   largest cursor:    64x64
   current input event mask:    0xfa6033
     KeyPressMask             KeyReleaseMask           EnterWindowMask
     LeaveWindowMask          ButtonMotionMask         KeymapStateMask
     StructureNotifyMask      SubstructureNotifyMask   SubstructureRedirectMask
     FocusChangeMask          PropertyChangeMask       ColormapChangeMask
   number of visuals:    13
   default visual id:  0x27
   visual:
     visual id:    0x27
     class:    PseudoColor
     depth:    8 planes
     available colormap entries:    256
     red, green, blue masks:    0x0, 0x0, 0x0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x28
     class:    GrayScale
     depth:    8 planes
     available colormap entries:    256
     red, green, blue masks:    0x0, 0x0, 0x0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x29
     class:    StaticColor
     depth:    8 planes
     available colormap entries:    256
     red, green, blue masks:    0x7, 0x38, 0xc0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x2a
     class:    TrueColor
     depth:    8 planes
     available colormap entries:    8 per subfield
     red, green, blue masks:    0x7, 0x38, 0xc0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x2b
     class:    TrueColor
     depth:    8 planes
     available colormap entries:    8 per subfield
     red, green, blue masks:    0x7, 0x38, 0xc0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x2c
     class:    TrueColor
     depth:    8 planes
     available colormap entries:    8 per subfield
     red, green, blue masks:    0x7, 0x38, 0xc0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x2d
     class:    TrueColor
     depth:    8 planes
     available colormap entries:    8 per subfield
     red, green, blue masks:    0x7, 0x38, 0xc0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x2e
     class:    DirectColor
     depth:    8 planes
     available colormap entries:    8 per subfield
     red, green, blue masks:    0x7, 0x38, 0xc0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x2f
     class:    DirectColor
     depth:    8 planes
     available colormap entries:    8 per subfield
     red, green, blue masks:    0x7, 0x38, 0xc0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x30
     class:    DirectColor
     depth:    8 planes
     available colormap entries:    8 per subfield
     red, green, blue masks:    0x7, 0x38, 0xc0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x31
     class:    DirectColor
     depth:    8 planes
     available colormap entries:    8 per subfield
     red, green, blue masks:    0x7, 0x38, 0xc0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x32
     class:    StaticGray
     depth:    8 planes
     available colormap entries:    256
     red, green, blue masks:    0x0, 0x0, 0x0
     significant bits in color specification:    8 bits
   visual:
     visual id:    0x53
     class:    TrueColor
     depth:    32 planes
     available colormap entries:    256 per subfield
     red, green, blue masks:    0xff0000, 0xff00, 0xff
     significant bits in color specification:    8 bits
----


ffmpeg version:
----
FFmpeg version SVN-r7409, Copyright (c) 2000-2006 Fabrice Bellard, et al.
   configuration:  --prefix=/usr --libdir=/usr/lib 
--mandir=/usr/share/man --incdir=/usr/include/ffmpeg --enable-mp3lame 
--enable-libogg --enable-vorbis --enable-faad --enable-faac 
--enable-libgsm --enable-xvid --enable-x264 --enable-a52 
--enable-a52bin --enable-dts --enable-pp --enable-shared 
--enable-pthreads --enable-gpl --enable-x11grab
   libavutil version: 49.1.0
   libavcodec version: 51.28.0
   libavformat version: 51.7.0
   built on Feb  1 2007 05:52:41, gcc: 4.1.1 20070105 (Red Hat 4.1.1-51)
./ffmpeg: missing argument for option '--help'
----


linux version:
----
Linux x 2.6.18-1.2869.fc6 #1 SMP Wed Dec 20 14:51:19 EST 2006 i686 i686 
i386 GNU/Linux
----


gcc version:
----
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man 
--infodir=/usr/share/info --enable-shared --enable-threads=posix 
--enable-checking=release --with-system-zlib --enable-__cxa_atexit 
--disable-libunwind-exceptions --enable-libgcj-multifile 
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada 
--enable-java-awt=gtk --disable-dssi --enable-plugin 
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre 
--with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.1 20070105 (Red Hat 4.1.1-51)
----


-- 
best regards,
Oon Arfiandwi






More information about the ffmpeg-devel mailing list