LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 04-22-2009, 08:21 PM   #1
halloworld
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Rep: Reputation: 0
Anyone tried to use uvccapture on embedded???


I've port uvccapture on ARM arch, it can capture jpg where the jpg can not be read, so what is yours camera model??
 
Old 04-23-2009, 04:37 PM   #2
sg83
LQ Newbie
 
Registered: Jun 2008
Location: SF Bay Area
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 1
I saw your earlier post and noticed you were also interested in video capture. In short, no I have not used uvccapture on ARM. I have, however, captured video from a Logitech webcam with an ARM board.

I'm not sure if this will be helpful to you, but if you're interested, I can through the details.

Did you build the drivers for your webcam separately or were they included in the kernel?
 
Old 04-24-2009, 06:20 AM   #3
halloworld
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sg83 View Post
I saw your earlier post and noticed you were also interested in video capture. In short, no I have not used uvccapture on ARM. I have, however, captured video from a Logitech webcam with an ARM board.

I'm not sure if this will be helpful to you, but if you're interested, I can through the details.

Did you build the drivers for your webcam separately or were they included in the kernel?
Thank you for answering my post.
There are 3 webcams on my hand: ZC0305 webcam, SN9C120 and a logitech quick cam messenger. I'm interested in video capture very much, however i couldn't find any software or utilities, tried "servfox or the webcam_sever" but not work at all... I've compiled linux kernel 2.6.28.2 and 2.6.29.1, webcam drivers are included in the kernel.

I'm very interested in your way of video capture, and the model of your logitech webcam.
 
Old 04-24-2009, 05:22 PM   #4
sg83
LQ Newbie
 
Registered: Jun 2008
Location: SF Bay Area
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 1
I used a Logitech QuickCam Communicate MP, found here:

http://www.logitech.com/index.cfm/38/4224&cl=us,en

The webcam I used didn't have support in the kernel so I build the "uvcvideo" drivers separately from source:

http://linux-uvc.berlios.de/

Once the drivers for the webcam were installed, it was listed as "/dev/video0" in my filesystem. Then I was able to use gstreamer to capture video input from the webcam and output it to a file. You can also stream it over a network or to an output screen.

Are you familiar with gstreamer at all? You would have to cross-compile the gstreamer-core, gst-plugins-base, gst-plugins-good packages for your system.

I think the Logitech QuickCam Messenger that you have should work as a "video4linux" source for gstreamer. An extremely simple gstreamer command to write capture to a file would be:

gst-launch -v v4lsrc ! filesink location=/video.out

I think that should get you going in the right direction. Let me know if you have any questions.
 
Old 04-24-2009, 05:24 PM   #5
sg83
LQ Newbie
 
Registered: Jun 2008
Location: SF Bay Area
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 1
BTW, I was using the 2.6.24 kernel so they may have added support for that webcam in the kernel versions that you are using.
 
Old 04-25-2009, 03:26 AM   #6
halloworld
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sg83 View Post
I used a Logitech QuickCam Communicate MP, found here:

http://www.logitech.com/index.cfm/38/4224&cl=us,en

The webcam I used didn't have support in the kernel so I build the "uvcvideo" drivers separately from source:

http://linux-uvc.berlios.de/

Once the drivers for the webcam were installed, it was listed as "/dev/video0" in my filesystem. Then I was able to use gstreamer to capture video input from the webcam and output it to a file. You can also stream it over a network or to an output screen.

Are you familiar with gstreamer at all? You would have to cross-compile the gstreamer-core, gst-plugins-base, gst-plugins-good packages for your system.

I think the Logitech QuickCam Messenger that you have should work as a "video4linux" source for gstreamer. An extremely simple gstreamer command to write capture to a file would be:

gst-launch -v v4lsrc ! filesink location=/video.out

I think that should get you going in the right direction. Let me know if you have any questions.
Thanks, it seems gstreamer is quite complicated, and i found this site http://f170.blogspot.com/2008/12/gstreamer_20.html a chinese website of compiling gstreamer on ARM, i try to follow his steps and everytime i configuring involves more than one path in CFLAGS or LDFLAGS, it always reported an error of unrecognized option of the second path???

On the other hand, i've fixed the uvccapture by using a UVC camera "logitech camera e3500", which is on the list http://www.quickcamteam.net/devices

Last edited by halloworld; 04-25-2009 at 09:14 AM.
 
Old 04-25-2009, 06:17 PM   #7
sg83
LQ Newbie
 
Registered: Jun 2008
Location: SF Bay Area
Distribution: Ubuntu
Posts: 15

Rep: Reputation: 1
If you copy-paste your configure command, I can try to help you out. If you want to pass multiple paths to CFLAGS and LDFLAGS, use quotes. For example:

CFLAGS="-I/usr/include -I/usr/local/include"
LDFLAGS="-L/usr/lib -L/usr/local/lib"

It's not so bad to build but you have to first have the necessary dependencies. Gstreamer requires glib2, libxml2 and libz so you have also have to cross-compile and install those.

I haven't used any other program to capture video so I can't give any other suggestions but Gstreamer worked great for me.
 
Old 04-26-2009, 06:40 AM   #8
halloworld
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sg83 View Post
If you copy-paste your configure command, I can try to help you out. If you want to pass multiple paths to CFLAGS and LDFLAGS, use quotes. For example:

CFLAGS="-I/usr/include -I/usr/local/include"
LDFLAGS="-L/usr/lib -L/usr/local/lib"

It's not so bad to build but you have to first have the necessary dependencies. Gstreamer requires glib2, libxml2 and libz so you have also have to cross-compile and install those.

I haven't used any other program to capture video so I can't give any other suggestions but Gstreamer worked great for me.
Thanks, I've tried "uvc streamer" today, and it works fine and simple, quite small in size, what is the size of gstreamer after complied?
 
Old 10-11-2009, 12:12 PM   #9
brahmanandhaprabhu
LQ Newbie
 
Registered: Oct 2009
Posts: 1

Rep: Reputation: 0
Quote:
Originally Posted by halloworld View Post
I've port uvccapture on ARM arch, it can capture jpg where the jpg can not be read, so what is yours camera model??
hi i am working in OMAP ARM9 board,trying to port the USB webcam(logitech quickcam Messenger) in the board. plz do say me procedure to port in the board.so that i can capture the picture.

Last edited by brahmanandhaprabhu; 10-11-2009 at 12:26 PM.
 
Old 10-11-2009, 09:01 PM   #10
halloworld
LQ Newbie
 
Registered: Apr 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by brahmanandhaprabhu View Post
hi i am working in OMAP ARM9 board,trying to port the USB webcam(logitech quickcam Messenger) in the board. plz do say me procedure to port in the board.so that i can capture the picture.
Actually, i haven't work in porting for months and finally as you read my post in this thread before, i have abandon to use the logitech quickcam messenger, instand i bought another UVC camera which work fines in kernel 2.6.29.1 with UVC camera drivers inside.

I don't know if the latest kernels are well support with the quickcam messenger, or somebody wrote a driver for it because it seems not working when i'm using 2.6.29.1 at that time...maybe my own problm only
 
Old 12-18-2011, 10:45 PM   #11
ranaanmol
LQ Newbie
 
Registered: Sep 2011
Posts: 19

Rep: Reputation: Disabled
I am using cm -t3530 (compulab) omap3530 based arm kit. it works on kernel 2.6.32.

I want to capture video from my logitech quickcam messenger webcamera. my camera is detected by my board when I type lsusb.

mplayer only plays audio on my board.

warm regards.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Xpert in 8-16 bit microcontroller embedded system now inclining toward embedded linux priyadarshan Linux - Embedded & Single-board computer 2 02-12-2009 04:28 AM
LXer: Embedded Linux as Dependable for Developers as RTOSes, says Embedded Market For LXer Syndicated Linux News 0 01-23-2008 11:40 AM
PC-embedded bandrei Linux - Hardware 3 07-19-2006 09:38 AM
embedded C leonidg Programming 1 02-08-2005 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 10:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration