I am new to the linux world and i am trying to capture a screen from my video0 output but i am having troubles. If anyone can take a look below it will greatly be appreciated. I am trying to get this to work for Ambilight and I can confirm i can capture video via windows.
using lsub command:
Code: Select all
root@raspberrypi:~# lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 005: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 006: ID 05e1:0408 Syntek Semiconductor Co., Ltd STK1160 Video Capture DeviceCode: Select all
root@raspberrypi:~# ls /dev/video*
/dev/video0Code: Select all
root@raspberrypi:~# v4l2-ctl --all
Driver Info (not using libv4l2):
Driver name : stk1160
Card type : stk1160
Bus info : usb-bcm2708_usb-1.3.3
Driver version: 3.18.6
Capabilities : 0x85200001
Video Capture
Read/Write
Streaming
Device Capabilities
Device Caps : 0x05200001
Video Capture
Read/Write
Streaming
Priority: 2
Video input : 0 (Composite0: ok)
Video Standard = 0x00001000
NTSC-M
Format Video Capture:
Width/Height : 720/480
Pixel Format : 'UYVY'
Field : Interlaced
Bytes per Line: 1440
Size Image : 691200
Colorspace : Broadcast NTSC/PAL (SMPTE170M/ITU601)
Custom Info : feedcafe
Streaming Parameters Video Capture:
Frames per second: 29.970 (30000/1001)
Read buffers : 2Code: Select all
mplayer tv:// -tv driver=v4l2:width=720:height=480:outfmt=uyvy:norm=NTSC-M:device=/dev/video0:input=0:fps=25 -vo sdl -nosoundCode: Select all
root@raspberrypi:~# mplayer tv:// -tv driver=v4l2:width=720:height=480:outfmt=uyvy:norm=NTSC-M:device=/dev/video0:input=0:fps=25 -vo sdl -nosound
MPlayer svn r34540 (Raspbian), built with gcc-4.6 (C) 2000-2012 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing tv://.
TV file format detected.
Selected driver: v4l2
name: Video 4 Linux 2 input
author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
comment: first try, more to come ;-)
Selected device: stk1160
Capabilities: video capture read/write streaming
supported norms: 0 = NTSC; 1 = NTSC-M; 2 = NTSC-M-JP; 3 = NTSC-M-KR; 4 = NTSC-443; 5 = PAL; 6 = PAL-BG; 7 = PAL-H; 8 = PAL-I; 9 = PAL-DK; 10 = PAL-M; 11 = PAL-N; 12 = PAL-Nc; 13 = PAL-60; 14 = SECAM; 15 = SECAM-B; 16 = SECAM-G; 17 = SECAM-H; 18 = SECAM-DK; 19 = SECAM-L; 20 = SECAM-Lc;
inputs: 0 = Composite0; 1 = Composite1; 2 = Composite2; 3 = Composite3; 4 = S-Video;
Current input: 0
Current format: UYVY
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
[VO_SDL] Using driver: fbcon.
vo: couldn't open the X11 display ()!
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [sdl] 720x480 => 720x480 Packed UYVY
v4l2: select timeout
v4l2: select timeout
v4l2: select timeout
v4l2: select timeout
v4l2: select timeout
v4l2: select timeout
v4l2: select timeoutCode: Select all
root@raspberrypi:~# hyperion-v4l2 -v NTSC-M --screenshot
-v: Invalid value for video standard. Valid values are: PAL, NTSC, and NO-CHANGE
root@raspberrypi:~# hyperion-v4l2 -v NTSC --screenshot
V4L2 width=720 height=480
V4L2 pixel format=UYVY
V4L2 grabber signal threshold set to: {0,0,0}
V4L2 grabber started
at this point it freezescan someone tell me what i am doing wrong? thank you!!!