Streaming webcam video with the gstreamer-imx

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

Streaming webcam video with the gstreamer-imx

Jump to solution
4,404 Views
wjmazepas
Contributor II

Hello everyone
I have a iMX6Dual and i facing the same problem constantly with streaming video with the GStreamer.
Using this on console: gst-launch-1.0 imxv4l2videosrc device=/dev/video2 ! video/x-raw,width=640,height=360 ! imxvpuenc_h264 bitrate=10000 ! h264parse config-interval=1 ! rtph264pay ! udpsink host="myip" port=5000

And it shows

Setting pipeline to PAUSED ...
[INFO] Product Info: i.MX6Q/D/S
ERROR: Pipeline doesn't want to pause.
Setting pipeline to NULL
Freeing pipeline ...

And when i replace imxv4l2videosrc to v4l2src it gives a warning saying that "VPU iram is less than needed, some parts don't use iram" and only stream one frame then stop
I even used gst-inspect-1.0 to verify if all the ima packages were installed, and they all were checked for working.

Anyone can give me a light?

1 Solution
2,055 Views
Yuri
NXP Employee
NXP Employee

  Hello,

  Please look at my comments below.

1.

   imxv4l2videosrc element relates to MIPI or CSI cameras, 

v4l2src should be used with USB cam.

2.

  Basically, FSL Linux BSP uses the IRAM.  Please refer to

[WARN] VPU iram is less than needed, some parts don't use iram

3.

  Please check what output formats are supported by Your cam, using

“gst-inspect”. Perhaps it makes sense to use data transformation.

You may try to check pipeline functionality with the simplest example

$ gst-launch v4l2src ! decodebin2 ! mfw_v4lsink

In Your case “mfw_v4lsink” may be slightly different.


Have a great day,
Yuri

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

View solution in original post

2 Replies
2,055 Views
wjmazepas
Contributor II

Thanks Yuri. Now the GStreamer is working really good. Instead of the h264 encoder i'm using the motion jpeg. And using the v4l2src as well,

Anyway, thank you again mate.

0 Kudos
2,056 Views
Yuri
NXP Employee
NXP Employee

  Hello,

  Please look at my comments below.

1.

   imxv4l2videosrc element relates to MIPI or CSI cameras, 

v4l2src should be used with USB cam.

2.

  Basically, FSL Linux BSP uses the IRAM.  Please refer to

[WARN] VPU iram is less than needed, some parts don't use iram

3.

  Please check what output formats are supported by Your cam, using

“gst-inspect”. Perhaps it makes sense to use data transformation.

You may try to check pipeline functionality with the simplest example

$ gst-launch v4l2src ! decodebin2 ! mfw_v4lsink

In Your case “mfw_v4lsink” may be slightly different.


Have a great day,
Yuri

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