Webcam: "protocol" and "memory allocate" errors

Ask questions about Arch Linux ARM. Please search before making a new topic.

Webcam: "protocol" and "memory allocate" errors

Postby Stempit » Wed Jul 18, 2012 7:01 am

Sorry for my english :(

I want use Raspberry Pi with my webcam, but confronted with errors.

Camshot says "streaming_on (VIDIOC_STREAMON): Protocol error"
Some apps (if i use LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so") says "libv4l2: error turning on stream: Protocol error"

Motion in setup mode says:

$this->bbcode_second_pass_code('', '[1] Retrying until successful connection with camera
[1] cap.driver: "uvcvideo"
[1] cap.card: "iLook 1321 V2"
[1] cap.bus_info: "usb-bcm2708_usb-1.2"
[1] cap.capabilities=0x04000001
[1] - VIDEO_CAPTURE
[1] - STREAMING
[1] Error selecting input 0 VIDIOC_S_INPUT:
[1] ioctl (VIDIOCGCAP):
[1] Raw changes: 0 - changes after 'EedDl': 0 - labels: 0 - noise level: 11
')

ffmpeg says:

$this->bbcode_second_pass_code('', 'libv4l2: error allocating conversion buffer
[video4linux2,v4l2 @ 0x12fc440] mmap: Cannot allocate memory
/dev/video0: Cannot allocate memory')

ffmpeg from sources also dont want work.


Webcam: Genius iLook 1321 V2. Driver - uvcvideo, automatically loaded.

I try with different webcam (Creative Chat IM), but faced with the same error.

Once I was able to get video from webcam. I use ffmpeg-legacy. But there was a low FPS and resolution, setting ignored.

$this->bbcode_second_pass_code('', '[stempit@pi ~]$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 0458:7061 KYE Systems Corp. (Mouse Systems)')

Dmesg:
$this->bbcode_second_pass_code('', 'usb 1-1.2: New USB device found, idVendor=0458, idProduct=7061
usb 1-1.2: New USB device strings: Mfr=16, Product=96, SerialNumber=0
usb 1-1.2: Product: iLook 1321 V2
usb 1-1.2: Manufacturer: iLook 1321 V2
')

$this->bbcode_second_pass_code('', '[stempit@pi ~]$ lsmod
Module Size Used by
ipv6 221708 10
evdev 6820 0
spidev 3868 0
snd_usb_audio 67920 0
snd_usbmidi_lib 12920 1 snd_usb_audio
snd_hwdep 3976 1 snd_usb_audio
snd_rawmidi 13964 1 snd_usbmidi_lib
uvcvideo 54124 0
snd_seq_device 3596 1 snd_rawmidi
snd_pcm 51232 1 snd_usb_audio
[b]videodev 74268 1 uvcvideo[/b]
snd_page_alloc 2612 1 snd_pcm
snd_timer 14528 1 snd_pcm
[b]media 7048 2 videodev,uvcvideo[/b]
snd 32336 7 snd_timer,snd_pcm,snd_seq_device,snd_rawmidi,snd_hwdep,snd_usbmidi_lib,snd_usb_audio
soundcore 3984 1 snd
i2c_bcm2708 2688 0
spi_bcm2708 3636 0')


OS: Archlinux ARM with with the latest updates. I unsuccessfully tried on new clean Archlinux (version 6.13.2012).


Maybe someone can help or suggest something?
Stempit
 
Posts: 3
Joined: Wed Jul 18, 2012 6:38 am

Re: Webcam: "protocol" and "memory allocate" errors

Postby Stempit » Wed Jul 18, 2012 12:02 pm

If i try to use ffmpeg-legacy, i see
$this->bbcode_second_pass_code('', '
[video4linux2 @ 0xd70b10]The V4L2 driver set input_id: 0, input: Camera 1
[video4linux2 @ 0xd70b10]ioctl(VIDIOC_STREAMON): Protocol error
/dev/video0: I/O error occurred
Usually that means that input file is truncated and/or corrupted.')
Stempit
 
Posts: 3
Joined: Wed Jul 18, 2012 6:38 am

Re: Webcam: "protocol" and "memory allocate" errors

Postby xenoxaos » Wed Jul 18, 2012 12:54 pm

Are you using your webcam through a POWERED USB hub? The USB port on the RPi cannot put out more than 110mA iirc. Most webcams require more than that.
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Webcam: "protocol" and "memory allocate" errors

Postby Stempit » Wed Jul 18, 2012 1:11 pm

Damn! I had not thought of it! :)

I don't use USB Hub. Webcam connected to RPi directly.

Thank you! I'll try to use powered hub.
Stempit
 
Posts: 3
Joined: Wed Jul 18, 2012 6:38 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 2 guests