Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mplayer green screen + webcam
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Tux12Fun
Apprentice
Apprentice


Joined: 16 Aug 2007
Posts: 156

PostPosted: Sat Oct 11, 2008 10:34 pm    Post subject: mplayer green screen + webcam Reply with quote

Hi,

I got the following Problem. If I stream my Webcam, I get only one correct picture. All other Picutres are green

Mplayer Command to Stream:
Code:

mplayer -tv driver=v4l:fps=15:height=288:width=352 -vo jpeg tv://

Mplayer output
Code:

MPlayer dev-SVN-r27725-4.1.2 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     P8400  @ 2.26GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Kompiliert für x86 CPU mit folgenden Erweiterungen: MMX MMX2 SSE SSE2

Spiele tv://.
TV-Dateiformat erkannt!
Ausgewählter Treiber: v4l2
 Name: Video 4 Linux 2 input
 Autor: Martin Olschewski <olschewski@zpr.uni-koeln.de>
 Kommentar: first try, more to come ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: USB2.0 UVC PC Camera
 Capabilites:  video capture  streaming
 supported norms:
 inputs: 0 = Camera 1;
 Current input: 0
 Current format: YUYV
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
v4l2: ioctl set format failed: Invalid argument
tv.c: norm_from_string(pal): Falscher Norm-Parameter, setze default.
v4l2: ioctl enum norm failed: Invalid argument
Fehler: Kann Norm nicht setzen!
Gewählter Input hat keinen Tuner!
v4l2: ioctl set mute failed: Invalid argument
jpeg: Unteroptionen werden geparst.
jpeg: Progressives JPEG deaktiviert.
jpeg: Baseline-JPEG aktiviert.
jpeg: Parsen der Unteroptionen OK.
==========================================================================
Öffne Videodecoder: [raw] RAW Uncompressed Video
VDec: VO wird versucht, auf 352 x 288 (Bevorzugter Farbraum: Packed YUY2) zu setzen.
Konnte keinen passenden Farbraum finden - neuer Versuch mit '-vf scale'...
Öffne Videofilter: [scale]
VDec: Verwende Packed YUY2 als Ausgabefarbraum (Nummer 0).
Film-Aspekt ist undefiniert - keine Vorskalierung durchgeführt.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
[swscaler @ 0x314a5f0]BICUBIC scaler, from yuyv422 to rgb24 using MMX2
[swscaler @ 0x314a5f0]using 4-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x314a5f0]using 4-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x314a5f0]using n-tap MMX scaler for vertical scaling (BGR)
[swscaler @ 0x314a5f0]352x288 -> 352x288
VO: [jpeg] 352x288 => 352x288 RGB 24-bit
jpeg: . - Ausgabeverzeichnis existiert schon und ist beschreibbar.
Ausgewählter Videocodec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: kein Ton!
Starte Wiedergabe...
v4l2: select timeout ??% ??,?% 0 0
v4l2: select timeout ??% ??,?% 0 0
v4l2: select timeout ??% ??,?% 0 0
v4l2: select timeout ??% ??,?% 0 0
v4l2: select timeout ??% ??,?% 0 0
v4l2: select timeout ??% ??,?% 0 0
v4l2: select timeout ??% ??,?% 0 0


MPlayer wurde durch Signal 2 im Modul video_read_frame unterbrochen.
V:   0.0  13/ 13 ??% ??% ??,?% 0 0

MPlayer wurde durch Signal 2 im Modul free_demuxer unterbrochen.


dmesg
Code:

