Continuing the discussion from 64bit raspi CSI/USBcam live stream Jetson-inference compatible: Unfortunately, @DaneLLL , your last suggestion did not work. If you see just above your response I reported no success using VLC to view the test-launch stream. After following your suggestion I got this:
gst-launch-1.0 uridecodebin uri=rtsp://10.242.84.130:8554/test ! fakesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://10.242.84.130:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Could not get/set settings from/on resource.
Additional debug info:
gstrtspsrc.c(7423): gst_rtspsrc_setup_streams_start (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
SDP contains no streams
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
When I try launching from the Jetson with the IP address provided as a response from test-launch (127.0.0.1:8554/test) I get this response:
gst-launch-1.0 uridecodebin rtsp://127.0.0.1:8554/test ! fakesink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
Progress: (open) Opening Stream
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0: No URI specified to play from.
Additional debug info:
gsturidecodebin.c(1377): gen_source_element (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0
Setting pipeline to NULL ...
Freeing pipeline ...
note: looks like the USB cam is using uvcvideo driver on my pi
I am also noticing that my webcam doesn’t seem to be starting up after completing the test-launch command. not sure that the test-launch command is actually doing anything by the looks of it…
Hi,
You may try the exact setup in Jetson Nano FAQ
Q: Is there any example of running RTSP streaming?
To run RTSP server as:
$ ./test-launch "videotestsrc is-live=1 ! nvvidconv ! nvv4l2h264enc ! h264parse ! rtph264pay name=pay0 pt=96"
This setup should work well. Please give it a try.
@DaneLLL this is the same setup that you asked me to try previously, which I have reported as not working. Again, here is the readout of the result of the attempt you describe as a setup that should work well.
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://10.242.84.130:8554/test
Progress: (open) Retrieving server options
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Could not read from resource.
Additional debug info:
gstrtspsrc.c(6323): gst_rtsp_src_receive_response (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Could not receive message. (Timeout while waiting for server response)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
Again, I don’t see a blue led show on my webcam when the stream is started from my raspberry pi. All I see is the readout in the terminal claiming the stream has started, though this print seems to be more of a waypoint than a true indicator of functionality.
I will restate for clarity: the jetson nano tutorial as is throws warning message of erroneous_pipeline for nvoverlaysink. at which point you suggested fakesink which didn’t work though for seemingly for a different reason having gave a different error message.
Hi,
It is uncertain what status of the system is. On default L4T release, the setup should work well. Somehow it looks like the Jetson Nano with IP address 10.242.84.130 cannot be connected. Could you try other port number? If changing port number does not help, it may be better to re-flash the system image. The latest releases are Jetpack 4.6.4 and 5.1.1, You may try either version.
famulus@ubuntu:~$ gst-launch-1.0 uridecodebin uri=rtsp://10.242.84.130:8554/test ! fakesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://10.242.84.130:8554/test
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(7893): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Failed to connect. (Generic error)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
famulus@ubuntu:~$ sudo apt-cache show nvidia-jetpack
Package: nvidia-jetpack
Version: 5.1.1-b56
@DaneLLL As you can see here I am running 5.1.1 and am getting that same response on my side. The readout of the raspi says “stream ready at rtsp://127.0.0.1:8554/test” could that have anything to do with it? Again, no camera led turning on like I would normally see at the start of most streams.
Hi,
Please confirm if IP address of the Xavier NX device is 10.242.84.130 and you run the test-launch command on the Xavier NX device to launch RTSP server.
And please try to ping 10.242.84.130 to confirm the Xavier NX is online in local area network.
@DaneLLL
test-launch is being ran on the pi… Maybe this is our misunderstanding. I would like to use the pi to collect video that I then send to the jetson to run object detection on the stream.
Hi,
Please use gst-launch-1.0 command to make sure the pipeline is correct. This should work on Pi:
gst-launch-1.0 videotestsrc is-live=1 ! x264enc ! h264parse ! rtph264pay name=pay0 pt=96 ! fakesink
If above command works, please try
./test-launch "videotestsrc is-live=1 ! x264enc ! h264parse ! rtph264pay name=pay0 pt=96"
And check if you can read the source on Jetson Nano.
Not sure if there’s hardware encoder on Pi. If yes, you can replace x264enc with hardware encoder.
We don’t have much experience on Pi platform. Would see if other users can also share experience.