basic gstreamer question on imx8mmevk

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

basic gstreamer question on imx8mmevk

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

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

View solution in original post

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