Hello !!
I am trying to do realtime video streaming from jetson nano. For streaming, I used this.
~/gst-rtsp-server-1.14.1/examples$ ./test-launch "( nvcamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1, format=I420 ! nvvidconv flip-method=4 ! video/x-raw, width=720, height=480, framerate=30/1,
format=I420 ! timeoverlay ! omxh265enc ! rtph265pay name=pay0 pt=96 )"
stream ready at rtsp://127.0.0.1:8554/test
For Playing, I used this.
gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! 'application/x-rtp, media=(string)video' ! decodebin ! videoconvert ! ximagesink
And then I got the following error
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:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
Additional debug info:
gstrtspsrc.c(5917): gst_rtsp_src_receive_response (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Could not receive message. (Timeout while waiting for server response)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
How can I solve that error?
Thanks.
DaneLLL
November 15, 2019, 7:37am
#2
Hi,
nvcamerasrc is deprecated. You shall use nvarguscamerasrc.
<b>nvarguscamerasrc</b> sensor-id=0 ! video/x-raw(memory:NVMM), width=1920, height=1080, framerate=30/1, format=<b>NV12</b>! nvvidconv flip-method=4 ! video/x-raw, width=720, height=480, framerate=30/1,
format=I420 ! timeoverlay ! omxh265enc ! rtph265pay name=pay0 pt=96
Hello Thank you for your reply.
I changed as you mentioned and I got new error in playing side.
gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! 'application/x-rtp, media=(string)video' ! decodebin ! videoconvert ! ximagesink
(gst-plugin-scanner:13021): GLib-GObject-WARNING **: 17:23:45.416: cannot register existing type 'GstInterpolationMethod'
(gst-plugin-scanner:13021): GLib-GObject-CRITICAL **: 17:23:45.416: g_param_spec_enum: assertion 'G_TYPE_IS_ENUM (enum_type)' failed
(gst-plugin-scanner:13021): GLib-GObject-CRITICAL **: 17:23:45.416: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed
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:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not get/set settings from/on resource.
Additional debug info:
gstrtspsrc.c(6999): gst_rtspsrc_setup_streams_start (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
SDP contains no streams
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
How can I solve it?
Thanks.
DaneLLL
November 22, 2019, 5:54am
#4
Hi,
Do you run both server and client on Jetson Nano? If your client is on another PC, you should replace 127.0.0.1 with IP of server.
I run both on same jetson nano.
DaneLLL
November 28, 2019, 9:04am
#6
Hi,
PLease run either
$ gst-launch-1.0 uridecodebin uri=rtsp://127.0.0.1:8554/test ! nvoverlaysink
or
$ gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! rtph265depay ! h265parse ! nvv4l2decoder ! nvoverlaysink
We have verified both pipelines.