This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Build and Install GStreamer RTSP

Hello. I am sorry for English. Faced a problem of creation of the RTSP server. Used the instruction - http://processors.wiki.ti.com/index.php/DVSDK_4.x_FAQ. Whether I as a result shall see a plugin of rtsp of the server in gst-inspect? In case of start ./test-launch --gst-debug=2 "( videotestsrc ! video/x-raw-yuv, width=640, height=480 ! TIVidenc1 codecName=h264enc engineName=codecServer ! rtph264pay name=pay0 pt=96 )". in case of connection of VLC to the server I receive an error: Segmentation fault.In what there can be a business? Thanks in advance.

  • Hello,

    I will check this issue.

    Could you post the full debug log?

    Best Regards,

    Margarita

  • Hello. DEBUG LOG is absent. In total that reports - segmentation fault. I will a little explain a situation: I try to launch rtsp on IGEP com module board. Unfortunately in case of connection of VLC on Windows there is the above error. At me suspicion that is a problem is connected to memory distribution. If interestingly I was interested in this question at IGEP forum: http://forum.isee.biz/viewtopic.php?f=68&t=7250. Also at the same time I launched torpedo board from logicpd. Here that turned out: on torpedo: ./test-launch " (videotestsrc! video/x-raw-yuv, width=320, height=240! TIVidenc1 codecName=h264enc engineName=codecServer! rtph264pay name=pay0 pt=96)". Gives out the following error: ./test-launch: symbol lookup error: /usr/lib/libgstrtspserver-0.10.so.0: undefined symbol: gst_rtsp_lower_trans_get_type. How you think that it can be? Thanks.

  • Hello,

    What is the software release, that you are using here?

    Best Regards,

    Margarita

  • Thanks for a prompt reply! the file system is constructed by means of LOGICPD_linux  BSP_2.2-2, is compiled by rtsp-server by means of ti-dvsdk_dm3730-evm_4_02_00_06, the rtsp-server 0.10.7 version.

  • Hi. At present time situation such: gst-rtsp-0.10.7 gives out an error. I think it is connected to the outdated gstreamer version on a direct system (0.28). Now I work with gst-rtsp-0.10.5. This version earned, but with some errors. In case of start all normal VLC In case of connection through time shows video of 1-2 seconds. Line of start: ./test-launch - gst-debug-level=2" (v4l2src device =/dev/video9 queue-size=16 always-copy=TRUE! ffmpegcolorspace! video/x-raw-yuv, width=320, height=240, format = UYVY (fourcc)! TIVidenc1 codecName=h264enc engineName=codecServer contiguousInputFrame=FALSE genTimeStamps=FALSE! rtph264pay pt=96 name=pay0)". Response:

    ** Message: listening on port 8554
    ** Message: added new client 0x12ec0 ip 192.168.1.50:13506
    ** Message: attaching to context 0x13200
    RTSP request message 0x8e9c8
     request line:
       method: 'OPTIONS'
       uri:    'rtsp://192.168.1.178:8554/test'
       version: '1.0'
     headers:
       key: 'CSeq', value: '2'
       key: 'User-Agent', value: 'LibVLC/2.0.5 (LIVE555 Streaming Media v2012.09.13)'
     body:
    ** Message: client 0x12ec0: received a request
    RTSP response message 0xbeb0aa38
     status line:
       code:   '200'
       reason: 'OK'
       version: '1.0'
     headers:
       key: 'CSeq', value: '2'
       key: 'Public', value: 'OPTIONS, DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN'
       key: 'Server', value: 'GStreamer RTSP server'
     body: length 0
    RTSP request message 0x8e9c8
     request line:
       method: 'DESCRIBE'
       uri:    'rtsp://192.168.1.178:8554/test'
       version: '1.0'
     headers:
       key: 'CSeq', value: '3'
       key: 'User-Agent', value: 'LibVLC/2.0.5 (LIVE555 Streaming Media v2012.09.13)'
       key: 'Accept', value: 'application/sdp'
     body:
    ** Message: client 0x12ec0: received a request
    ** Message: found media 0x4bd20 for url abspath /test
    ** Message: found stream 0 with payloader 0xaf090
    ** Message: constructed media 0xb9010 for url /test
    ** Message: preparing media 0xb9010
    ** Message: enter mainloop

    (test-launch:1890): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_bin_add: assertion `GST_IS_ELEMENT (element)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_element_get_static_pad: assertion `GST_IS_ELEMENT (element)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_pad_link: assertion `GST_IS_PAD (srcpad)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_element_get_request_pad: assertion `GST_IS_ELEMENT (element)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_pad_link: assertion `GST_IS_PAD (sinkpad)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_element_get_request_pad: assertion `GST_IS_ELEMENT (element)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_pad_link: assertion `GST_IS_PAD (sinkpad)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed

    (test-launch:1890): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_bin_add: assertion `GST_IS_ELEMENT (element)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_element_get_static_pad: assertion `GST_IS_ELEMENT (element)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_pad_link: assertion `GST_IS_PAD (srcpad)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_element_get_request_pad: assertion `GST_IS_ELEMENT (element)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_pad_link: assertion `GST_IS_PAD (sinkpad)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_element_get_request_pad: assertion `GST_IS_ELEMENT (element)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_pad_link: assertion `GST_IS_PAD (sinkpad)' failed

    (test-launch:1890): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed
    ** Message: live media 0xb9010
    ** Message: 0xb9010: got message type new-clock
    0:00:52.045440673  1890    0x11008 WARN                     bin gstbin.c:2312:gst_bin_do_latency_func:<media-pipeline> failed to query latency
    0:00:52.171905517  1890    0xe3798 WARN           basetransform gstbasetransform.c:1047:gst_base_transform_acceptcaps:<capsfilter0> (null)
    ** Message: stream 0xbcac0 received caps 0xe85c0, application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)"Z0KAFItoFB8Q\,aM4BqHcg", ssrc=(guint)2389142098, payload=(int)96, clock-base=(guint)3777000448, seqnum-base=(guint)20348
    ** Message: 0xb9010: got message type async-done
    ** Message: object 0xb9010 is prerolled
    RTSP response message 0xbeb0a9e4
     status line:
       code:   '200'
       reason: 'OK'
       version: '1.0'
     headers:
       key: 'CSeq', value: '3'
       key: 'Content-Type', value: 'application/sdp'
       key: 'Content-Base', value: 'rtsp://192.168.1.178:8554/test/'
       key: 'Server', value: 'GStreamer RTSP server'
     body: length 305
    00000000 (0xeca78): 76 3d 30 0d 0a 6f 3d 2d 20 31 31 38 38 33 34 30  v=0..o=- 1188340
    00000010 (0xeca88): 36 35 36 31 38 30 38 38 33 20 31 20 49 4e 20 49  656180883 1 IN I
    00000020 (0xeca98): 50 34 20 31 32 37 2e 30 2e 30 2e 31 0d 0a 73 3d  P4 127.0.0.1..s=
    00000030 (0xecaa8): 53 65 73 73 69 6f 6e 20 73 74 72 65 61 6d 65 64  Session streamed
    00000040 (0xecab8): 20 77 69 74 68 20 47 53 74 72 65 61 6d 65 72 0d   with GStreamer.
    00000050 (0xecac8): 0a 69 3d 72 74 73 70 2d 73 65 72 76 65 72 0d 0a  .i=rtsp-server..
    00000060 (0xecad8): 65 3d 4e 4f 4e 45 0d 0a 74 3d 30 20 30 0d 0a 61  e=NONE..t=0 0..a
    00000070 (0xecae8): 3d 74 6f 6f 6c 3a 47 53 74 72 65 61 6d 65 72 0d  =tool:GStreamer.
    00000080 (0xecaf8): 0a 61 3d 74 79 70 65 3a 62 72 6f 61 64 63 61 73  .a=type:broadcas
    00000090 (0xecb08): 74 0d 0a 61 3d 72 61 6e 67 65 3a 6e 70 74 3d 6e  t..a=range:npt=n
    000000a0 (0xecb18): 6f 77 2d 0d 0a 6d 3d 76 69 64 65 6f 20 30 20 52  ow-..m=video 0 R
    000000b0 (0xecb28): 54 50 2f 41 56 50 20 39 36 0d 0a 63 3d 49 4e 20  TP/AVP 96..c=IN
    000000c0 (0xecb38): 49 50 34 20 31 32 37 2e 30 2e 30 2e 31 0d 0a 61  IP4 127.0.0.1..a
    000000d0 (0xecb48): 3d 72 74 70 6d 61 70 3a 39 36 20 48 32 36 34 2f  =rtpmap:96 H264/
    000000e0 (0xecb58): 39 30 30 30 30 0d 0a 61 3d 63 6f 6e 74 72 6f 6c  90000..a=control
    000000f0 (0xecb68): 3a 73 74 72 65 61 6d 3d 30 0d 0a 61 3d 66 6d 74  :stream=0..a=fmt
    00000100 (0xecb78): 70 3a 39 36 20 73 70 72 6f 70 2d 70 61 72 61 6d  p:96 sprop-param
    00000110 (0xecb88): 65 74 65 72 2d 73 65 74 73 3d 5a 30 4b 41 46 49  eter-sets=Z0KAFI
    00000120 (0xecb98): 74 6f 46 42 38 51 2c 61 4d 34 42 71 48 63 67 0d  toFB8Q,aM4BqHcg.
    00000130 (0xecba8): 0a                                               .
    RTSP request message 0x8e9c8
     request line:
       method: 'SETUP'
       uri:    'rtsp://192.168.1.178:8554/test/stream=0'
       version: '1.0'
     headers:
       key: 'CSeq', value: '4'
       key: 'User-Agent', value: 'LibVLC/2.0.5 (LIVE555 Streaming Media v2012.09.13)'
       key: 'Transport', value: 'RTP/AVP;unicast;client_port=52142-52143'
     body:
    ** Message: client 0x12ec0: received a request
    ** Message: reusing cached media 0xb9010
    ** Message: manage new media 0xb9010 in session 0xf0ba8
    RTSP response message 0xbeb0a9c8
     status line:
       code:   '200'
       reason: 'OK'
       version: '1.0'
     headers:
       key: 'CSeq', value: '4'
       key: 'Transport', value: 'RTP/AVP;unicast;client_port=52142-52143;server_port=50286-50287;mode="PLAY"'
       key: 'Server', value: 'GStreamer RTSP server'
       key: 'Session', value: 'mtjparylqrjcbwvd'
     body: length 0
    0:00:52.489593505  1890    0xb3c08 WARN                 basesrc gstbasesrc.c:2507:gst_base_src_loop:<udpsrc0> error: Internal data flow error.
    0:00:52.489929198  1890    0xb3c08 WARN                 basesrc gstbasesrc.c:2507:gst_base_src_loop:<udpsrc0> error: streaming task paused, reason not-linked (-1)

    ** (test-launch:1890): WARNING **: 0xb9010: got error Internal data flow error. (gstbasesrc.c(2507): gst_base_src_loop (): /GstPipeline:media-pipeline/GstUDPSrc:udpsrc0:
    streaming task paused, reason not-linked (-1))
    RTSP request message 0x8e9c8
     request line:
       method: 'PLAY'
       uri:    'rtsp://192.168.1.178:8554/test/'
       version: '1.0'
     headers:
       key: 'CSeq', value: '5'
       key: 'User-Agent', value: 'LibVLC/2.0.5 (LIVE555 Streaming Media v2012.09.13)'
       key: 'Session', value: 'mtjparylqrjcbwvd'
       key: 'Range', value: 'npt=0.000-'
     body:
    ** Message: client 0x12ec0: received a request
    ** Message: watching session 0x16568
    ** Message: seeking to 0:00:00.000000000 - 99:99:99.999999999
    ** Message: done seeking 0
    ** Message: prerolled again
    RTSP response message 0xbeb0a9ac
     status line:
       code:   '200'
       reason: 'OK'
       version: '1.0'
     headers:
       key: 'CSeq', value: '5'
       key: 'RTP-Info', value: 'url=rtsp://192.168.1.178:8554/test/stream=0;seq=20375;rtptime=3777034282'
       key: 'Range', value: 'npt=now-'
       key: 'Server', value: 'GStreamer RTSP server'
       key: 'Session', value: 'mtjparylqrjcbwvd'
     body: length 0
    ** Message: going to state PLAYING media 0xb9010
    ** Message: adding 192.168.1.50:52142-52143
    ** Message: active 1 media 0xb9010
    ** Message: state PLAYING media 0xb9010
    0:00:55.479675292  1890    0xb40f0 WARN                 basesrc gstbasesrc.c:2507:gst_base_src_loop:<udpsrc1> error: Internal data flow error.
    0:00:55.480682372  1890    0xb40f0 WARN                 basesrc gstbasesrc.c:2507:gst_base_src_loop:<udpsrc1> error: streaming task paused, reason not-linked (-1)

    ** (test-launch:1890): WARNING **: 0xb9010: got error Internal data flow error. (gstbasesrc.c(2507): gst_base_src_loop (): /GstPipeline:media-pipeline/GstUDPSrc:udpsrc1:
    streaming task paused, reason not-linked (-1))
    RTSP request message 0x8e9c8
     request line:
       method: 'TEARDOWN'
       uri:    'rtsp://192.168.1.178:8554/test/'
       version: '1.0'
     headers:
       key: 'CSeq', value: '6'
       key: 'User-Agent', value: 'LibVLC/2.0.5 (LIVE555 Streaming Media v2012.09.13)'
       key: 'Session', value: 'mtjparylqrjcbwvd'
     body:
    ** Message: client 0x12ec0: received a request
    ** Message: going to state NULL media 0xb9010
    ** Message: removing 192.168.1.50:52142-52143
    ** Message: active 0 media 0xb9010
    ** Message: unprepare media 0xb9010
    ** Message: stream 0xbcac0 received caps (nil), NULL
    ** Message: free session media 0xf0ba8
    ** Message: going to state NULL media 0xb9010
    ** Message: active 0 media 0xb9010
    ** Message: free session stream 0xf1368
    RTSP response message 0xbeb0a974
     status line:
       code:   '200'
       reason: 'OK'
       version: '1.0'
     headers:
       key: 'CSeq', value: '6'
       key: 'Server', value: 'GStreamer RTSP server'
       key: 'Session', value: 'mtjparylqrjcbwvd'
     body: length 0
    ** Message: finalize session 0x16568
    ** Message: client 0x12ec0: connection closed
    ** Message: finalize client 0x12ec0
    ** Message: finalize media 0xb9010

    What can it be? Thanks.