BBB Ubuntu Raring: FFMPEG / OpenCV

216 views
Skip to first unread message

crown

unread,
Jun 19, 2013, 12:34:13 AM6/19/13
to beagl...@googlegroups.com
I have a ucv camera connected to the BBB. It's powered through the 5v and the camera light turns on. I can see it fine in the usb. I've tried taking a picture through multiple different avenues and have gotten the following errors. Does anyone have any helpful tips to figuring this out? 

- Python OpenCV:

>>> import cv2
>>> capture = cv2.cv.CaptureFromCAM(0)
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument

- FFMPEG just stalls after the following and doesn't actually record a frame.

ubuntu@arm:~$ ffmpeg -f video4linux2 -i /dev/v4l/by-id/usb-Alcor_Micro__Corp._USB_2.0_PC_Camera-video-index0 -vframes 1 /home/ubuntu/test.jpeg
ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers
  built on Mar 31 2013 01:04:55 with gcc 4.7.2
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.


Note that both methods work on my laptop (mac osx). 


Moon Walker

unread,
Feb 2, 2014, 3:31:58 PM2/2/14
to beagl...@googlegroups.com
Same here.
Did you find any solution?

Attila

Cinjon Resnick

unread,
Feb 2, 2014, 3:45:03 PM2/2/14
to beagl...@googlegroups.com
This was a while ago, but iirc, It happens when there isn't enough current. The solution is to make sure that the BBB was turned on via the barrel power with the camera connected. If you're running the ucv camera off of an auxiliary powered hub, then you don't need to have it connected first, but you do need to have the barrel power plugged into the BBB before turning it on. This is because otherwise the 5v flag is switched to off. 


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/vOCa2A6CD2Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

moonwalker

unread,
Feb 2, 2014, 5:11:30 PM2/2/14
to beagl...@googlegroups.com

Hi,
Thanks.
The webcam works fine with fswebcam. Only ffmpeg hangs...  :-(

Reply all
Reply to author
Forward
0 new messages