dstrigl |
06-02-2016 03:55 AM |
Problem with capturing image from camera with v4l2 on a RPi
Hi,
I have a LogiLink Audio und Video Grabber ( https://www.amazon.de/gp/product/B00...?ie=UTF8&psc=1) connected to a Raspberry Pi 2.
Now I want to use v4l2 to capture one single image in the terminal.
A short test with qv4l2 works fine, but now I have some problems to capture a single image in the terminal.
The properties of the device are:
Code:
pi@raspberrypi:~ $ v4l2-ctl --all
Driver Info (not using libv4l2):
Driver name : usbtv
Card type : usbtv
Bus info : usb-3f980000.usb-1.3
Driver version: 4.4.11
Capabilities : 0x85200001
Video Capture
Read/Write
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x05200001
Video Capture
Read/Write
Streaming
Extended Pix Format
Priority: 2
Video input : 0 (Composite: ok)
Video Standard = 0x0000f900
PAL-M/60
NTSC-M/M-JP/443/M-KR
Format Video Capture:
Width/Height : 720/480
Pixel Format : 'YUYV'
Field : Interlaced
Bytes per Line: 1440
Size Image : 691200
Colorspace : Broadcast NTSC/PAL (SMPTE170M/ITU601)
Flags :
Streaming Parameters Video Capture:
Frames per second: 29.970 (30000/1001)
Read buffers : 2
Code:
pi@raspberrypi:~ $ v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUYV 4:2:2
Can anyone give me a working call to
Code:
v4l2-ctl --device /dev/video0 --set-fmt-video=...
v4l2-ctl --device /dev/video0 --stream-mmap --stream-skip=1 --stream-count=1 --stream-to=...
to get a correct image as JPG?
Thanks and regards,
Daniel.
|