basic gstreamer question on imx8mmevk

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

basic gstreamer question on imx8mmevk

ソリューションへジャンプ
1,670件の閲覧回数
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,565件の閲覧回数
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,566件の閲覧回数
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 件の賞賛
返信