I can't get video by ksvideosrc .. sorry
My Logitech is too old to capture ?
"Logitech QuickCam Express"
I get the result (very long):
C:\Program Files\OSSBuild\GStreamer\v0.10.6\bin>gst-launch.exe
ksvideosrc device
-index=0 ! decodebin2 ! ffmpegcolorspace ! autovideosink
Setting pipeline to PAUSED ...
0:00:00.171875000 5324 00B5E110 ERROR ksvideosrc
gstksvideodevice
.c:680:gst_ks_video_device_set_caps: caps (video/x-raw-yuv,
format=(fourcc)YUY2,
width=(int)352, height=(int)288, framerate=(fraction)5/1) is not a
subset of de
vice caps (video/x-raw-yuv, format=(fourcc)YUY2, width=(int)352,
height=(int)288
, framerate=(fraction)[ 14/1, 5/1 ]; video/x-raw-yuv,
format=(fourcc)YUY2, width
=(int)128, height=(int)96, framerate=(fraction)[ 30/1, 5/1 ]; video/x-
raw-yuv, f
ormat=(fourcc)YUY2, width=(int)160, height=(int)120,
framerate=(fraction)[ 30/1,
5/1 ]; video/x-raw-yuv, format=(fourcc)YUY2, width=(int)176,
height=(int)144, f
ramerate=(fraction)[ 30/1, 5/1 ]; video/x-raw-yuv,
format=(fourcc)YUY2, width=(i
nt)320, height=(int)240, framerate=(fraction)[ 14/1, 5/1 ]; video/x-
raw-yuv, for
mat=(fourcc)YUY2, width=(int)640, height=(int)480, framerate=(fraction)
[ 14/1, 5
/1 ]; video/x-raw-rgb, bpp=(int)24, depth=(int)24, red_mask=(int)255,
green_mask
=(int)65280, blue_mask=(int)16711680, endianness=(int)4321,
width=(int)352, heig
ht=(int)288, framerate=(fraction)[ 14/1, 5/1 ]; video/x-raw-rgb,
bpp=(int)24, de
pth=(int)24, red_mask=(int)255, green_mask=(int)65280,
blue_mask=(int)16711680,
endianness=(int)4321, width=(int)128, height=(int)96,
framerate=(fraction)[ 30/1
, 5/1 ]; video/x-raw-rgb, bpp=(int)24, depth=(int)24,
red_mask=(int)255, green_m
ask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321,
width=(int)160, h
eight=(int)120, framerate=(fraction)[ 30/1, 5/1 ]; video/x-raw-rgb,
bpp=(int)24,
depth=(int)24, red_mask=(int)255, green_mask=(int)65280,
blue_mask=(int)1671168
0, endianness=(int)4321, width=(int)176, height=(int)144,
framerate=(fraction)[
30/1, 5/1 ]; video/x-raw-rgb, bpp=(int)24, depth=(int)24,
red_mask=(int)255, gre
en_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321,
width=(int)32
0, height=(int)240, framerate=(fraction)[ 14/1, 5/1 ]; video/x-raw-
rgb, bpp=(int
)24, depth=(int)24, red_mask=(int)255, green_mask=(int)65280,
blue_mask=(int)167
11680, endianness=(int)4321, width=(int)640, height=(int)480,
framerate=(fractio
n)[ 14/1, 5/1 ]; video/x-raw-rgb, bpp=(int)32, depth=(int)24,
red_mask=(int)255,
green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321,
width=(in
t)352, height=(int)288, framerate=(fraction)[ 14/1, 5/1 ]; video/x-raw-
rgb, bpp=
(int)32, depth=(int)24, red_mask=(int)255, green_mask=(int)65280,
blue_mask=(int
)16711680, endianness=(int)4321, width=(int)128, height=(int)96,
framerate=(frac
tion)[ 30/1, 5/1 ]; video/x-raw-rgb, bpp=(int)32, depth=(int)24,
red_mask=(int)2
55, green_mask=(int)65280, blue_mask=(int)16711680,
endianness=(int)4321, width=
(int)160, height=(int)120, framerate=(fraction)[ 30/1, 5/1 ]; video/x-
raw-rgb, b
pp=(int)32, depth=(int)24, red_mask=(int)255, green_mask=(int)65280,
blue_mask=(
int)16711680, endianness=(int)4321, width=(int)176, height=(int)144,
framerate=(
fraction)[ 30/1, 5/1 ]; video/x-raw-rgb, bpp=(int)32, depth=(int)24,
red_mask=(i
nt)255, green_mask=(int)65280, blue_mask=(int)16711680,
endianness=(int)4321, wi
dth=(int)320, height=(int)240, framerate=(fraction)[ 14/1, 5/1 ];
video/x-raw-rg
b, bpp=(int)32, depth=(int)24, red_mask=(int)255,
green_mask=(int)65280, blue_ma
sk=(int)16711680, endianness=(int)4321, width=(int)640,
height=(int)480, framera
te=(fraction)[ 14/1, 5/1 ]; video/x-raw-rgb, bpp=(int)16,
depth=(int)15, red_mas
k=(int)31744, green_mask=(int)992, blue_mask=(int)31,
endianness=(int)4321, widt
h=(int)352, height=(int)288, framerate=(fraction)[ 14/1, 5/1 ]; video/
x-raw-rgb,
bpp=(int)16, depth=(int)15, red_mask=(int)31744, green_mask=(int)992,
blue_mask
=(int)31, endianness=(int)4321, width=(int)128, height=(int)96,
framerate=(fract
ion)[ 30/1, 5/1 ]; video/x-raw-rgb, bpp=(int)16, depth=(int)15,
red_mask=(int)31
744, green_mask=(int)992, blue_mask=(int)31, endianness=(int)4321,
width=(int)16
0, height=(int)120, framerate=(fraction)[ 30/1, 5/1 ]; video/x-raw-
rgb, bpp=(int
)16, depth=(int)15, red_mask=(int)31744, green_mask=(int)992,
blue_mask=(int)31,
endianness=(int)4321, width=(int)176, height=(int)144,
framerate=(fraction)[ 30
/1, 5/1 ]; video/x-raw-rgb, bpp=(int)16, depth=(int)15,
red_mask=(int)31744, gre
en_mask=(int)992, blue_mask=(int)31, endianness=(int)4321,
width=(int)320, heigh
t=(int)240, framerate=(fraction)[ 14/1, 5/1 ]; video/x-raw-rgb,
bpp=(int)16, dep
th=(int)15, red_mask=(int)31744, green_mask=(int)992,
blue_mask=(int)31, endiann
ess=(int)4321, width=(int)640, height=(int)480, framerate=(fraction)
[ 14/1, 5/1
]; video/x-raw-yuv, format=(fourcc)I420, width=(int)352,
height=(int)288, framer
ate=(fraction)[ 14/1, 5/1 ]; video/x-raw-yuv, format=(fourcc)I420,
width=(int)12
8, height=(int)96, framerate=(fraction)[ 30/1, 5/1 ]; video/x-raw-yuv,
format=(f
ourcc)I420, width=(int)160, height=(int)120, framerate=(fraction)
[ 30/1, 5/1 ];
video/x-raw-yuv, format=(fourcc)I420, width=(int)176, height=(int)144,
framerate
=(fraction)[ 30/1, 5/1 ]; video/x-raw-yuv, format=(fourcc)I420,
width=(int)320,
height=(int)240, framerate=(fraction)[ 14/1, 5/1 ]; video/x-raw-yuv,
format=(fou
rcc)I420, width=(int)640, height=(int)480, framerate=(fraction)[ 14/1,
5/1 ]; vi
deo/x-raw-yuv, format=(fourcc)YVU9, width=(int)352, height=(int)288,
framerate=(
fraction)[ 14/1, 5/1 ]; video/x-raw-yuv, format=(fourcc)YVU9,
width=(int)128, he
ight=(int)96, framerate=(fraction)[ 30/1, 5/1 ]; video/x-raw-yuv,
format=(fourcc
)YVU9, width=(int)160, height=(int)120, framerate=(fraction)[ 30/1,
5/1 ]; video
/x-raw-yuv, format=(fourcc)YVU9, width=(int)176, height=(int)144,
framerate=(fra
ction)[ 30/1, 5/1 ]; video/x-raw-yuv, format=(fourcc)YVU9,
width=(int)320, heigh
t=(int)240, framerate=(fraction)[ 14/1, 5/1 ]; video/x-raw-yuv,
format=(fourcc)Y
VU9, width=(int)640, height=(int)480, framerate=(fraction)[ 14/1,
5/1 ]; video/x
-raw-yuv, format=(fourcc)UYVY, width=(int)352, height=(int)288,
framerate=(fract
ion)[ 14/1, 5/1 ]; video/x-raw-yuv, format=(fourcc)UYVY,
width=(int)128, height=
(int)96, framerate=(fraction)[ 30/1, 5/1 ]; video/x-raw-yuv,
format=(fourcc)UYVY
, width=(int)160, height=(int)120, framerate=(fraction)[ 30/1, 5/1 ];
video/x-ra
w-yuv, format=(fourcc)UYVY, width=(int)176, height=(int)144,
framerate=(fraction
)[ 30/1, 5/1 ]; video/x-raw-yuv, format=(fourcc)UYVY, width=(int)320,
height=(in
t)240, framerate=(fraction)[ 14/1, 5/1 ]; video/x-raw-yuv,
format=(fourcc)UYVY,
width=(int)640, height=(int)480, framerate=(fraction)[ 14/1, 5/1 ])
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0:
Could not
negotiate format
Additional debug info:
..\..\..\Source\gstreamer\libs\gst\base\gstbasesrc.c(2719):
gst_base_src_start (
): /GstPipeline:pipeline0/GstKsVideoSrc:ksvideosrc0:
Check your filtered caps, if any
Setting pipeline to NULL ...
Freeing pipeline ...
On 10月1日, 上午12時52分, Andy Savage <
a...@bluewire.net.nz> wrote:
> You can use ksvideosrc to get the stream.
>
> For example....
>
> gst-launch ksvideosrc device-index=0 ! ffmpegcolorspace ! autovideosink
>
>
>
> On Thu, Sep 30, 2010 at 6:37 PM, SCSonic <
scso...@gmail.com> wrote:
> > I know how to do the same thing under Linux...
> > ex:
> > video4linux2 /dev/video0 etc.
>
> > but how to get Stream from webcam ?
> > through DirectShow? like VLC player?
>
> > thx @@
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "gstreamer-java" group.
> > To post to this group, send email to
gstream...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
gstreamer-jav...@googlegroups.com<gstreamer-java%2Bunsubscribe@go
oglegroups.com>
> > .