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

k...@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
k...@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

k...@debian:~/NetBeansProjects/mycapture.c$

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to