Linux video capture interface: v2.00
usbcore: registered new interface driver btusb
uvcvideo 1-3:1.0: usb_probe_interface
uvcvideo 1-3:1.0: usb_probe_interface - got id
uvcvideo: Found UVC 1.00 device USB2.0 UVC PC Camera (174f:5931)
uvcvideo: Failed to query (135) UVC control 1 (unit 0) : -32 (exp. 26).
nvidia: module license 'NVIDIA' taints kernel.
nvidia 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
nvidia 0000:01:00.0: setting latency timer to 64
NVRM: loading NVIDIA UNIX x86_64 Kernel Module  177.78  Fri Sep 26 10:38:09 PDT 2008
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
uhci_hcd 0000:00:1d.1: reserve dev 2 ep81-INT, period 8, phase 4, 93 us
uhci_hcd 0000:00:1d.1: release dev 2 ep81-INT, period 8, phase 4, 93 us
uhci_hcd 0000:00:1d.1: reserve dev 2 ep81-INT, period 8, phase 4, 93 us
uhci_hcd 0000:00:1d.1: release dev 2 ep81-INT, period 8, phase 4, 93 us
uhci_hcd 0000:00:1d.1: reserve dev 2 ep81-INT, period 8, phase 4, 93 us
uhci_hcd 0000:00:1d.1: release dev 2 ep81-INT, period 8, phase 4, 93 us
uhci_hcd 0000:00:1d.1: reserve dev 2 ep81-INT, period 8, phase 4, 93 us
usb 1-3: mplayer timed out on ep0in len=0/26
uvcvideo: Failed to query (129) UVC control 1 (unit 0) : -110 (exp. 26).
usb 1-3: mplayer timed out on ep0in len=0/26
uvcvideo: Failed to query (129) UVC control 1 (unit 0) : -110 (exp. 26).
usb 1-3: mplayer timed out on ep0in len=0/2
uvcvideo: Failed to query (135) UVC control 7 (unit 3) : -110 (exp. 2).
usb 1-3: mplayer timed out on ep0in len=0/26
uvcvideo: Failed to query (129) UVC control 1 (unit 0) : -110 (exp. 26).
CE: hpet increasing min_delta_ns to 75936 nsec


Kernel: Linux rechner1 2.6.27-rc7 #16 SMP Mon Oct 6 03:13:20 CEST 2008 x86_64 Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz GenuineIntel GNU/Linux

(2.6.27 is needed for my networkcard)

Mplayer Version:
Code:

*  media-video/mplayer
      Latest version available: 1.0_rc2_p27725-r1
      Latest version installed: 1.0_rc2_p27725-r1
      Size of files: 8,866 kB
      Homepage:      http://www.mplayerhq.hu/
      Description:   Media Player for Linux
      License:       GPL-2


Code:

 lsusb
Bus 002 Device 001: ID 1d6b:0002
Bus 008 Device 002: ID 0a5c:2101 Broadcom Corp.
Bus 008 Device 001: ID 1d6b:0001
Bus 007 Device 002: ID 046d:c03e Logitech, Inc. Premium Optical Wheel Mouse
Bus 007 Device 001: ID 1d6b:0001
Bus 006 Device 001: ID 1d6b:0001
Bus 001 Device 002: ID 174f:5931
Bus 001 Device 001: ID 1d6b:0002
Bus 005 Device 001: ID 1d6b:0001
Bus 004 Device 001: ID 1d6b:0001
Bus 003 Device 001: ID 1d6b:0001


Code:

lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:01.0 PCI bridge: Intel Corporation Mobile 4 Series Chipset PCI Express Graphics Port (rev 07)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
01:00.0 VGA compatible controller: nVidia Corporation GeForce 9600M GT (rev a1)
02:00.0 Network controller: Intel Corporation Device 4232
06:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8055 PCI-E Gigabit Ethernet Controller (rev 13)

Code:

 lsmod
Module                  Size  Used by
nvidia               7791328  30
uvcvideo               51784  0
compat_ioctl32          8064  1 uvcvideo
btusb                  12248  0
videodev               33280  2 uvcvideo,compat_ioctl32
bluetooth              53732  1 btusb
v4l1_compat            12996  2 uvcvideo,videodev
Back to top
View user's profile Send private message
coolsnowmen
Veteran
Veteran


Joined: 30 Jun 2004
Posts: 1479
Location: No.VA

PostPosted: Thu Oct 16, 2008 2:34 am    Post subject: Reply with quote

I am not good at this at all, but the following worked for me:

mplayer tv:// -tv driver=v4l2:width=320:height=240:device=/dev/video0:fps=2:outfmt=mjpg -vo gl2
_________________
emerge: there are no ebuilds to satisfy "moo"
Back to top
View user's profile Send private message
abt72
n00b
n00b


Joined: 04 Apr 2003
Posts: 44

PostPosted: Tue Feb 10, 2009 9:21 am    Post subject: Reply with quote

same problem here.
did you manage to solve the problem?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum