Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.0.106/test1
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(6183): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
nvidia@tegra-ubuntu:~/Projects/gstRTSPServer/videoFileTransmit$ ./gstRTSPServer stream ready at rtsp://127.0.0.1:8554/test1
** (gstRTSPServer:7038): CRITICAL **: could not parse launch syntax (( filesrc location=/home/nvidia/Videos/iptest.mp4 ! omxh264enc ! rtph264pay name=pay0 pt=96)): could not set property "pt" in element "pay0" to "96)"
** (gstRTSPServer:7038): CRITICAL **: could not create element
receiver terminal on Ubuntu14.04
chen@chen-All-Series:~$ GST_DEBUG=2 gst-launch-1.0 rtspsrc location=rtsp://192.168.0.106:8554/test1
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.0.106:8554/test1
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
0:00:00.027851298 3922 0x109da80 WARN rtspsrc gstrtspsrc.c:5104:gst_rtspsrc_send:<rtspsrc0> error: Not Found
0:00:00.027922810 3922 0x109da80 WARN rtspsrc gstrtspsrc.c:6262:gst_rtspsrc_open:<rtspsrc0> can't get sdp
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Resource not found.
0:00:00.027944348 3922 0x109da80 WARN rtspsrc gstrtspsrc.c:4560:gst_rtspsrc_loop:<rtspsrc0> we are not connected
Additional debug info:
gstrtspsrc.c(5104): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Not Found
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Hi,Honey,
I have changed my code as followed you said,but the result appears new error.
chen@chen-All-Series:~$ GST_DEBUG=2 gst-launch-1.0 -v rtspsrc location=rtsp://192.168.0.106/test1 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://192.168.0.106/test1
0:00:00.040312855 3244 0x140ef20 ERROR default gstrtspconnection.c:751:gst_rtsp_connection_connect: failed to connect: Could not connect to 192.168.0.106: Connection refused
0:00:00.040348630 3244 0x140ef20 ERROR rtspsrc gstrtspsrc.c:3716:gst_rtsp_conninfo_connect:<rtspsrc0> Could not connect to server. (Generic error)
0:00:00.040362669 3244 0x140ef20 WARN rtspsrc gstrtspsrc.c:6183:gst_rtspsrc_retrieve_sdp:<rtspsrc0> error: Failed to connect. (Generic error)
0:00:00.040399322 3244 0x140ef20 WARN rtspsrc gstrtspsrc.c:6262:gst_rtspsrc_open:<rtspsrc0> can't get sdp
0:00:00.040417947 3244 0x140ef20 WARN rtspsrc gstrtspsrc.c:4560:gst_rtspsrc_loop:<rtspsrc0> we are not connected
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(6183): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Could you give me some suggestions? Thank you in advance!
Additional note on the “Connection refused”…this probably means that no software is listening at 192.168.0.106 for the protocol used in rtsp. That particular message would not be from a route failing due to a firewall or router issue…whatever your software is that is supposed to listen to that address/port/protocol combination is not running (probably port 80).
Your pipeline in server is wrong, so test-launch (I assume test-video is just renaming test-launch) won’t start.
There may not be meaningful error messages, so first elaborate your pipeline with gst-launch-1.0 using appsink or fakesink, and when it works just remove that sink for test-launch (it will add appsink).
You pipeline is wrong because you have videotestsrc after filesrc. You would have to choose which source you want to use, and for filesrc demux and/or decode/re-encode further depending on what is in this file.
Not sure if x264enc outputs parsed H264. If not, you would add h264parse between h264encoder and rtph264pay. You may also try specifying stream-format=byte-stream into caps.
My advice was weird. rtph264pay option is pt. payload would be used in caps and mostly on receiver side…anyway 96 is the default, and if you’re only streaming one h264 video it should be ok.