Using A Webcam With Mplayer


WizardStan said:
Problem solved.

Great job!

Sorry but I have a couple of more question. Firstly, how do I enter this in mplayer? I'm a total linux newb and I'm not sure about opening a terminal and typing away yet. I must have done it wrong as it said "no such file" or something similar. Also would this work for VLC? Assuming it's the same issue, is it just a matter of opening a terminal in the correct place then typing the same command?

Thanks again.
 
Last edited by a moderator:
@Pleng: You may need to specify frame rate (add "-fps 30") or possibly a different output driver (add "-vo sdl")
My new webcam works fine, but my old one (a USB1.1 Labtech) needs to have the frame rate specified or it. I don't know why.
Finally, you can try removing the height and width options from the command. This will probably make a window bigger than the screen; it will be black. You need to maximize before it'll display. Reason is that mplayer won't draw to overlays outside the bounds of the screen. I don't know why. This goes for smaller windows as well: if any part of the window is outside the bounds of the screen, the display will simply be black until it is moved fully onto the screen; maximizing the window automatically makes it fit the screen, so you should see an image then if this were the problem.

edit:
@pootle: If it says "no such file", then the webcam probably didn't load properly. At the command line, type "sudo lsusb" and "ls -l /dev/vid*" and post the outputs of those.
For an easier time, you can simply open a TV device from in gnome-mplayer (File->TV->Analog) but you don't get the same kind of control as you would from command line; you can't specify the window size or audio device, it just plays the video at whatever the expected resolution is. If this makes the window bigger than the screen, you'll need to maximize it (or click View->Half Size) to get it to fit entirely on the screen before it'll display anything.
 
WizardStan said:
@Pleng: You may need to specify frame rate (add "-fps 30") or possibly a different output driver (add "-vo sdl")
My new webcam works fine, but my old one (a USB1.1 Labtech) needs to have the frame rate specified or it. I don't know why.
Finally, you can try removing the height and width options from the command. This will probably make a window bigger than the screen; it will be black. You need to maximize before it'll display. Reason is that mplayer won't draw to overlays outside the bounds of the screen. I don't know why. This goes for smaller windows as well: if any part of the window is outside the bounds of the screen, the display will simply be black until it is moved fully onto the screen; maximizing the window automatically makes it fit the screen, so you should see an image then if this were the problem.

OK I'll give those options a try tomorrow. Could the overlays issue also be what's causing cheese to show a black screen, rather than anything from the cam itself? Though it still shows a blank screen after switching to full screen. Hmm
 
Last edited by a moderator:
I dunno how cheese draws. It might be a similar problem.
Also, make sure you have the codec pack installed. I'm sure you do, since you've got mplayer, but best to be sure.
Other than that, I'm out of ideas. Try it on an x86 Linux and see if it displays there? Command line should be the exact same.
 
WizardStan said:
@pootle: If it says "no such file", then the webcam probably didn't load properly. At the command line, type "sudo lsusb" and "ls -l /dev/vid*" and post the outputs of those.
For an easier time, you can simply open a TV device from in gnome-mplayer (File->TV->Analog) but you don't get the same kind of control as you would from command line; you can't specify the window size or audio device, it just plays the video at whatever the expected resolution is. If this makes the window bigger than the screen, you'll need to maximize it (or click View->Half Size) to get it to fit entirely on the screen before it'll display anything.
I've only been using gnome-mplayer's analog tv input, not the command line at all. Could you explain how to enter it in case I did it wrong? Again sorry for the stupid questions.
 
Last edited by a moderator:
Not stupid questions. You're getting into things the average user won't ever do, it's not expected that an average user would need to know how to do these things, so continue to ask whatever you want :)
First thing to do is unplug your webcam and restart the Pandora. We want to start from fresh.
Do you know the name of your SD card? Like, when you open up Thunar (clicking on Filesystem on the desktop), what is the last thing on the left? It'll be "disk" or "KINGSTON" or something generic like that if you didn't name it yourself.
Once you've got that, plug in your webcam, start Terminal (press the pandora menu button, and it's right at the top) and type the following commands
Code:
dmesg > /media/XXXX/dmesg.out
sudo lsusb > /media/XXXX/lsusb.out
ls -lrt /dev > /media/XXXX/lsdev.out
Replacing XXXX with whatever name you've discovered for your card. It's case sensitive, so be sure about that. This will create 3 files on your SD card that you can then copy here so we can see if there are any problems.
Then, with those log files recorded, try this one
Code:
mplayer -fps 30 tv:// -tv driver=v4l2:width=320:height=240 > /media/XXXX/mplayer.out
press Q to quit.
 
OK, hope this works...

