i.mx6 webcam (logitech) streaming to host pc over lan

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx6 webcam (logitech) streaming to host pc over lan

1,303 Views
kamlendrachandr
Contributor I

Hi,

I am using i.MX6 SABRE BOARD to capture video through webcam (usb logitech webcam) and stream it to host PC over LAN.

I am using  fsl-image-gui-x11-imx6qdlsolo.sdcard image to boot the i.mx6 sabre board.

I am running the following command

gst-launch imxv4l2src device=/dev/video0 ! tcpserversink host=192.168.1.2 port=5000

I get following Error:

MFW_GST_V4LSRC_PLUGIN 4.0.3 build on Mar 20 2015 22:43:03.ERROR: v4l2 capture: slave not found!

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
Freeing pipeline ...

I am very new to this please give me some inputs

whether same image is going to work or I need to compile different one.

Thanks,

Kamlendra Chandra

Central Research Laboratory, BEL

0 Kudos
2 Replies

831 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kamlendra

please try steps described in sect.7.3.10 Web camera attached Linux Guide

and software on

http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i....

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

831 Views
kamlendrachandr
Contributor I

Hi igor,

Thanks for the reply

I followed the document

7.5.2 Web camera
The following command line is an example of how to record and transfer web camera input.
$gst-launch-1.0 imxv4l2src device=/dev/video1 ! vpuenc ! rtph264pay ! udpsink host=$HOST_IP
HOST_IP is the IP/multicast group to send the packets to.
This command line is an example of how to receive and display web camera input.
$GSTL udpsrc ! application/x-rtp ! rtph264depay ! vpudec ! imxv4l2sink

I get the following error:

gst-launch-1.0 imxv4l2src device=/dev/video1 ! vpuenc ! rtp264pay ! udpsink host=192.168.1.3
ERROR: v4l2 capture: slave not found!
ERROR: v4l2 capture: slave not found!
Can't get caps from capture device, use the default setting.
Perhaps haven't capture device.
====== IMXV4L2SRC: 4.0.3 build on Mar 20 2015 23:20:13. ======
Setting pipeline to PAUSED ...
[INFO]  Product Info: i.MX6Q/D/S
====== VPUENC: 4.0.3 build on Mar 20 2015 23:20:39. ======
        wrapper: ERROR: v4l2 capture: slave not found!
1.0.58 (VPUWRAPPER_ARM_LINUX Build on Mar 20 2015 22:25:11)
        vpulib: 5.4.28
        firmware: 3.1.1.46063
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL ...
freeing pipeline

another command i tried:

gst-launch-1.0 autovideosrc device=/dev/video1 ! udpsinkhost=192.168.1.3

Reason: Error sending message: Message too long
WARNING: from element /GstPipeline:pipeline0/GstUDPSink:udpsink0: Attempting to send a UDP packet larger than maximum size (115200 > 65507)
Additional debug info:
/var/lib/jenkins/workspace/dizzy-3.14-X-1.0.0_X11_release/temp_build_dir/build_all/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/gstreamer1.0-plugins-good/1.4.1-r0/gst-plugins-good-1.4.1/gst/udp/gstmultiudpsink.c(598): gst_multiudpsink_render (): /GstPipeline:pipeline0/GstUDPSink:udpsink0:

followed this url also:

Streaming USB Webcam over Network 

didnt work for me

Consider:

1. I am using default SDCARD image to boot i.mx6

2. Have not done any kernel configuration

3. I am using USB logitech webcam

ls /dev/video*
/dev/video0, /dev/video16 ,/dev/video18, /dev/video20
/dev/video1, /dev/video17, /dev/video19

which one is my camera usb device ??

In my UBUNTU PC driver used is uvcvideo  and in my i.mx6 board

ls -ld /sys/class/video4linux/video0/device/driver
lrwxrwxrwx 1 root root 0 Mar 20 16:09 /sys/class/video4linux/video0/device/driver -> ../.././bus/platform/drivers/mxc_v4l2_capture

So i have proper driver for my camera or not.

I am very new to this, Please give inputs and exact cammand for sender and receiver. Also If i have followed something wrong.

Thanks,

Kamlendra

0 Kudos