[MPlayer-users] Sliced Image when grabbing from v4l2
Reto E. Koenig
Reto.koenig at bfh.ch
Sat Aug 6 13:10:13 CEST 2005
Hey thanks for answering me!
Well I tried, what you suggested and realized, that xawtv seems to be running
without overlay, but still is able to produce the desired output.
That's what it says...
This is xawtv-3.94, running on Linux/i686 (2.6.12-kanotix-1)
WARNING: Your X-Server has no DGA support.
/dev/video0 [v4l2]: no overlay support
v4l-conf had some trouble, trying to continue anyway
I must say, that the module, I am using is very! experimental, but still,
after having had success on xawtv, I thought mplayer could cope with it too!?
If of any use, this is the v4l-info:
### v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "em2800"
card : "Terratec Cinergy 200 USB"
bus_info : "4-1"
version : 0.0.1
capabilities : 0x5010001
[VIDEO_CAPTURE,TUNER,READWRITE,STREAMING]
standards
VIDIOC_ENUMSTD(0)
index : 0
id : 0xff
[PAL_B,PAL_B1,PAL_G,PAL_H,PAL_I,PAL_D,PAL_D1,PAL_K]
name : "PAL"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
VIDIOC_ENUMSTD(1)
index : 1
id : 0x3000 [NTSC_M,NTSC_M_JP]
name : "NTSC"
frameperiod.numerator : 1001
frameperiod.denominator : 30000
framelines : 525
VIDIOC_ENUMSTD(2)
index : 2
id : 0x7f0000
[SECAM_B,SECAM_D,SECAM_G,SECAM_H,SECAM_K,SECAM_K1,SECAM_L]
name : "SECAM"
frameperiod.numerator : 1
frameperiod.denominator : 25
framelines : 625
inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "Composite"
type : unknown
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
VIDIOC_ENUMINPUT(1)
index : 1
name : "S-Video"
type : unknown
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
VIDIOC_ENUMINPUT(2)
index : 2
name : "Tuner"
type : unknown
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
tuners
VIDIOC_G_TUNER(0)
index : 0
name : "Television"
type : unknown
capability : 0x2 [NORM]
rangelow : 0
rangehigh : 4294967295
rxsubchans : 0x0 []
audmode : MONO
signal : 65535
afc : 0
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 0
description : "Packed YUY2"
pixelformat : 0x56595559 [YUYV]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 360
fmt.pix.height : 270
fmt.pix.pixelformat : 0x56595559 [YUYV]
fmt.pix.field : NONE
fmt.pix.bytesperline : 720
fmt.pix.sizeimage : 194400
fmt.pix.colorspace : SMPTE170M
fmt.pix.priv : 0
controls
VIDIOC_QUERYCTRL(BASE+0)
id : 9963776
type : INTEGER
name : "brightness"
minimum : -128
maximum : 127
step : 1
default_value : 0
flags : 0
VIDIOC_QUERYCTRL(BASE+1)
id : 9963777
type : INTEGER
name : "contrast"
minimum : 0
maximum : 31
step : 1
default_value : 16
flags : 0
VIDIOC_QUERYCTRL(BASE+2)
id : 9963778
type : INTEGER
name : "saturation"
minimum : 0
maximum : 31
step : 1
default_value : 16
flags : 0
### video4linux device info [/dev/video0] ###
general info
VIDIOCGCAP
name : "Terratec Cinergy 200 USB"
type : 0x3 [CAPTURE,TUNER]
channels : 3
audios : 0
maxwidth : 360
maxheight : 288
minwidth : 48
minheight : 32
channels
VIDIOCGCHAN(0)
channel : 0
name : "Composite"
tuners : 0
flags : 0x0 []
type : CAMERA
norm : 0
VIDIOCGCHAN(1)
channel : 1
name : "S-Video"
tuners : 0
flags : 0x0 []
type : CAMERA
norm : 0
VIDIOCGCHAN(2)
channel : 2
name : "Tuner"
tuners : 0
flags : 0x0 []
type : CAMERA
norm : 0
tuner
VIDIOCGTUNER
tuner : 0
name : "Television"
rangelow : 0
rangehigh : 4294967295
flags : 0x7 [PAL,NTSC,SECAM]
mode : PAL
signal : 65535
audio
ioctl VIDIOCGAUDIO: Invalid argument
picture
VIDIOCGPICT
brightness : 41120
hue : 0
colour : 33825
contrast : 33825
whiteness : 0
depth : 56805
palette : YUYV
buffer
ioctl VIDIOCGFBUF: Invalid argument
window
VIDIOCGWIN
x : 0
y : 0
width : 360
height : 270
chromakey : 0
flags : 0
On Saturday, 6. August 2005 11.36, Reimar Döffinger wrote:
> Hi,
>
> On Fri, Aug 05, 2005 at 10:48:51PM +0200, Reto E. Koenig wrote:
> > Sliced image while capturing with mplayer
> >
> > Capturing with my Video-Capture-Device, a USB2-Stick from Q-Sonics
> > (probably Terratec Cinergy 200 USB) I get a really nice picture when
> > using something like xawtv. But using mplayer (mplayer tv:// -tv
> > driver=v4l2 -vo xv) I get a
>
> xawtv uses overlay mode by default, try setting it to grabimage first.
> If you get the same problem then, it is a bug in the grabbing part of
> your v4l2 driver.
>
> Greetings,
> Reimar Döffinger
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-users
More information about the MPlayer-users
mailing list