Community
cancel
Showing results for 
Search instead for 
Did you mean: 
BSath1
Novice
2,258 Views

Interfacing a USB webcam that supports YUYV format only

Hi friends, I am using Galile Gen2 board and my requirement is to stream a video from a usb webcam attached to the galileo to a raspberrypi that is connected in a wifi network. My webcam supports only YUYV format and no mjpeg format. Kindly help me with a procedure to implement this.

12 Replies
idata
Community Manager
189 Views

Hello bala002,

 

 

The first thing you should do is to check whether or not the camera you are using is supported by the UVC driver. You can check http://www.ideasonboard.org/uvc/ in order to see if it is in fact supported. In case your camera is not supported by the driver you will have to add its driver to Edison's image using the latest BSP. You can find more information about how to do this in http://www.intel.com/content/www/us/en/support/boards-and-kits/000005616.html and http://www.yoctoproject.org/docs/1.7.2/mega-manual/mega-manual.html.

 

 

You can use gstreamer to capture YUV format (YUYV is a format of YUV as you can see in https://linuxtv.org/downloads/v4l-dvb-apis/V4L2-PIX-FMT-YUYV.html) you could check the gstreamer cheatsheet form more info and the following documents to learn more about how to use it:

 

 

http://wiki.oz9aec.net/index.php/Gstreamer_cheat_sheet

 

 

http://gstreamer-devel.966125.n4.nabble.com/how-to-use-gst-launch-for-playing-yuv-video-files-withou...

 

https://ao2.it/en/blog/2012/01/23/generating-yuv-test-samples-gstreamer

 

 

Peter.
BSath1
Novice
189 Views

Thank you very much peter.I shall try them and post the results. I appreciate your support.

idata
Community Manager
189 Views

Hi bala002,

 

 

Have you been able to try it? If so, how did it go?

 

 

Peter.
BSath1
Novice
189 Views

Hi peter

I tried with Gstream but it says that v4l2src is not found. I dont know how to pipeline the webcam to gstream.

Regards

Balaji

idata
Community Manager
189 Views

Hi bala002,

 

 

Could you please post a screenshot of the issue? It would be of much help.

 

 

Peter.
BSath1
Novice
189 Views

Hi peter here is the screen shot. I tried to set the source as the webcam in my galileo, but it says that no element 'v4l2src'. The same command is working fine in ubuntu(in my PC). Please help me with this issue buddy. I have also tried to inspect what are the possible elements available in gstreamer and it does not list v4l2src.

idata
Community Manager
189 Views

According to the research I made, the option "v4l2src" should be included in plugin gstreamer-plugins-good. Could you verify if you have installed this package?

 

You can find out if it is present in your board with the command opkg list-installed | grep gstreamer.

 

 

I'll be waiting for your response.

 

-Peter.
BSath1
Novice
189 Views

Hi peter unfortunately I am not able to find the package gstreamer-plugins-good for yocto linux. Could you please list the source from where i can opkg install the gstreamer-plugins.

Regards

Balaji

idata
Community Manager
189 Views

You can download it from AlexT's repo. In case you haven't set it up you can find the instructions in http://alextgalileo.altervista.org/edison-package-repo-configuration-instructions.html.

 

 

After you have set it up you can run the following command:

 

 

opkg install gstreamer1.0-plugins-good-video4linux2 gstreamer1.0-plugins-good-video4linux2-dev

 

 

This will install not only this packages but their dependencies. After that you should be able to run the command with the pipeline "v4l2src".

 

 

Let me know if it works, I'll be happy to help you if otherwise.

 

-Peter.
BSath1
Novice
189 Views

Hi peter there is no such package in the repo.

Not only in the link which I have posted but generally in the whole repo there is no such package.

http://repo.opkg.net/galileo/repo/i586/ Index of /galileo/repo/i586

Please help me fix this issue.I really appreciate your support but still it is so bad that Intel Galileo is having such poor community support and poor documentation. It would be really helpful if Intel works on this issue.

BSath1
Novice
189 Views

And also I am using an Intel Galileo not Edison.

idata
Community Manager
189 Views

Hi bala002,

 

 

You are right, I apologize for my confusion. In that case, the packages found on the repo are not compatible with Galileo's architecture which means that the plugins will have to be compiled and added by building the image.

 

In case you don't know how to add packages and build the image, I'd suggest you to read the building guide found in the BSP 1.2.1.1 ( https://downloadcenter.intel.com/download/23197/Intel-Quark-SoC-X1000-Board-Support-Package-BSP-) and Yocto's Mega Manual ( http://www.yoctoproject.org/docs/1.7.2/mega-manual/mega-manual.html). Both of those documents contain a lot of information that can help you in this project.

 

 

Once again, I apologize for the misunderstanding. I hope this information helps you.

 

-Peter.
Reply