Here's the dmesg.out
Code:
[ 6968.742889] twl4030_rtc twl4030_rtc: rtc core: registered twl4030_rtc as rtc0
[ 6968.753997] bq27x00-battery 3-0055: support ver. 1.1.0 enabled
[ 6968.760253] Bluetooth: HCI UART driver ver 2.2
[ 6968.764739] Bluetooth: HCI H4 protocol initialized
[ 6968.769622] Bluetooth: HCILL protocol initialized
[ 6968.774444] hci_h4p hci_h4p: Registering HCI H4P device
[ 6968.930358] mmci-omap mmci-omap.0: Failed to get debounce clock
[ 6969.038879] mmci-omap mmci-omap.1: Failed to get debounce clock
[ 6969.039886] mmci-omap mmci-omap.2: Failed to get debounce clock
[ 6969.040740] Registered led device: pandora::sd1
[ 6969.045623] Registered led device: pandora::sd2
[ 6969.050476] Registered led device: pandora::bluetooth
[ 6969.055877] Registered led device: pandora::wifi
[ 6969.061340] Registered led device: pandora::keypad_bl
[ 6969.066802] Registered led device: pandora::power
[ 6969.072265] Registered led device: pandora::charger
[ 6969.077667] usbcore: registered new interface driver usbhid
[ 6969.083343] usbhid: v2.6:USB HID core driver
[ 6969.088012] Advanced Linux Sound Architecture Driver Version 1.0.17.
[ 6969.094848] ASoC version 0.13.2
[ 6969.098297] OMAP3 Pandora SoC init
[ 6969.102111] TWL4030 Audio Codec init 
[ 6969.107299] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
[ 6969.114257] asoc: twl4030 <-> omap-mcbsp-dai-1 mapping ok
[ 6969.128601] ALSA device list:
[ 6969.131591]   #0: omap3pandora (twl4030)
[ 6969.135864] TCP cubic registered
[ 6969.139129] NET: Registered protocol family 17
[ 6969.143676] NET: Registered protocol family 15
[ 6969.148223] Bluetooth: L2CAP ver 2.11
[ 6969.151885] Bluetooth: L2CAP socket layer initialized
[ 6969.157012] Bluetooth: SCO (Voice Link) ver 0.6
[ 6969.161590] Bluetooth: SCO socket layer initialized
[ 6969.166656] Bluetooth: RFCOMM socket layer initialized
[ 6969.171905] Bluetooth: RFCOMM TTY layer initialized
[ 6969.176818] Bluetooth: RFCOMM ver 1.10
[ 6969.180664] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 6969.186004] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 6969.192504] RPC: Registered udp transport module.
[ 6969.197296] RPC: Registered tcp transport module.
[ 6969.202087] ThumbEE CPU extension supported.
[ 6969.206420] Disabling unused clock "sr2_fck"
[ 6969.206420] Disabling unused clock "sr1_fck"
[ 6969.206451] Disabling unused clock "mcbsp_fck"
[ 6969.206451] Disabling unused clock "mcbsp_fck"
[ 6969.206481] Disabling unused clock "mcbsp_fck"
[ 6969.206481] Disabling unused clock "mcbsp_ick"
[ 6969.206512] Disabling unused clock "mcbsp_ick"
[ 6969.206512] Disabling unused clock "mcbsp_ick"
[ 6969.206542] Disabling unused clock "gpt2_ick"
[ 6969.206542] Disabling unused clock "gpt3_ick"
[ 6969.206573] Disabling unused clock "gpt4_ick"
[ 6969.206573] Disabling unused clock "gpt5_ick"
[ 6969.206604] Disabling unused clock "gpt6_ick"
[ 6969.206604] Disabling unused clock "gpt7_ick"
[ 6969.206604] Disabling unused clock "gpt8_ick"
[ 6969.206634] Disabling unused clock "gpt9_ick"
[ 6969.206634] Disabling unused clock "wdt3_ick"
[ 6969.206665] Disabling unused clock "wdt3_fck"
[ 6969.206665] Disabling unused clock "gpio2_dbck"
[ 6969.206695] Disabling unused clock "gpio3_dbck"
[ 6969.206695] Disabling unused clock "gpio5_dbck"
[ 6969.206726] Disabling unused clock "gpt9_fck"
[ 6969.206726] Disabling unused clock "gpt8_fck"
[ 6969.206756] Disabling unused clock "gpt7_fck"
[ 6969.206756] Disabling unused clock "gpt6_fck"
[ 6969.206787] Disabling unused clock "gpt5_fck"
[ 6969.206787] Disabling unused clock "gpt4_fck"
[ 6969.206787] Disabling unused clock "gpt3_fck"
[ 6969.206817] Disabling unused clock "gpt2_fck"
[ 6969.206817] Disabling unused clock "gpt1_ick"
[ 6969.206848] Disabling unused clock "wdt1_ick"
[ 6969.206848] Disabling unused clock "wdt2_ick"
[ 6969.206878] Disabling unused clock "wdt2_fck"
[ 6969.206878] Disabling unused clock "gpio1_dbck"
[ 6969.206909] Disabling unused clock "gpt1_fck"
[ 6969.206909] Disabling unused clock "cam_ick"
[ 6969.206939] Disabling unused clock "cam_mclk"
[ 6969.206939] Disabling unused clock "des1_ick"
[ 6969.206970] Disabling unused clock "sha11_ick"
[ 6969.206970] Disabling unused clock "rng_ick"
[ 6969.206970] Disabling unused clock "aes1_ick"
[ 6969.207000] Disabling unused clock "ssi_ick"
[ 6969.207000] Disabling unused clock "mailboxes_ick"
[ 6969.207031] Disabling unused clock "mcbsp_ick"
[ 6969.207031] Disabling unused clock "mcbsp_ick"
[ 6969.207061] Disabling unused clock "gpt10_ick"
[ 6969.207061] Disabling unused clock "gpt11_ick"
[ 6969.207092] Disabling unused clock "uart2_ick"
[ 6969.207092] Disabling unused clock "i2c_ick"
[ 6969.207122] Disabling unused clock "hdq_ick"
[ 6969.207122] Disabling unused clock "mspro_ick"
[ 6969.207122] Disabling unused clock "des2_ick"
[ 6969.207153] Disabling unused clock "sha12_ick"
[ 6969.207153] Disabling unused clock "aes2_ick"
[ 6969.207183] Disabling unused clock "icr_ick"
[ 6969.207183] Disabling unused clock "pka_ick"
[ 6969.207214] Disabling unused clock "ssi_ssr_fck"
[ 6969.207214] Disabling unused clock "hdq_fck"
[ 6969.207244] Disabling unused clock "uart2_fck"
[ 6969.207244] Disabling unused clock "mcbsp_fck"
[ 6969.207275] Disabling unused clock "mcbsp_fck"
[ 6969.207275] Disabling unused clock "i2c_fck"
[ 6969.207275] Disabling unused clock "mspro_fck"
[ 6969.207305] Disabling unused clock "gpt11_fck"
[ 6969.207305] Disabling unused clock "gpt10_fck"
[ 6969.207336] Disabling unused clock "iva2_ck"
[ 6969.207336] Disabling unused clock "dpll4_m6x2_ck"
[ 6969.207366] Disabling unused clock "dpll4_m5x2_ck"
[ 6969.207397] Disabling unused clock "dpll3_m3x2_ck"
[ 6969.207397] Disabling unused clock "sys_clkout1"
[ 6969.207427] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1
[ 6969.247253] Console: switching to colour frame buffer device 100x30
[ 6969.431793] twl4030_rtc twl4030_rtc: setting system clock to 2010-08-21 15:42:38 UTC (1282405358)
[ 6969.540863] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 6969.546997] UBIFS: file system size:   507193344 bytes (495306 KiB, 483 MiB, 3931 LEBs)
[ 6969.555084] UBIFS: journal size:       9033728 bytes (8822 KiB, 8 MiB, 71 LEBs)
[ 6969.562438] UBIFS: media format:       w4/r0 (latest is w4/r0)
[ 6969.568298] UBIFS: default compressor: lzo
[ 6969.572448] UBIFS: reserved for root:  0 bytes (0 KiB)
[ 6969.579010] VFS: Mounted root (ubifs filesystem).
[ 6969.583892] Freeing init memory: 148K
[ 6970.156768] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 6970.165008] mmc0: new high speed SDHC card at address 0007
[ 6970.171203] mmcblk0: mmc0:0007 SD08G 7860224KiB 
[ 6970.176177]  mmcblk0: p1
[ 6970.745239] mmc1: host does not support reading read-only switch. assuming write-enable.
[ 6970.753479] mmc1: new high speed SDHC card at address 0007
[ 6970.759490] mmcblk1: mmc1:0007 SD16G 15745024KiB 
[ 6970.764495]  mmcblk1: p1
[ 6970.823242] udev: starting version 151
[ 6972.054107] ads7846 spi1.0: touchscreen, irq 254
[ 6972.059417] input: touchscreen as /devices/platform/omap2_mcspi.1/spi1.0/input/input5
[ 6977.193389] FAT: bogus number of reserved sectors
[ 6977.198211] VFS: Can't find a valid FAT filesystem on dev mmcblk0.
[ 6977.323791] FAT: bogus number of reserved sectors
[ 6977.328613] VFS: Can't find a valid FAT filesystem on dev mmcblk1.
[ 6977.568359] NET: Registered protocol family 10
[ 6977.749816] FAT: bogus number of reserved sectors
[ 6977.754577] VFS: Can't find a valid FAT filesystem on dev mmcblk0.
[ 6977.780090] FAT: bogus number of reserved sectors
[ 6977.784912] VFS: Can't find a valid FAT filesystem on dev mmcblk1.
[ 6978.138275] mmci-omap mmci-omap.0: MMC IRQ 0x208000 : ERRI DCRC
[ 6978.138580] mmcblk0: error -84 transferring data
[ 6978.143371] end_request: I/O error, dev mmcblk0, sector 4656256
[ 6978.149322] Buffer I/O error on device mmcblk0p1, logical block 581008
[ 6978.155914] end_request: I/O error, dev mmcblk0, sector 4656264
[ 6978.161865] Buffer I/O error on device mmcblk0p1, logical block 581009
[ 6978.168457] end_request: I/O error, dev mmcblk0, sector 4656272
[ 6978.174407] Buffer I/O error on device mmcblk0p1, logical block 581010
[ 6978.180969] end_request: I/O error, dev mmcblk0, sector 4656280
[ 6978.186920] Buffer I/O error on device mmcblk0p1, logical block 581011
[ 6978.193481] end_request: I/O error, dev mmcblk0, sector 4656288
[ 6978.199432] Buffer I/O error on device mmcblk0p1, logical block 581012
[ 6978.205993] end_request: I/O error, dev mmcblk0, sector 4656296
[ 6978.211944] Buffer I/O error on device mmcblk0p1, logical block 581013
[ 6978.218536] end_request: I/O error, dev mmcblk0, sector 4656304
[ 6978.224487] Buffer I/O error on device mmcblk0p1, logical block 581014
[ 6978.231048] end_request: I/O error, dev mmcblk0, sector 4656312
[ 6978.236999] Buffer I/O error on device mmcblk0p1, logical block 581015
[ 6978.418975] mmci-omap mmci-omap.0: MMC IRQ 0x208000 : ERRI DCRC
[ 6978.419647] mmcblk0: error -84 transferring data
[ 6978.424407] end_request: I/O error, dev mmcblk0, sector 12544
[ 6978.430206] Buffer I/O error on device mmcblk0p1, logical block 544
[ 6978.436523] end_request: I/O error, dev mmcblk0, sector 12552
[ 6978.442291] Buffer I/O error on device mmcblk0p1, logical block 545
[ 6978.448608] end_request: I/O error, dev mmcblk0, sector 12560
[ 6978.454376] end_request: I/O error, dev mmcblk0, sector 12568
[ 6978.460174] end_request: I/O error, dev mmcblk0, sector 12576
[ 6978.465942] end_request: I/O error, dev mmcblk0, sector 12584
[ 6978.471740] end_request: I/O error, dev mmcblk0, sector 12592
[ 6978.477508] end_request: I/O error, dev mmcblk0, sector 12600
[ 6978.483306] end_request: I/O error, dev mmcblk0, sector 12608
[ 6978.529510] mmci-omap mmci-omap.0: MMC IRQ 0x208000 : ERRI DCRC
[ 6978.529724] mmcblk0: error -84 transferring data
[ 6978.534484] end_request: I/O error, dev mmcblk0, sector 16192
[ 6978.540283] end_request: I/O error, dev mmcblk0, sector 16200
[ 6978.546081] end_request: I/O error, dev mmcblk0, sector 16208
[ 6978.551849] end_request: I/O error, dev mmcblk0, sector 16216
[ 6978.557647] end_request: I/O error, dev mmcblk0, sector 16224
[ 6978.563415] end_request: I/O error, dev mmcblk0, sector 16232
[ 6978.569183] end_request: I/O error, dev mmcblk0, sector 16240
[ 6978.574981] end_request: I/O error, dev mmcblk0, sector 16248
[ 6978.686706] UBIFS: mounted UBI device 1, volume 0, name "boot"
[ 6978.692718] UBIFS: file system size:   8128512 bytes (7938 KiB, 7 MiB, 63 LEBs)
[ 6978.700134] UBIFS: journal size:       1032193 bytes (1008 KiB, 0 MiB, 6 LEBs)
[ 6978.707397] UBIFS: media format:       w4/r0 (latest is w4/r0)
[ 6978.713287] UBIFS: default compressor: lzo
[ 6978.717407] UBIFS: reserved for root:  383929 bytes (374 KiB)
[ 6978.865570] mmci-omap mmci-omap.0: MMC IRQ 0x208002 : TC ERRI DCRC
[ 6978.866546] mmcblk0: error -84 transferring data
[ 6978.871307] end_request: I/O error, dev mmcblk0, sector 4888192
[ 6978.877288] end_request: I/O error, dev mmcblk0, sector 4888200
[ 6978.883239] end_request: I/O error, dev mmcblk0, sector 4888208
[ 6978.889221] end_request: I/O error, dev mmcblk0, sector 4888216
[ 6978.895172] end_request: I/O error, dev mmcblk0, sector 4888224
[ 6978.901123] end_request: I/O error, dev mmcblk0, sector 4888232
[ 6978.907073] end_request: I/O error, dev mmcblk0, sector 4888240
[ 6978.913024] end_request: I/O error, dev mmcblk0, sector 4888248
[ 6979.687957] input: nub0 as /devices/platform/i2c_omap.3/i2c-adapter/i2c-3/3-0066/input/input6
[ 6979.931060] input: nub1 as /devices/platform/i2c_omap.3/i2c-adapter/i2c-3/3-0067/input/input7
[ 6987.683807] Generic kernel compatibility enabled based on linux-next next-20100113
[ 6987.961059] cfg80211: Calling CRDA to update world regulatory domain
[ 6988.720336] lib80211: common routines for IEEE802.11 drivers
[ 6988.726104] lib80211_crypt: registered algorithm 'NULL'
[ 6988.780670] lib80211_crypt: registered algorithm 'TKIP'
[ 6988.826904] lib80211_crypt: registered algorithm 'WEP'
[ 6988.878845] lib80211_crypt: registered algorithm 'CCMP'
[ 6989.073364] Pandora WiFi: Probe started
[ 6989.101562] Sending insert event for MMC3...
[ 6989.105865] Pandora WiFi: Probe done
[ 6989.156860] mmc2: card claims to support voltages below the defined range. These will be ignored.
[ 6989.165832] mmc2: SDIO card claims to support the incompletely defined 'low voltage range'. This will be ignored.
[ 6989.178314] mmc2: new SDIO card at address 0001
[ 6989.227447] wl1251: using dedicated interrupt line
[ 6989.606811] phy0: Selected rate control algorithm 'minstrel'
[ 6989.607696] wl1251: loaded
[ 6989.610473] wl1251: initialized
[ 6991.070098] sdio_reset_comm():
[ 6991.078460] wl1251_sdio mmc2:0001:1: firmware: requesting wl1251-fw.bin
[ 6991.953002] wl1251: 151 tx blocks at 0x3b788, 35 rx blocks at 0x3a780
[ 6991.953247] wl1251: firmware booted (Rev 4.0.4.3.5)
[ 6991.976379] phy0: device now idle
[ 6992.078826] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 7007.627014] phy0: device no longer idle - scanning
[ 7008.238464] phy0: device now idle
[ 7008.239318] phy0: device no longer idle - scanning
[ 7008.732666] phy0: device now idle
[ 7018.035461] phy0: device no longer idle - scanning
[ 7018.616790] phy0: device now idle
[ 7018.625335] phy0: device no longer idle - scanning
[ 7018.626861] wlan0: deauthenticating from cdaffc2c by local choice (reason=3)
[ 7018.710662] wlan0: authenticate with cdbb0148 (try 1)
[ 7018.718688] wlan0: authenticated
[ 7018.718719] phy0: device now idle
[ 7018.741973] phy0: device no longer idle - working
[ 7018.765319] wlan0: associate with cdbb00c8 (try 1)
[ 7018.778228] wlan0: RX AssocResp from cf233e1a (capab=0x411 status=0 aid=1)
[ 7018.778259] wlan0: associated
[ 7018.778289] phy0: Allocated STA cd1ed9e8
[ 7018.779663] phy0: Inserted STA cd1ed9e8
[ 7018.779663] phy0: WMM queue=2 aci=0 acm=0 aifs=3 cWmin=15 cWmax=1023 txop=0 uapsd=0
[ 7018.789093] phy0: WMM queue=3 aci=1 acm=0 aifs=7 cWmin=15 cWmax=1023 txop=0 uapsd=0
[ 7018.804687] phy0: WMM queue=1 aci=2 acm=0 aifs=2 cWmin=7 cWmax=15 txop=94 uapsd=0
[ 7018.820312] phy0: WMM queue=0 aci=3 acm=0 aifs=2 cWmin=3 cWmax=7 txop=47 uapsd=0
[ 7018.860992] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 7018.883514] phy0: WMM queue=2 aci=0 acm=0 aifs=3 cWmin=15 cWmax=1023 txop=0 uapsd=0
[ 7018.883972] phy0: WMM queue=3 aci=1 acm=0 aifs=7 cWmin=15 cWmax=1023 txop=0 uapsd=0
[ 7018.884460] phy0: WMM queue=1 aci=2 acm=0 aifs=2 cWmin=7 cWmax=15 txop=94 uapsd=0
[ 7018.884887] phy0: WMM queue=0 aci=3 acm=0 aifs=2 cWmin=3 cWmax=7 txop=47 uapsd=0
[ 7028.929382] wlan0: no IPv6 routers present
[ 7139.570037] usb 1-2: new high speed USB device using ehci-omap and address 2
[ 7139.869506] usb 1-2: configuration #1 chosen from 1 choice
[ 7139.886383] usb 1-2: New USB device found, idVendor=046d, idProduct=0802
[ 7139.893218] usb 1-2: New USB device strings: Mfr=0, Product=0, SerialNumber=2
[ 7139.900451] usb 1-2: SerialNumber: AF135290
[ 7140.777343] Linux video capture interface: v2.00
[ 7140.951110] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0802)
[ 7141.094635] input: UVC Camera (046d:0802) as /devices/platform/ehci-omap.0/usb1/1-2/1-2:1.0/input/input8
[ 7141.402557] usbcore: registered new interface driver uvcvideo
[ 7141.408416] USB Video Class driver (v0.1.0)
[ 7141.484344] usbcore: registered new interface driver snd-usb-audio
[ 7143.592407] __ratelimit: 23 callbacks suppressed
[ 7143.597045] keyboard.c: can't emulate rawmode for keycode 139
[ 7143.698455] keyboard.c: can't emulate rawmode for keycode 139

