LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-02-2016, 04:55 AM   #1
dstrigl
LQ Newbie
 
Registered: Jun 2016
Posts: 2

Rep: Reputation: Disabled
Question 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.
 
Old 06-23-2016, 03:30 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
I have used mplayer so I don't know v4l2-ctl. What did you try and what happened?
 
Old 06-24-2016, 02:16 AM   #3
dstrigl
LQ Newbie
 
Registered: Jun 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
See https://www.raspberrypi.org/forums/v...?f=67&t=150808
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Camera settings in Linux ...(V4L2 or UVC drivers) KansaiRobot Linux - Software 12 03-11-2015 08:33 PM
v4l2 App to display video image as if from camera radiodee1 Debian 1 10-05-2011 08:23 AM
V4L2 image capture problem c0deland Linux - Software 4 12-12-2008 05:19 AM
How to write a V4L2 driver for CMOS image sensor? homn Linux - Newbie 1 05-02-2008 01:33 AM
Problem in capturing the image at Logitech quickcam pro 5000 misssnow Linux - Hardware 0 11-20-2006 10:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration