basic gstreamer question on imx8mmevk

cancel
Showing results for 
Search instead for 
Did you mean: 

basic gstreamer question on imx8mmevk

Jump to solution
133 Views
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?

Labels (1)
0 Kudos
1 Solution
28 Views
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

View solution in original post

0 Kudos
1 Reply
29 Views
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

View solution in original post

0 Kudos