Here's the lsusb.out
Code:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 046d:0802 Logitech, Inc.

The lsdev.out
Code:
total 8
drwxr-xr-x 2 root root           0 Jan  1  1970 pts
prw------- 1 root root           0 Aug 20 14:51 initctl
drwxr-xr-x 3 root root          60 Aug 20 14:51 bus
drwxr-xr-x 4 root root          80 Aug 20 14:51 disk
crw-rw---- 1 root video    29,   1 Aug 20 14:51 fb1
crw-rw---- 1 root video    29,   0 Aug 20 14:51 fb0
crw-rw---- 1 root dialout   4,  67 Aug 20 14:51 ttyS3
crw-rw---- 1 root dialout   4,  66 Aug 20 14:51 ttyS2
crw-rw---- 1 root dialout   4,  65 Aug 20 14:51 ttyS1
crw-rw---- 1 root video    29,   2 Aug 20 14:51 fb2
crw-rw-rw- 1 root root      1,   5 Aug 20 14:51 zero
crw-rw-rw- 1 root root      1,   9 Aug 20 14:51 urandom
crw-rw-rw- 1 root root      1,   8 Aug 20 14:51 random
crw-rw-rw- 1 root root      1,   3 Aug 20 14:51 null
crw-r----- 1 root kmem      1,   1 Aug 20 14:51 mem
crw-rw---- 1 root root      1,  11 Aug 20 14:51 kmsg
crw-r----- 1 root kmem      1,   2 Aug 20 14:51 kmem
crw-rw-rw- 1 root root      1,   7 Aug 20 14:51 full
crw-rw---- 1 root root     10,  61 Aug 20 14:51 cpu_dma_latency
crw-rw---- 1 root tty       7, 128 Aug 20 14:51 vcsa
crw-rw---- 1 root tty       7,   0 Aug 20 14:51 vcs
crw-rw---- 1 root root     10,  62 Aug 20 14:51 ubi_ctrl
crw-rw---- 1 root root     10,  63 Aug 20 14:51 twl4030-madc
crw--w---- 1 root root      4,   9 Aug 20 14:51 tty9
crw--w---- 1 root root      4,   8 Aug 20 14:51 tty8
crw--w---- 1 root root      4,   7 Aug 20 14:51 tty7
crw--w---- 1 root root      4,  63 Aug 20 14:51 tty63
crw--w---- 1 root root      4,  62 Aug 20 14:51 tty62
crw--w---- 1 root root      4,  61 Aug 20 14:51 tty61
crw--w---- 1 root root      4,  60 Aug 20 14:51 tty60
crw--w---- 1 root root      4,   6 Aug 20 14:51 tty6
crw--w---- 1 root root      4,  59 Aug 20 14:51 tty59
crw--w---- 1 root root      4,  58 Aug 20 14:51 tty58
crw--w---- 1 root root      4,  57 Aug 20 14:51 tty57
crw--w---- 1 root root      4,  56 Aug 20 14:51 tty56
crw--w---- 1 root root      4,  55 Aug 20 14:51 tty55
crw--w---- 1 root root      4,  54 Aug 20 14:51 tty54
crw--w---- 1 root root      4,  53 Aug 20 14:51 tty53
crw--w---- 1 root root      4,  52 Aug 20 14:51 tty52
crw--w---- 1 root root      4,  51 Aug 20 14:51 tty51
crw--w---- 1 root root      4,  50 Aug 20 14:51 tty50
crw--w---- 1 root root      4,   5 Aug 20 14:51 tty5
crw--w---- 1 root root      4,  49 Aug 20 14:51 tty49
crw--w---- 1 root root      4,  48 Aug 20 14:51 tty48
crw--w---- 1 root root      4,  47 Aug 20 14:51 tty47
crw--w---- 1 root root      4,  46 Aug 20 14:51 tty46
crw--w---- 1 root root      4,  45 Aug 20 14:51 tty45
crw--w---- 1 root root      4,  44 Aug 20 14:51 tty44
crw--w---- 1 root root      4,  43 Aug 20 14:51 tty43
crw--w---- 1 root root      4,  42 Aug 20 14:51 tty42
crw--w---- 1 root root      4,  41 Aug 20 14:51 tty41
crw--w---- 1 root root      4,  40 Aug 20 14:51 tty40
crw--w---- 1 root root      4,   4 Aug 20 14:51 tty4
crw--w---- 1 root root      4,  39 Aug 20 14:51 tty39
crw--w---- 1 root root      4,  38 Aug 20 14:51 tty38
crw--w---- 1 root root      4,  37 Aug 20 14:51 tty37
crw--w---- 1 root root      4,  36 Aug 20 14:51 tty36
crw--w---- 1 root root      4,  35 Aug 20 14:51 tty35
crw--w---- 1 root root      4,  34 Aug 20 14:51 tty34
crw--w---- 1 root root      4,  33 Aug 20 14:51 tty33
crw--w---- 1 root root      4,  32 Aug 20 14:51 tty32
crw--w---- 1 root root      4,  31 Aug 20 14:51 tty31
crw--w---- 1 root root      4,  30 Aug 20 14:51 tty30
crw--w---- 1 root root      4,   3 Aug 20 14:51 tty3
crw--w---- 1 root root      4,  29 Aug 20 14:51 tty29
crw--w---- 1 root root      4,  28 Aug 20 14:51 tty28
crw--w---- 1 root root      4,  27 Aug 20 14:51 tty27
crw--w---- 1 root root      4,  26 Aug 20 14:51 tty26
crw--w---- 1 root root      4,  25 Aug 20 14:51 tty25
crw--w---- 1 root root      4,  24 Aug 20 14:51 tty24
crw--w---- 1 root root      4,  23 Aug 20 14:51 tty23
crw--w---- 1 root root      4,  22 Aug 20 14:51 tty22
crw--w---- 1 root root      4,  21 Aug 20 14:51 tty21
crw--w---- 1 root root      4,  20 Aug 20 14:51 tty20
crw--w---- 1 root root      4,   2 Aug 20 14:51 tty2
crw--w---- 1 root root      4,  19 Aug 20 14:51 tty19
crw--w---- 1 root root      4,  18 Aug 20 14:51 tty18
crw--w---- 1 root root      4,  17 Aug 20 14:51 tty17
crw--w---- 1 root root      4,  16 Aug 20 14:51 tty16
crw--w---- 1 root root      4,  15 Aug 20 14:51 tty15
crw--w---- 1 root root      4,  14 Aug 20 14:51 tty14
crw--w---- 1 root root      4,  13 Aug 20 14:51 tty13
crw--w---- 1 root root      4,  12 Aug 20 14:51 tty12
crw--w---- 1 root root      4,  11 Aug 20 14:51 tty11
crw--w---- 1 root root      4,  10 Aug 20 14:51 tty10
crw--w---- 1 root root      4,   0 Aug 20 14:51 tty0
crw-rw---- 1 root root     10,   1 Aug 20 14:51 psaux
crw-rw---- 1 root root     10,  59 Aug 20 14:51 network_throughput
crw-rw---- 1 root root     10,  60 Aug 20 14:51 network_latency
drwxr-xr-x 2 root root         600 Aug 20 14:52 block
lrwxrwxrwx 1 root root           3 Aug 21 15:42 fb -> fb0
crw-rw---- 1 root audio   254,   0 Aug 21 15:42 rtc0
lrwxrwxrwx 1 root root           4 Aug 21 15:42 rtc -> rtc0
crw-rw---- 1 root root     89,   1 Aug 21 15:42 i2c-1
crw-rw---- 1 root root    251,   1 Aug 21 15:42 usbdev1.1_ep00
crw-rw---- 1 root root     89,   3 Aug 21 15:42 i2c-3
crw-rw---- 1 root audio    14,  12 Aug 21 15:42 adsp
crw-rw---- 1 root audio    14,   4 Aug 21 15:42 audio
crw-rw---- 1 root audio    14,   0 Aug 21 15:42 mixer
crw-rw---- 1 root audio    14,   3 Aug 21 15:42 dsp
brw-rw---- 1 root floppy  179,   0 Aug 21 15:42 mmcblk0
brw-rw---- 1 root disk      7,   1 Aug 21 15:42 loop1
brw-rw---- 1 root disk      7,   0 Aug 21 15:42 loop0
brw-rw---- 1 root disk      7,   2 Aug 21 15:42 loop2
brw-rw---- 1 root disk      7,   4 Aug 21 15:42 loop4
brw-rw---- 1 root disk      7,   3 Aug 21 15:42 loop3
brw-rw---- 1 root disk      7,   5 Aug 21 15:42 loop5
brw-rw---- 1 root disk      7,   6 Aug 21 15:42 loop6
brw-rw---- 1 root disk      7,   7 Aug 21 15:42 loop7
brw-rw---- 1 root disk      1,   0 Aug 21 15:42 ram0
brw-rw---- 1 root disk      1,   1 Aug 21 15:42 ram1
brw-rw---- 1 root disk      1,  10 Aug 21 15:42 ram10
brw-rw---- 1 root disk      1,  11 Aug 21 15:42 ram11
brw-rw---- 1 root disk      1,  12 Aug 21 15:42 ram12
brw-rw---- 1 root disk      1,  13 Aug 21 15:42 ram13
crw-rw---- 1 root root    251,   0 Aug 21 15:42 usbdev1.1_ep81
crw-rw---- 1 root root     90,   0 Aug 21 15:42 mtd0
crw-rw---- 1 root root     90,   1 Aug 21 15:42 mtd0ro
crw-rw---- 1 root root     90,   2 Aug 21 15:42 mtd1
crw-rw---- 1 root root     90,   3 Aug 21 15:42 mtd1ro
crw-rw---- 1 root root     90,   5 Aug 21 15:42 mtd2ro
crw-rw---- 1 root root     90,   4 Aug 21 15:42 mtd2
brw-rw---- 1 root disk      1,  14 Aug 21 15:42 ram14
crw-rw---- 1 root root     90,   6 Aug 21 15:42 mtd3
crw-rw---- 1 root root     90,   7 Aug 21 15:42 mtd3ro
crw-rw---- 1 root root     90,   8 Aug 21 15:42 mtd4
crw-rw---- 1 root root     90,   9 Aug 21 15:42 mtd4ro
crw-rw---- 1 root root    253,   0 Aug 21 15:42 ubi0
crw-rw---- 1 root root    252,   0 Aug 21 15:42 ubi1
crw-rw---- 1 root root    252,   1 Aug 21 15:42 ubi1_0
crw-rw---- 1 root root    253,   1 Aug 21 15:42 ubi0_0
brw-rw---- 1 root disk      1,  15 Aug 21 15:42 ram15
brw-rw---- 1 root disk      1,   2 Aug 21 15:42 ram2
brw-rw---- 1 root disk      1,   3 Aug 21 15:42 ram3
brw-rw---- 1 root disk      1,   4 Aug 21 15:42 ram4
-rw-r--r-- 1 root root          12 Aug 21 15:42 udev_network_queue
brw-rw---- 1 root disk      1,   5 Aug 21 15:42 ram5
brw-rw---- 1 root disk      1,   6 Aug 21 15:42 ram6
brw-rw---- 1 root disk      1,   7 Aug 21 15:42 ram7
brw-rw---- 1 root disk      1,   8 Aug 21 15:42 ram8
brw-rw---- 1 root disk      1,   9 Aug 21 15:42 ram9
brw-rw---- 1 root floppy  179,   1 Aug 21 15:42 mmcblk0p1
brw-rw---- 1 root floppy  179,   8 Aug 21 15:42 mmcblk1
brw-rw---- 1 root floppy  179,   9 Aug 21 15:42 mmcblk1p1
crw-rw-rw- 1 root root    250,   0 Aug 21 15:42 pvrsrvkm
crw-rw-rw- 1 root root    249,   0 Aug 21 15:42 bc_cat
crw-r--r-- 1 root root     10,  58 Aug 21 15:42 rfkill
crw-rw---- 1 root tty       7, 129 Aug 21 15:42 vcsa1
crw-rw---- 1 root tty       7,   1 Aug 21 15:42 vcs1
crw--w--w- 1 root root      4,   1 Aug 21 15:42 tty1
crw--w--w- 1 root root      4,  64 Aug 21 15:42 ttyS0
crw-rw---- 1 root tty       7, 135 Aug 21 15:42 vcsa7
crw-rw---- 1 root tty       7,   7 Aug 21 15:42 vcs7
-rw-r--r-- 1 root root          65 Aug 21 15:42 stderr
drwxrwxrwx 2 root root          60 Aug 21 15:43 shm
crw-rw---- 1 root root    251,   3 Aug 21 15:45 usbdev1.2_ep00
crw-rw---- 1 root root    251,   2 Aug 21 15:45 usbdev1.2_ep87
crw-rw---- 1 root video    81,   0 Aug 21 15:45 video0
drwxr-xr-x 4 root root          80 Aug 21 15:45 v4l
crw-rw---- 1 root audio    14,  19 Aug 21 15:45 dsp1
crw-rw---- 1 root audio    14,  20 Aug 21 15:45 audio1
crw-rw---- 1 root audio    14,  16 Aug 21 15:45 mixer1
drwxr-xr-x 4 root root         240 Aug 21 15:45 snd
drwxr-xr-x 4 root root         360 Aug 21 15:45 input
drwxr-xr-x 2 root root        3000 Aug 21 15:45 char
crw------- 1 root root      5,   1 Aug 21 15:45 console
crw-rw-rw- 1 root root      5,   0 Aug 21 15:49 tty
crw-rw-rw- 1 root root      5,   2 Aug 21 15:52 ptmx

