* viewing captured data
@ 2009-05-16 23:43 mahmut g
0 siblings, 0 replies; only message in thread
From: mahmut g @ 2009-05-16 23:43 UTC (permalink / raw)
To: linux-media
Hello,
I am new at media. I want capturing from my webcam and streaming
to any ip by using RTP. Now, I can getting frames with mmap method in
V4L2_PIX_FMT_YUV420 pixel format. I write the mapped buffers to a file
but I cant open this file with any image editor, what can I do? I am
stuck and confused now. Secondly, what format will be fine for streaming.
Thank you all,
Regards.
Mahmut
kays@debian:~/NetBeansProjects/mycapture.c$ sudo ./capture
Opening device /dev/video0..
Initializing device..
Capability of V4L2_CAP_VIDEO_CAPTURE
Capability of V4L2_CAP_STREAMING
Capability of V4L2_CAP_READWRITE
Capability check OK.
VIDIOC_CROPCAP ioctl: Invalid argument
Error ignored!
image format type: 1
image format pix width: 320
image format pix height: 240
image format pix bytesperline: 480
image format pix sizeimage: 115200
image format pixelformat: 842093913
image format pix field: 1
buffer count: 2
Mapping 1 buffer at adress b7dac000
Mapping 1 buffer at adress b7d3b000
mmap is OK.
:::::
Created file: 5
kays@debian:~/NetBeansProjects/mycapture.c$ sudo file image_*
image_0: data
image_1: data
image_2: data
image_3: data
image_4: data
image_5: data
kays@debian:~/NetBeansProjects/mycapture.c$
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-16 23:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-16 23:43 viewing captured data mahmut g
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox