Streaming webcam video with the gstreamer-imx

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Streaming webcam video with the gstreamer-imx

跳至解决方案
4,495 次查看
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 解答
2,146 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

2 回复数
2,146 次查看
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 项奖励
2,147 次查看
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!
-----------------------------------------------------------------------------------------------------------------------