How to run rtsp server with imx8mm

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

How to run rtsp server with imx8mm

995 Views
hello122344
Contributor II

Hi,

i was able to run the rtsp server using the below command,

Local Loopback

gst-launch-1.0 -e v4l2src device=/dev/video1 io-mode=2 ! video/x-raw, format=YUY2, width=640, height=480, framerate=30/1 ! vpuenc_h264 ! queue ! h264parse ! rtph264pay name=pay0 pt=96 &

gst-launch-1.0 playbin uri=rtsp://127.0.0.1:22  

But error

root@okmx8mm:~# gst-launch-1.0 playbin uri=rtsp://127.0.0.1:22
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://127.0.0.1:22
Progress: (open) Retrieving server options
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Could not read from resource.
Additional debug info:
../../../git/gst/rtsp/gstrtspsrc.c(5913): gst_rtsp_src_receive_response (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Could not receive message. (Parse error)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

how to solve the problem? thanks.

Regards 

 

 

0 Kudos
Reply
0 Replies