And mplayer.out
Code:
MPlayer SVN-r30165-4.3.3 (C) 2000-2009 MPlayer Team

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: UVC Camera (046d:0802)
 Capabilites:  video capture  streaming
 supported norms:
 inputs: 0 = Camera 1;
 Current input: 0
 Current format: YUYV
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 320x240 => 320x240 Packed YUY2 
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
FPS forced to be 30.000  (ftime: 0.033).
Starting playback...
V:   0.0   1/  1 ??% ??% ??,?% 0 0 
V:   0.0   2/  2 ??% ??% ??,?% 0 0 
V:   0.0   3/  3 ??% ??% ??,?% 0 0 
V:   0.0   4/  4 ??% ??% ??,?% 0 0 
V:   0.0   5/  5 ??% ??% ??,?% 0 0 
V:   0.0   6/  6 ??% ??% ??,?% 0 0 
V:   0.0   7/  7 ??% ??% ??,?% 0 0 
V:   0.0   8/  8 ??% ??% ??,?% 0 0 
V:   0.0   9/  9 ??% ??% ??,?% 0 0 
V:   0.0  10/ 10 ??% ??% ??,?% 0 0 
V:   0.0  11/ 11 ??% ??% ??,?% 0 0 
V:   0.0  12/ 12 ??% ??% ??,?% 0 0 
V:   0.0  13/ 13 ??% ??% ??,?% 0 0 
V:   0.0  14/ 14 ??% ??% ??,?% 0 0 
V:   0.0  15/ 15 ??% ??% ??,?% 0 0 
V:   0.0  16/ 16 ??% ??% ??,?% 0 0 
V:   0.0  17/ 17  0% 31%  0.0% 0 0 
V:   0.0  18/ 18  0% 30%  0.0% 0 0 
V:   0.0  19/ 19  0% 28%  0.0% 0 0 
V:   0.0  20/ 20  0% 27%  0.0% 0 0 
V:   0.0  21/ 21  0% 26%  0.0% 0 0 
V:   0.0  22/ 22  0% 25%  0.0% 0 0 
V:   0.0  23/ 23  0% 24%  0.0% 0 0 
V:   0.0  24/ 24  0% 23%  0.0% 0 0 
V:   0.0  25/ 25  0% 23%  0.0% 0 0 
V:   0.0  26/ 26  0% 22%  0.0% 0 0 
V:   0.0  27/ 27  0% 21%  0.0% 0 0 
V:   0.0  28/ 28  0% 21%  0.0% 0 0 
V:   0.0  29/ 29  0% 20%  0.0% 0 0 
V:   0.0  30/ 30  0% 20%  0.0% 0 0 
V:   0.0  31/ 31  0% 19%  0.0% 0 0 
V:   0.0  32/ 32  0% 19%  0.0% 0 0 
V:   0.0  33/ 33  0% 18%  0.0% 0 0 
V:   0.0  34/ 34  0% 18%  0.0% 0 0 
V:   0.0  35/ 35  0% 18%  0.0% 0 0 
V:   0.0  36/ 36  0% 17%  0.0% 0 0 
V:   0.0  37/ 37  0% 17%  0.0% 0 0 
V:   0.0  38/ 38  0% 17%  0.0% 0 0 
V:   0.0  39/ 39  0% 16%  0.0% 0 0 
V:   0.0  40/ 40  0% 16%  0.0% 0 0 
V:   0.0  41/ 41  0% 16%  0.0% 0 0 
V:   0.0  42/ 42  0% 16%  0.0% 0 0 
V:   0.0  43/ 43  0% 15%  0.0% 0 0 
V:   0.0  44/ 44  0% 15%  0.0% 0 0 
V:   0.0  45/ 45  0% 15%  0.0% 0 0 
V:   0.0  46/ 46  0% 15%  0.0% 0 0 
V:   0.0  47/ 47  0% 14%  0.0% 0 0 
V:   0.0  48/ 48  0% 14%  0.0% 0 0 
V:   0.0  49/ 49  0% 14%  0.0% 0 0 
V:   0.0  50/ 50  0% 14%  0.0% 0 0 
V:   0.0  51/ 51  0% 14%  0.0% 0 0 
V:   0.0  52/ 52  0% 13%  0.0% 0 0 
V:   0.0  53/ 53  0% 13%  0.0% 0 0 
V:   0.0  54/ 54  0% 13%  0.0% 0 0 
V:   0.0  55/ 55  0% 13%  0.0% 0 0 
V:   0.0  56/ 56  0% 13%  0.0% 0 0 
V:   0.0  57/ 57  0% 13%  0.0% 0 0 
V:   0.0  58/ 58  0% 13%  0.0% 0 0 
V:   0.0  59/ 59  0% 12%  0.0% 0 0 
V:   0.0  60/ 60  0% 12%  0.0% 0 0 
V:   0.0  61/ 61  0% 12%  0.0% 0 0 
V:   0.0  62/ 62  0% 12%  0.0% 0 0 
V:   0.0  63/ 63  0% 12%  0.0% 0 0 
V:   0.0  64/ 64  0% 12%  0.0% 0 0 
V:   0.0  65/ 65  0% 12%  0.0% 0 0 
V:   0.0  66/ 66  0% 12%  0.0% 0 0 
V:   0.0  67/ 67  0% 12%  0.0% 0 0 
V:   0.0  68/ 68  0% 12%  0.0% 0 0 
V:   0.0  69/ 69  0% 12%  0.0% 0 0 
V:   0.0  70/ 70  0% 12%  0.0% 0 0 
V:   0.0  71/ 71  0% 11%  0.0% 0 0 
V:   0.0  72/ 72  0% 11%  0.0% 0 0 
V:   0.0  73/ 73  0% 11%  0.0% 0 0 
V:   0.0  74/ 74  0% 11%  0.0% 0 0 
V:   0.0  75/ 75  0% 11%  0.0% 0 0 
V:   0.0  76/ 76  0% 11%  0.0% 0 0 
V:   0.0  77/ 77  0% 11%  0.0% 0 0 
V:   0.0  78/ 78  0% 11%  0.0% 0 0 
V:   0.0  79/ 79  0% 11%  0.0% 0 0 
V:   0.0  80/ 80  0% 11%  0.0% 0 0 
V:   0.0  81/ 81  0% 11%  0.0% 0 0 
V:   0.0  82/ 82  0% 11%  0.0% 0 0 
V:   0.0  83/ 83  0% 11%  0.0% 0 0 
V:   0.0  84/ 84  0% 11%  0.0% 0 0 
V:   0.0  85/ 85  0% 11%  0.0% 0 0 
V:   0.0  86/ 86  0% 11%  0.0% 0 0 
V:   0.0  87/ 87  0% 10%  0.0% 0 0 
V:   0.0  88/ 88  0% 10%  0.0% 0 0 
V:   0.0  89/ 89  0% 10%  0.0% 0 0 
V:   0.0  90/ 90  0% 10%  0.0% 0 0 
V:   0.0  91/ 91  0% 10%  0.0% 0 0 
V:   0.0  92/ 92  0% 10%  0.0% 0 0 
V:   0.0  93/ 93  0% 10%  0.0% 0 0 
V:   0.0  94/ 94  0% 10%  0.0% 0 0 
V:   0.0  95/ 95  0% 10%  0.0% 0 0 
V:   0.0  96/ 96  0% 10%  0.0% 0 0 
V:   0.0  97/ 97  0% 10%  0.0% 0 0 
V:   0.0  98/ 98  0% 10%  0.0% 0 0 
V:   0.0  99/ 99  0% 10%  0.0% 0 0 
V:   0.0 100/100  0% 10%  0.0% 0 0 
V:   0.0 101/101  0% 10%  0.0% 0 0 
V:   0.0 102/102  0% 10%  0.0% 0 0 
V:   0.0 103/103  0% 10%  0.0% 0 0 
V:   0.0 104/104  0% 10%  0.0% 0 0 
V:   0.0 105/105  0% 10%  0.0% 0 0 
V:   0.0 106/106  0%  9%  0.0% 0 0 
V:   0.0 107/107  0%  9%  0.0% 0 0 
V:   0.0 108/108  0%  9%  0.0% 0 0 
V:   0.0 109/109  0%  9%  0.0% 0 0 
V:   0.0 110/110  0%  9%  0.0% 0 0 
V:   0.0 111/111  0%  9%  0.0% 0 0 
V:   0.0 112/112  0%  9%  0.0% 0 0 
V:   0.0 113/113  0%  9%  0.0% 0 0 
V:   0.0 114/114  0%  9%  0.0% 0 0 
V:   0.0 115/115  0%  9%  0.0% 0 0 
V:   0.0 116/116  0%  9%  0.0% 0 0 
V:   0.0 117/117  0%  9%  0.0% 0 0 
V:   0.0 118/118  0%  9%  0.0% 0 0 
V:   0.0 119/119  0%  9%  0.0% 0 0 
V:   0.0 120/120  0%  9%  0.0% 0 0 
V:   0.0 121/121  0%  9%  0.0% 0 0 
V:   0.0 122/122  0%  9%  0.0% 0 0 
V:   0.0 123/123  0%  9%  0.0% 0 0 
V:   0.0 124/124  0%  9%  0.0% 0 0 
V:   0.0 125/125  0%  9%  0.0% 0 0 
V:   0.0 126/126  0%  9%  0.0% 0 0 
V:   0.0 127/127  0%  9%  0.0% 0 0 
V:   0.0 128/128  0%  9%  0.0% 0 0 
V:   0.0 129/129  0%  9%  0.0% 0 0 
V:   0.0 130/130  0%  9%  0.0% 0 0 
V:   0.0 131/131  0%  9%  0.0% 0 0 
V:   0.0 132/132  0%  9%  0.0% 0 0 
V:   0.0 133/133  0%  9%  0.0% 0 0 
V:   0.0 134/134  0%  9%  0.0% 0 0 
V:   0.0 135/135  0%  9%  0.0% 0 0 
V:   0.0 136/136  0%  9%  0.0% 0 0 
V:   0.0 137/137  0%  9%  0.0% 0 0 
V:   0.0 138/138  0%  8%  0.0% 0 0 
V:   0.0 139/139  0%  8%  0.0% 0 0 
V:   0.0 140/140  0%  8%  0.0% 0 0 
V:   0.0 141/141  0%  8%  0.0% 0 0 
V:   0.0 142/142  0%  8%  0.0% 0 0 
V:   0.0 143/143  0%  8%  0.0% 0 0 
V:   0.0 144/144  0%  8%  0.0% 0 0 
V:   0.0 145/145  0%  8%  0.0% 0 0 
V:   0.0 146/146  0%  8%  0.0% 0 0 
V:   0.0 147/147  0%  8%  0.0% 0 0 
V:   0.0 148/148  0%  8%  0.0% 0 0 
V:   0.0 149/149  0%  8%  0.0% 0 0 
V:   0.0 150/150  0%  8%  0.0% 0 0 
V:   0.0 151/151  0%  8%  0.0% 0 0 
V:   0.0 152/152  0%  8%  0.0% 0 0 
V:   0.0 153/153  0%  8%  0.0% 0 0 
V:   0.0 154/154  0%  8%  0.0% 0 0 
V:   0.0 155/155  0%  8%  0.0% 0 0 
V:   0.0 156/156  0%  8%  0.0% 0 0 
V:   0.0 157/157  0%  8%  0.0% 0 0 
V:   0.0 158/158  0%  8%  0.0% 0 0 
V:   0.0 159/159  0%  8%  0.0% 0 0 
V:   0.0 160/160  0%  8%  0.0% 0 0 
V:   0.0 161/161  0%  8%  0.0% 0 0 
V:   0.0 162/162  0%  8%  0.0% 0 0 
V:   0.0 163/163  0%  8%  0.0% 0 0 
V:   0.0 164/164  0%  8%  0.0% 0 0 
V:   0.0 165/165  0%  8%  0.0% 0 0 
V:   0.0 166/166  0%  8%  0.0% 0 0 
V:   0.0 167/167  0%  8%  0.0% 0 0 
V:   0.0 168/168  0%  8%  0.0% 0 0 
V:   0.0 169/169  0%  8%  0.0% 0 0 
V:   0.0 170/170  0%  8%  0.0% 0 0 
V:   0.0 171/171  0%  8%  0.0% 0 0 
V:   0.0 172/172  0%  8%  0.0% 0 0 
V:   0.0 173/173  0%  8%  0.0% 0 0 
V:   0.0 174/174  0%  8%  0.0% 0 0 
V:   0.0 175/175  0%  8%  0.0% 0 0 
V:   0.0 176/176  0%  8%  0.0% 0 0 
v4l2: 177 frames successfully processed, 351 frames dropped.

Exiting... (Quit)
 
Didn't see any "no such file" error. According to those logs, it should have worked perfectly. Did you not see an image?
 
Here's the message I got when I tried it again:
Code:
pootle-openpandora:~$ mplayer tv://-tvdriver=v4l2:width=640:height=480:device=/dev/dsp1:immediatemode=0
MPlayer SVN-r30165-4.3.3 (C) 2000-2009 MPlayer Team

Playing tv://-tvdriver=v4l2:width=640:height=480:device=/dev/dsp1:immediatemode=0.
Option stream url: This URL doesn't have a port part.
The filename option must be an integer: dev/dsp1:immediatemode=0
Struct tv, field filename parsing error: dev/dsp1:immediatemode=0
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 ;-)
v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
Selected device: UVC Camera (046d:0802)
 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): Bogus norm parameter, setting default.
v4l2: ioctl enum norm failed: Invalid argument
Error: Cannot set norm!
Selected input hasn't got a tuner!
v4l2: ioctl set mute failed: Invalid argument
v4l2: ioctl query control failed: Invalid argument
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 640x480 => 640x480 Packed YUY2 
Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
==========================================================================
Audio: no sound
Starting playback...
v4l2: ioctl set mute failed: Invalid argument
v4l2: 260 frames successfully processed, 642 frames dropped.

Exiting... (Quit)
pootle-openpandora:~$

The video still works fine, just the same no sound issue.
 
oh, video is fine? Sorry, I thought we were trying to troubleshoot your video. Whoops.
Do this:
mplayer tv:// -tv driver=v4l2:width=640:height=480:forceaudio:adevice=/dev/dsp1:immediatemode=0
Note the extra spaces, and that is "adevice" (for audio device), not just "device". Also added forceaudio just because, though I don't think it really needs to be there.
 
Can't believe I missed that "a"! D'oh!

I tried it and it still says no sound. But in the mixer controls a usb microphone is listed so something is being recognised. I have tried to switch inputs there but no luck, still nothing.

Thanks again for all this help!
 
WizardStan said:
For an easier time, you can simply open a TV device from in gnome-mplayer (File->TV->Analog)

ARGH!

AAARGH!
AAAARGHHHHHH!!!!!!!

Why didn't I know this before?!!!!!! I felt SURE the cams I was testing should work. And guess what? Yes they $%^&*&^ lovely-well do! Why they don't work with cheese is a bit of a mystery, but, for the model I have in my possession at least, when doing as you described they just work!

(so, thanks :))
 
Last edited by a moderator:
Pleng said:
WizardStan said:
For an easier time, you can simply open a TV device from in gnome-mplayer (File->TV->Analog)

