Unable to get RSTP streaming working imx8mp

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

Unable to get RSTP streaming working imx8mp

Jump to solution
744 Views
intosite
Contributor II

Using the imx8mp evkit with IMX-OS08A20 accessory card. Bitbake imx-image-full and got the camera working with-in the gopoint demos.

Am trying to stream the camera over rtsp and view the stream from PC VLC over the network.

On the server imx ran:

 

gst-variable-rtsp-server -p 9001 -u "v4l2src device=/dev/video2 ! video/x-raw,width=640,height=480 ! v4l2h264enc ! rtph264pay name=pay0 pt=96"

Shows:
Pipeline set to: ( v4l2src device=/dev/video2 ! video/x-raw,width=640,height=480 ! v4l2h264enc ! rtph264pay name=pay0 pt=96 )...
Stream ready at rtsp://127.0.0.1:9001/stream

 

 

Then I tried to retrieve the stream from another device over the network, it does not work, but on the server side i see a new line everytime i tried to connect from the client

 

====== V4L2ENC: 1.24.7 build on Oct 23 2024 09:43:13. ======

====== V4L2ENC: 1.24.7 build on Oct 23 2024 09:43:13. ======

====== V4L2ENC: 1.24.7 build on Oct 23 2024 09:43:13. ======

 

 

So I tried to load the stream from the imx system itself with:

 

GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:9001/stream ! queue ! rtph264depay ! v4l2h264dec ! autovideosink
and 
GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://192.168.100.219:9001/stream ! queue ! rtph264depay ! v4l2h264dec ! autovideosink

 

I see the same response as above on the server side.

Client side logs :

 

root@imx8mpevk:~# GST_DEBUG=3 gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:9001/stream ! queue ! rtph264depay ! v4l2h264dec ! autovideosink
Setting pipeline to PAUSED ...

====== V4L2DEC: 1.24.7 build on Oct 23 2024 09:43:13. ======
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://127.0.0.1:9001/stream
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
0:00:00.198607035  1940 0xffffa0000d20 WARN                 rtspsrc gstrtspsrc.c:7097:gst_rtspsrc_send:<rtspsrc0> error: Unhandled error
0:00:00.198669410  1940 0xffffa0000d20 WARN                 rtspsrc gstrtspsrc.c:7097:gst_rtspsrc_send:<rtspsrc0> error: Service Unavailable (503)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Unhandled error
Additional debug info:
/usr/src/debug/gstreamer1.0-plugins-good/1.24.7.imx/gst/rtsp/gstrtspsrc.c(7097): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Service Unavailable (503)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
0:00:00.199138163  1940 0xffffa0000d20 WARN                 rtspsrc gstrtspsrc.c:8584:gst_rtspsrc_open:<rtspsrc0> can't get sdp
0:00:00.199200289  1940 0xffffa0000d20 WARN                 rtspsrc gstrtspsrc.c:6515:gst_rtspsrc_loop:<rtspsrc0> we are not connected

 

 

Not sure what is happening and how to proceed. Any advice greatly appreciated.

Labels (1)
0 Kudos
Reply
1 Solution
701 Views
intosite
Contributor II
Managed to fix this, using v4l2src device=/dev/video3 instead.

View solution in original post

0 Kudos
Reply
2 Replies
729 Views
joanxie
NXP TechSupport
NXP TechSupport

what bsp version do you test? let me reproduce this

0 Kudos
Reply
702 Views
intosite
Contributor II
Managed to fix this, using v4l2src device=/dev/video3 instead.
0 Kudos
Reply