Home/Support/Support Forum/Usb Camera CC6
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Usb Camera CC6

0 votes
Hi,

I am trying to save a video from my usb camera on my connectcore 6. Is there any tutorial about how to do it? I find some information about camera in the documentation but I think it won't fit for an usb camera.
Can somebody help me please?
Thank you very much :)
asked Jun 30, 2015 in Linux by digiConnectcore6 New to the Community (2 points)

Please log in or register to answer this question.

1 Answer

0 votes
Please look at the following :

https://community.freescale.com/docs/DOC-93688

some more discussions on that here:
https://community.freescale.com/thread/307718

the quote form the first post states:
If you want to use a USB camera (these types of cameras are also called 'Web Cameras') with GStreamer on i.MX6 devices (Linux Kernel version >= 3.035), you need to either load the module dynamically or compile and link statically selecting (Y) the following config on the Kernel configuration

Device Drivers -> Multimedia support -> Video capture adapters -> V4L USB devices -> <*> USB Video Class (UVC)

After the Kernel image has been built, flash it into the target, plug the web cam, then on a (target) terminal run

gst-launch v4l2src ! mfw_v4lsink

You should see what the camera is capturing on the display. In case you need to encode the camera src data, you need to place the encoder into the pipeline

gst-launch v4l2src num-buffers=100 ! queue ! vpuenc codec=0 ! matroskamux ! filesink location=output.mkv sync=false

We are using a certain codec (codec=0 means mpeg4), check options using 'gst-inspect vpuenc'.
answered Jun 30, 2015 by LeonidM Veteran of the Digi Community (3,203 points)
...