ARGH!

AAARGH!
AAAARGHHHHHH!!!!!!!

Why didn't I know this before?!!!!!! I felt SURE the cams I was testing should work. And guess what? Yes they $%^&*&^ lovely-well do! Why they don't work with cheese is a bit of a mystery, but, for the model I have in my possession at least, when doing as you described they just work!

(so, thanks :) )

Cheese doesn't work with my livecam HD etither. In Mplayer it works. Maybe someone could do a proper port of cheese, so that we have a interface for videorecording.
 
Last edited by a moderator:
OK so now I've managed to get the cam working via the mplayer command line, how do I actually record the stream to a file?

cheers!

(edit) Additionally, while the framerate in gnome-mplayer is fine, using the command line the display lags around 3-4 second and about 3 in 4 frames are dropped, and that's at 800Mhz! Is there any way to snoop what commands gnome-mplayer is performing so I can find out what exactly is going on?
 
Pleng said:
OK so now I've managed to get the cam working via the mplayer command line, how do I actually record the stream to a file?
mplayer yaddawebcamoptions -dumpstream -dumpfile /media/SDCARD/webcam.avi
then play it back directly
mplayer /media/SDCARD/webcam.avi

Pleng said:
(edit) Additionally, while the framerate in gnome-mplayer is fine, using the command line the display lags around 3-4 second and about 3 in 4 frames are dropped, and that's at 800Mhz! Is there any way to snoop what commands gnome-mplayer is performing so I can find out what exactly is going on?
With sound active, it's expected to lag a second or 2, but the frame drops is odd. It could be the video output being used. Try appending "-vo xv" or "-vo sdl" (just one, not both) to the command.
 
Last edited by a moderator:
WizardStan said:
With sound active, it's expected to lag a second or 2, but the frame drops is odd. It could be the video output being used. Try appending "-vo xv" or "-vo sdl" (just one, not both) to the command.

Nope. Neither of those help the situation I'm afraid.

Some error/notification messages from Mplayer that may be of interest:

(using mplayer tv:// -tv -vo sdl - tr driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:adevice=/dev/dsp:immidiatemode=0)

v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead
(...)
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): Bogus norm parameter, setting default
v4l2: ioctl enum norm failed: Invalid argument
Error: cannot set norm
Audio block size too low, setting to 16384
v4l2: ioctl set mute failed: Invalid argument
(...)
Starting playback...
v4l2: select timeout
A: 9.4 V: 9.4 A-V: 0.006 ct: 0.089 30/30 0% 1% 0.2% 3 0
Error reading audio: Input/Output Error
A: 19.4 V: 19.6 A-V: -0.202 ct: 0.004 66/66 0% 1% 0.2% 3 0
Error reading audio: Input/Output Error
A: 23.6 V: 23.6 A-V: 0.000 ct: 0.094 80/80 0% 1% 0.2% 3 0
Error reading audio: Input/Output Error
v4l2: ioctl set mute failed: Invalid argument
v4l2: 159 frames successfully processed, 528 frames dropped

The window being displayed is much smaller than 640 x 480 so I guess that accounts for 2 of the 'ioctl set format failed'errors.
 
Last edited by a moderator:
Here's some output from gnome-mplayer using the --reallyverbose option. I don't know if this gives any clues?

thread reader: Playing tv://.
thread reader:
thread reader: Cache fill: 0.00% (0 bytes)
thread reader: TV file format detected.
thread reader error: v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
thread reader: Selected driver: v4l2
thread reader error: v4l2: ioctl set format failed: Invalid argument
thread reader: name: Video 4 Linux 2 input
thread reader error: v4l2: ioctl set format failed: Invalid argument
thread reader: author: Martin Olschewski <olschewski@zpr.uni-koeln.de>
thread reader error: v4l2: ioctl set format failed: Invalid argument
thread reader: comment: first try, more to come ;-)
thread reader error: tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
thread reader: Selected device: USB 2.0 PC Camera
thread reader error: v4l2: ioctl enum norm failed: Invalid argument
thread reader: Capabilites: video capture streaming
thread reader error: Error: Cannot set norm!
thread reader: supported norms:
thread reader error: Selected input hasn't got a tuner!
thread reader: inputs: 0 = Camera 1;
thread reader error: v4l2: ioctl set mute failed: Invalid argument
thread reader: Current input: 0
thread reader: Current format: YUYV
thread reader: ID_VIDEO_ID=0
thread reader: ID_FILENAME=tv://
thread reader: ID_DEMUXER=tv
thread reader: ID_VIDEO_FORMAT=YUY2
thread reader: ID_VIDEO_BITRATE=0
thread reader: ID_VIDEO_WIDTH=320
thread reader: ID_VIDEO_HEIGHT=240
thread reader: ID_VIDEO_FPS=30.000
thread reader: ID_VIDEO_ASPECT=0.0000
thread reader: ID_LENGTH=0.00
thread reader: ID_SEEKABLE=0
thread reader: ID_CHAPTERS=0
thread reader: [ass] auto-open
thread reader: Opening video filter: [screenshot]
thread reader: Opening video filter: [eq2]
thread reader: [ass] Init
thread reader: [ass] Updating font cache.
thread reader: ==========================================================================
thread reader: Opening video decoder: [raw] RAW Uncompressed Video
thread reader: Could not find matching colorspace - retrying with -vf scale...
thread reader: Opening video filter: [scale]
thread reader: Movie-Aspect is undefined - no prescaling applied.
thread reader error: [swscaler @ 0xd7a160]using unscaled yuyv422 -> yuv420p special converter
thread reader error: [swscaler @ 0xd7fb80]No accelerated colorspace conversion found.
thread reader: VO: [xv] 320x240 => 320x240 Planar YV12
Resizing to 320 x 240
current size = 0 x 0
Changing window size to 320 x 240 visible = 1
send command = pausing_keep get_time_length

send command = pausing_keep get_property chapters

send command = pausing_keep_force get_property path

send command = pausing_keep get_property sub_demux

send command = pausing_keep brightness 0

send command = pausing_keep contrast 0

send command = pausing_keep gamma 0

send command = pausing_keep hue 0

send command = pausing_keep saturation 0

video present = 1
movie size = 320 x 240
movie allocation new_width 514 new_height 1
actual movie new_width 320 new_height 240
original movie width 320 height 240
new_width 0 new_height 0
media size = 320 x 240
media size = 320 x 240
send command = pausing_keep set_property sub_visibility 1

send command = volume 100 1

video present = 1
movie size = 320 x 240
movie allocation new_width 320 new_height 240
actual movie new_width 320 new_height 240
original movie width 320 height 240
new_width 320 new_height 240
video present = 1
movie size = 320 x 240
movie allocation new_width 320 new_height 240
actual movie new_width 320 new_height 240
original movie width 320 height 240
new_width 320 new_height 240
thread reader: Selected video codec: [rawyuy2] vfm: raw (RAW YUY2)
send command = pausing_keep get_time_length

send command = pausing_keep get_property stream_pos

send command = pausing_keep get_property volume

thread reader: ==========================================================================
thread reader error: v4l2: select timeout
thread reader: ID_VIDEO_CODEC=rawyuy2
thread reader: Audio: no sound
thread reader: Starting playback...
thread reader: ANS_LENGTH=0.00
thread reader: ANS_chapters=0
thread reader error: Failed to get value of property 'sub_demux'.
thread reader: ANS_path=tv://
pausing keep force enabled
thread reader error: Failed to get value of property 'volume'.
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
thread reader: ANS_TIME_POSITION=0.0
send command = get_percent_pos

thread reader: ANS_LENGTH=0.00
thread reader: ANS_stream_pos=0
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
send command = pausing_keep_force get_time_length

send command = pausing_keep_force get_property stream_pos

send command = pausing_keep_force get_property volume

thread reader: ANS_PERCENT_POSITION=0
thread reader error: Failed to get value of property 'volume'.
thread reader: ANS_TIME_POSITION=0.0
send command = get_percent_pos

thread reader: ANS_LENGTH=0.00
thread reader: ANS_stream_pos=0
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
thread reader: ANS_PERCENT_POSITION=0
send command = pausing_keep_force get_time_length

send command = pausing_keep_force get_property stream_pos

send command = pausing_keep_force get_property volume

thread reader: ANS_TIME_POSITION=0.0
send command = get_percent_pos

thread reader: ANS_LENGTH=0.00
thread reader error: Failed to get value of property 'volume'.
thread reader: ANS_stream_pos=0
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
thread reader: ANS_PERCENT_POSITION=0
send command = pausing_keep_force get_time_length

send command = pausing_keep_force get_property stream_pos

send command = pausing_keep_force get_property volume

thread reader: ANS_TIME_POSITION=0.0
send command = get_percent_pos

thread reader: ANS_LENGTH=0.00
thread reader error: Failed to get value of property 'volume'.
thread reader: ANS_stream_pos=0
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
thread reader: ANS_PERCENT_POSITION=0
send command = pausing_keep_force get_time_length

send command = pausing_keep_force get_property stream_pos

send command = pausing_keep_force get_property volume

thread reader: ANS_TIME_POSITION=0.0
send command = get_percent_pos

thread reader: ANS_LENGTH=0.00
thread reader error: Failed to get value of property 'volume'.
thread reader: ANS_stream_pos=0
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
thread reader: ANS_PERCENT_POSITION=0
send command = pausing_keep_force get_time_length

send command = pausing_keep_force get_property stream_pos

send command = pausing_keep_force get_property volume

thread reader: ANS_TIME_POSITION=0.0
send command = get_percent_pos

thread reader: ANS_LENGTH=0.00
thread reader error: Failed to get value of property 'volume'.
thread reader: ANS_stream_pos=0
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
thread reader: ANS_PERCENT_POSITION=0
send command = pausing_keep_force get_time_length

send command = pausing_keep_force get_property stream_pos

send command = pausing_keep_force get_property volume

thread reader: ANS_TIME_POSITION=0.0
send command = get_percent_pos

thread reader: ANS_LENGTH=0.00
thread reader error: Failed to get value of property 'volume'.
thread reader: ANS_stream_pos=0
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
thread reader: ANS_PERCENT_POSITION=0
send command = pausing_keep_force get_time_length

send command = pausing_keep_force get_property stream_pos

send command = pausing_keep_force get_property volume

thread reader: ANS_TIME_POSITION=0.0
send command = get_percent_pos

thread reader: ANS_LENGTH=0.00
thread reader error: Failed to get value of property 'volume'.
thread reader: ANS_stream_pos=0
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
thread reader: ANS_PERCENT_POSITION=0
send command = pausing_keep_force get_time_length

send command = pausing_keep_force get_property stream_pos

send command = pausing_keep_force get_property volume

thread reader: ANS_TIME_POSITION=0.0
send command = get_percent_pos

thread reader: ANS_LENGTH=0.00
thread reader error: Failed to get value of property 'volume'.
thread reader: ANS_stream_pos=0
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
thread reader: ANS_PERCENT_POSITION=0
send command = pausing_keep_force get_time_length

send command = pausing_keep_force get_property stream_pos

send command = pausing_keep_force get_property volume

thread reader: ANS_TIME_POSITION=0.0
send command = get_percent_pos

thread reader: ANS_LENGTH=0.00
thread reader error: Failed to get value of property 'volume'.
thread reader: ANS_stream_pos=0
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
thread reader: ANS_PERCENT_POSITION=0
send command = pausing_keep_force get_time_length

send command = pausing_keep_force get_property stream_pos

send command = pausing_keep_force get_property volume

thread reader: ANS_TIME_POSITION=0.0
send command = get_percent_pos

thread reader: ANS_LENGTH=0.00
thread reader error: Failed to get value of property 'volume'.
thread reader: ANS_stream_pos=0
thread reader: ANS_ERROR=PROPERTY_UNAVAILABLE
thread reader: ANS_PERCENT_POSITION=0
send command = seek 0 2
pause

thread reader error: TV input is not seekable! (Seeking will probably be for changing channels ;)
send command = quit

thread reader: ===== PAUSE =====
thread reader: ID_PAUSED
thread reader error: v4l2: ioctl set mute failed: Invalid argument
thread reader: v4l2: 118 frames successfully processed, 177 frames dropped.
thread reader:
thread reader: Exiting... (Quit)
Thread completing
video present = 1
movie size = 320 x 240
movie allocation new_width 320 new_height 240
actual movie new_width 320 new_height 240
original movie width 320 height 240
new_width 320 new_height 240

As you can see, with gnome mplayer it's down to approx 2 in 3 frames being dropped, but it looks a LOT smoother. Changing the CPU from 500 to 800 has very little affect on the result.
 
woah. I have no idea what the default sound device is doing, but that is a huuuuuuuuge lag, like 15 seconds, and lots of dropped frames.
The problem is where you specify adevice. According to the string above (which is wrong, by the way. I assume you just copied it wrong), your sound device is /dev/dsp, which is the default (microphone) sound device. Try /dev/dsp1 for the microphone built into the webcam, assuming it has one. I'll experiment a bit to see if I can't get some better results out of the built in microphone.
A quick test and I don't seem to be getting anything out of it anymore. Recording from /dev/dsp does not work. I had it doing something before, but can't remember how I did it.
In the meantime, if the webcam has a built in mic, it'll be /dev/dsp1, and safe to use. If it does not, do not specify an audio device, nor set immediatemode.
 
Back
Top