Re: Re: Overlaying video in XFree4?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, 31 Jul 2001 around 05:57:29 +0000, Gerd Knorr wrote:
> Pauline Middelink wrote:
> >  LS,
> >  
> >  Just notices something strange, maybe somebody can enlighten me.
> >  
> >  When running XFree-4, xawtv set a strange framebuffer address.
> >  Overlaying to this region does not crash the system, but neither
> >  gives any output to the screen. I think XFree mistakenly?
> 
> With Xvideo (which xawtv uses by default if available) the X-Server
> calls SETFBUF.  Without Xvideo v4l-conf (you can start that one from the
> command line too and see what it prints) does that job and uses the
> address returned by the DGA Extention.

v4l-conf: using X11 display :0
dga: version 2.0
mode: 1024x768, depth=16, bpp=16, bpl=2048, base=0x401c7000
/dev/video0 [v4l2]: ioctl VIDIOC_QUERYCAP: Invalid argument
done

lspci -v (part)
00:0c.0 VGA compatible controller: S3 Inc. ViRGE/DX or /GX (rev 01) (prog-if 00 [VGA])
        Subsystem: S3 Inc. ViRGE/DX
	Flags: bus master, medium devsel, latency 32, IRQ 11
	Memory at e0000000 (32-bit, non-prefetchable) [size=64M]
	Expansion ROM at <unassigned> [disabled] [size=64K]

Hmm, and where can I tell DGA to use the _real_ frameaddress?

> >  my card does not seem to do that. How do i turn it off? -xv
> >  does not make a difference.) Not to the SETFBUF at least.
> 
> try -noxv.

Err, i meant -noxv. No different whatsoever.
(Probably because i comment out the v4l module :)

Oh,  something strange from the xawtv -v 1 output:

Through Xvideo it detects YUY2,YV12 and I420 scaling
modes. Than it goes off detecting lots of info and
finaly tries 3 video modes. The first 2 fail, since
the Zoran does not do planar modes (but has YUYV
which is not the same as YUY2?) And the last one
tries is RGB565? Where does that come from? The Xvideo
extention does not seem to support that mode...
(And what does the 'Xvideo: no usable video port found'
mean? The list below contains 2 '[ok]'s...)

-----------------------
This is xawtv-3.55, running on Linux/i686 (2.4.7-bigphys)
stat /dev/.devfsd: No such file or directory
visual: id=0x22 class=4 (TrueColor), depth=16
visual: id=0x23 class=4 (TrueColor), depth=16
check if the X-Server is local ... **** ok
x11 socket: me=localhost, server=localhost
main: dga extention...
DGA version 2.0
main: xinerama extention...
main: xvideo extention...
Xvideo: 1 adaptors available.
Xvideo: S3 ViRGE Backend Scaler: input image, ports 43-43
Xvideo: no usable video port found
  image format list for port 43
    0x32595559 (YUY2) packed [ok]
    0x32315659 (YV12) planar
    0x30323449 (I420) planar [ok]
main: init main window...
x11: color depth: 16 bits, 2 bytes - pixmap: 2 bytes
x11: color masks: red=0x0000f800 green=0x000007e0 blue=0x0000001f
x11: server byte order: little endian
x11: client byte order: little endian
main: install signal handlers...
main thread [pid=1775]
main: open grabber device...
x11: 1024x768, 16 bit/pixel, 2048 byte/scanline, DGA
v4l-conf: using X11 display :0
dga: version 2.0
mode: 1024x768, depth=16, bpp=16, bpl=2048, base=0x401c7000
/dev/video0 [v4l2]: ioctl VIDIOC_QUERYCAP: Invalid argument
done
got sigchild
waitpid: No child processes
init: trying: v4l2...
init: failed: v4l2
init: trying: v4l...
v4l: open: /dev/video0 (zoran-0)
  capabilities:  capture overlay clipping frameram scales
  size    : 32x32 => 768x576
  channels: 2
    CVBS-0: 0  camera
    S-Video-1: 0  camera
  audios  : 0
 PAL NTSC SECAM AUTO
  fbuffer : base=0x0x401c7000 size=1024x768 depth=16 bpl=2048
  picture : brightness=32768 hue=32768 colour=32512 contrast=27648
  picture : whiteness=0 depth=16 palette=rgb16
  mbuf: size=2654208 frames=2
  v4l: using mapped buffers for capture
init: ok: v4l
v4l: 1024x768, 16 bit/pixel, 2048 byte/scanline
main: checking wm...
wmhooks: gnome
main: creating windows ...
main: read config file ...
fullscreen mode configured (1024x768), VidMode extention enabled
main: checking for vidmode extention ...
VidMode  version 2.0
available video mode(s): 1024x768 800x600
main: checking for lirc ...
main: mapping main window ...
main: initialize hardware ...
cmd: "setfreqtab" "europe-west"
cmd: "capture" "overlay"
main: tuning first station
cmd: "setstation" "0"
gd: config 384x288 win=180006c
v4l: setformat
v4l: capture probe 16 bit YUV 4:2:2 (packed)... ioctl: VIDIOCMCAPTURE(0,fmt=7,size=48x32): Invalid argument
failed
setformat: 16 bit YUV 4:2:2 (packed) (384x288): failed
v4l: setformat
v4l: capture probe 12 bit YUV 4:2:0 (planar)... ioctl: VIDIOCMCAPTURE(0,fmt=15,size=48x32): Invalid argument
failed
setformat: 12 bit YUV 4:2:0 (planar) (384x288): failed
v4l: setformat
v4l: capture probe 16 bit TrueColor (LE)...     ok
setformat: 16 bit TrueColor (LE) (384x288): ok
grabdisplay: using "16 bit TrueColor (LE)"
v4l: overlay win=384x288+31+291, 0 clips
-----------------------

    Met vriendelijke groet,
        Pauline Middelink
-- 
GPG Key fingerprint = 2D5B 87A7 DDA6 0378 5DEA  BD3B 9A50 B416 E2D0 C3C2
For more details look at my website http://www.polyware.nl/~middelink





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux