basic gstreamer question on imx8mmevk

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

basic gstreamer question on imx8mmevk

跳至解决方案
1,667 次查看
jefflfree
Contributor III

I want to view a web-camera stream from the imx8mmevk over the wifi to my windows10 laptop.

Using image from L4.14.98_2.0.0_ga_images_MX8MMEVK:


# imx8mmevk with ip addr: 192.168.1.189
gst-launch-1.0 -v v4l2src device=/dev/video0 ! vpuenc_h264 ! rtph264pay ! udpsink host=192.168.1.160 port=5004 &

# Windows10 PC with ip addr: 192.168.1.160
gst-launch-1.0 -v udpsrc port=5004 ! rtph264depay ! decodebin ! videoconvert ! autovideosink

This does not show the video from the camera

I then tried debugging on the imx8mmevk with this command and it also does show the video from camera

gst-launch-1.0 v4l2src device=/dev/video0 ! vpuenc_h264 ! rtph264pay ! rtph264depay ! vpudec ! autovideosink

Any ideas how to get this to work?

标签 (1)
0 项奖励
回复
1 解答
1,562 次查看
jefflfree
Contributor III

I reran the imx8mmevk-only command to debug rtp today and it works:

gst-launch-1.0 v4l2src device=/dev/video0 ! vpuenc_h264 ! rtph264pay ! rtph264depay ! vpudec ! autovideosink

I then worked on the gstreamer command on windows10 laptop and got it to work after adding a queue and a caps

gst-launch-1.0 -v udpsrc port=5004 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264" ! queue ! rtph264depay ! decodebin ! videoconvert ! autovideosink

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,563 次查看
jefflfree
Contributor III

I reran the imx8mmevk-only command to debug rtp today and it works:

gst-launch-1.0 v4l2src device=/dev/video0 ! vpuenc_h264 ! rtph264pay ! rtph264depay ! vpudec ! autovideosink

I then worked on the gstreamer command on windows10 laptop and got it to work after adding a queue and a caps

gst-launch-1.0 -v udpsrc port=5004 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264" ! queue ! rtph264depay ! decodebin ! videoconvert ! autovideosink

0 项奖励
回复