From: mahmut g <m.gundes@gmail.com>
To: linux-media@vger.kernel.org
Subject: viewing captured data
Date: Sun, 17 May 2009 02:43:05 +0300 [thread overview]
Message-ID: <4A0F4F89.9010601@gmail.com> (raw)
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$
reply other threads:[~2009-05-16 23:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A0F4F89.9010601@gmail.com \
--to=m.gundes@gmail.com \
--cc=linux-media@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox