Hello Experts,
I have connected the USB webcam into i.Mx6 Apalis board and want to stream in another apalis board and Linux Ubuntu PC via network.
Can you please help me on this ?
Hello Experts,
I have connected the USB webcam into i.Mx6 Apalis board and want to stream in another apalis board and Linux Ubuntu PC via network.
Can you please help me on this ?
Please have a look at the following article on our developer website.
Thanks for the reply.
It didn’t solve the problem, and I can’t see any commands to stream via network (like udp, tcp, rtsp etc.,)
Can you please share me any article to stream the USB webcam in toradex board ?
It should stream like below
toradex <—n/w—> toradex (physical USB webcam connected)
toradex <—n/w—> Ubuntu PC (physical USB webcam connected)
NXP’s i.MX Linux User’s Guide has some examples how to use RTSP and other streaming use cases.
You want to stream the live USB camera feed from iMX6 to PC. Assuming I understood correctly, running the following pipeline on iMX6
gst-launch-1.0 imxv4l2src device=/dev/video3 ! videoconvert ! queue ! vpuenc_h264 ! rtph264pay ! udpsink host=10.18.0.125 port=5004
and by running the following pipeline on PC
gst-launch-1.0 udpsrc port=5004 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, payload=(int)96, encoding-name=(string)H264" ! rtph264depay ! avdec_h264 ! xvimagesink
the USB camera stream can be viewed on PC.
Thanks for the reply. Got the below errors, any hint to fix the issue.
root@apalis-imx6:/# gst-launch-1.0 udpsrc port=5004 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, payload=(int)96, encoding-name=(string)H264" ! rtph264depay ! avdec_h264 ! xvimagesink
WARNING: erroneous pipeline: no element "avdec_h264"
root@apalis-imx6:/#
You can look for the available H264 decoder on your host distribution and accordingly change the pipeline.
Dear Titus ,
Sanchayan pointers are on the exact problem , but if you require any basic
on same do have a look at http://wiki.oz9aec.net/index.php/Gstreamer_cheat_sheet
I have not worked on RTSP but with camera these can help you to start & check if the gst elements are in place
gst-launch-1.0 -v v4l2src ! video/x-raw,width=1280,height=720,framerate=30/1 ! videoconvert ! xvimagesink
gst-launch-1.0 -v v4l2src ! video/x-raw,width=1280,height=720,framerate=30/1 ! x264enc ! avimux ! filesink location=test.avi
Again , this is just in case you are starting on these stuff.