From: Ananthapadmanaban g. <gap...@gm...> - 2014-02-12 11:19:31
|
I have a RTP server in DM3730 board and i can able to access the server video via .sdp file. But i need to have a url like rtp://@192.168.6.1:5000. But this mention url is not working in vlc player. *Successful sdp file information vlc config.sdp is working* |--------------- contents of ||config.sdp file -------- v=0 o=- 1188340656180883 1 IN IP4 192.168.6.1 s=Session streamed by GStreamer i=server.sh t=0 0 a=tool:GStreamer a=type:broadcast m=video 5000 RTP/AVP 96 c=IN IP4 127.0.0.1 a=rtpmap:96 H264/90000 ------------------------------------------------- | *Server Application script* |#!/bin/sh # # A simple RTP server # sends the output of v4l2src as h264 encoded RTP on port 5000, RTCP is sent on # port 5001. The destination is 127.0.0.1. # the video receiver RTCP reports are received on port 5005 # # .-------. .-------. .-------. .----------. .-------. # |v4lssrc| |h264enc| |h264pay| | rtpbin | |udpsink| RTP # | src->sink src->sink src->send_rtp send_rtp->sink | port=5000 # '-------' '-------' '-------' | | '-------' # | | # | | .-------. # | | |udpsink| RTCP # | send_rtcp->sink | port=5001 # .-------. | | '-------' sync=false # RTCP |udpsrc | | | async=false # port=5005 | src->recv_rtcp | # '-------' | | # | | # # ideally we should transport the properties on the RTP udpsink pads to the # receiver in order to transmit the SPS and PPS earlier. # change this to send the RTP data and RTCP to another host DEST=192.168.6.67 # tuning parameters to make the sender send the streams out of sync. Can be used # ot test the client RTCP synchronisation. #VOFFSET=900000000 VOFFSET=0 # H264 encode from the source VELEM="v4l2src device=/dev/video0 queue-size=5 always-copy=false" #VELEM="videotestsrc is-live=1" #VCAPS="video/x-raw-yuv,width=352,height=288,framerate=15/1" VCAPS="video/x-raw-yuv,width=1280,height=720" #VSOURCE="$VELEM ! $VCAPS ! queue ! videorate ! ffmpegcolorspace" VSOURCE="$VELEM ! $VCAPS" #VENC="x264enc byte-stream=true bitrate=30 ! rtph264pay" VENC="dmaiperf print-arm-load=true engine-name=codecServer ! TIPrepEncBuf contiguousInputFrame=true ! queue ! TIVidenc1 codecName=h264enc engineName=c odecServer bitRate=1200000 contiguousInputFrame=true ! rtph264pay" VRTPSINK="udpsink port=5000 host=$DEST ts-offset=$VOFFSET name=vrtpsink" VRTCPSINK="udpsink port=5001 host=$DEST sync=false async=false name=vrtcpsink" VRTCPSRC="udpsrc port=5005 name=vrtpsrc" gst-launch -v gstrtpbin name=rtpbin \ $VSOURCE ! $VENC ! rtpbin.send_rtp_sink_0 \ rtpbin.send_rtp_src_0 ! $VRTPSINK \ rtpbin.send_rtcp_src_0 ! $VRTCPSINK \ $VRTCPSRC ! rtpbin.recv_rtcp_sink_0 | When i tried to get RTSP based link using gst-rtsp-0.10.7, I have some initial transaction seams to start. But failed to stream video data in client vlc,gstreamer application using link as "rtsp://192.168.6.1:8554/test". What may be the issue and how to correct this problem ? |[root@eSOM3730 /root]# ./examples/.libs/test-launch "( v4l2src device=/dev/vide o0 queue-size=5 always-copy=false video/x-raw-yuv,width=1280,height=720 ! dmaipe rf print-arm-load=true engine-name=codecServer ! TIPrepEncBuf contiguousInputFra me=true ! queue ! TIVidenc1 codecName=h264enc engineName=codecServer bitRate=120 0000 contiguousInputFrame=true ! rtph264pay ! name=pay0 pt=96 )" ** Message: listening on port 8554 [ 914.043182] wlan: EVENT: MICRO_AP_STA_ASSOC 00:XX:XX:XX:e8:e5 ** Message: added new client 0x1d920 ip 192.168.6.67:52436 ** Message: attaching to context 0x13200 RTSP request message 0xb4348 request line: method: 'OPTIONS' uri: 'rtsp://192.168.6.1:8554/test' version: '1.0' headers: key: 'CSeq', value: '1' key: 'User-Agent', value: 'RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)' key: 'ClientChallenge', value: '9e26d33f2984236010ef6253fb1887f7' key: 'CompanyID', value: 'KnKV4M4I/B2FjJ1TToLycw==' key: 'GUID', value: '00000000-0000-0000-0000-000000000000' key: 'RegionData', value: '0' key: 'PlayerStarttime', value: '[28/03/2003:22:50:23 00:00]' key: 'ClientID', value: 'Linux_2.4_6.0.9.1235_play32_RN01_EN_586' key: 'Date', value: 'Tue, 11 Feb 2014 12:19:40 GMT' body: ** Message: client 0x1d920: received a request RTSP response message 0xbede58b0 status line: code: '200' reason: 'OK' version: '1.0' headers: key: 'CSeq', value: '1' key: 'Public', value: 'OPTIONS, DESCRIBE, PAUSE, PLAY, SETUP, TEARDOWN' key: 'Server', value: 'GStreamer RTSP server' body: length 0 ** Message: client 0x1d920: sent a message with cseq 1 RTSP request message 0xb4348 request line: method: 'DESCRIBE' uri: 'rtsp://192.168.6.1:8554/test' version: '1.0' headers: key: 'CSeq', value: '2' key: 'Accept', value: 'application/sdp' key: 'Date', value: 'Tue, 11 Feb 2014 12:19:40 GMT' body: ** Message: client 0x1d920: received a request ** Message: found media 0x39640 for url abspath /test (test-launch:1820): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion `gst_uri_is_valid (uri)' failed ** (test-launch:1820): WARNING **: recoverable parsing error: no element "video" ** Message: constructed media 0x3c760 for url /test ** Message: preparing media 0x3c760 ** Message: enter mainloop ** Message: 0x3c760: got message type stream-status ** Message: live media 0x3c760 ** Message: 0x3c760: got message type new-clock ** Message: object 0x3c760 is prerolled RTSP response message 0xbede5894 status line: code: '200' reason: 'OK' version: '1.0' headers: key: 'CSeq', value: '2' key: 'Content-Type', value: 'application/sdp' key: 'Content-Base', value: 'rtsp://192.168.6.1:8554/test/' key: 'Server', value: 'GStreamer RTSP server' body: length 165 00000000 (0xdd9c8): 76 3d 30 0d 0a 6f 3d 2d 20 31 31 38 38 33 34 30 v=0..o=- 1188340 00000010 (0xdd9d8): 36 35 36 31 38 30 38 38 33 20 31 20 49 4e 20 49 656180883 1 IN I ** Message: 0x3c760: got message type stream-status 00000020 (0xdd9e8): 50 34 20 31 32 37 2e 30 2e 30 2e 31 0d 0a 73 3d P4 127.0.0.1..s= 00000030 (0xdd9f8): 53 65 73 73 69 6f 6e 20 73 74 72 65 61 6d 65 64 Session streamed 00000040 (0xdda08): 20 77 69 74 68 20 47 53 74 72 65 61 6d 65 72 0d with GStreamer. 00000050 (0xdda18): 0a 69 3d 72 74 73 70 2d 73 65 72 76 65 72 0d 0a .i=rtsp-server.. 00000060 (0xdda28): 65 3d 4e 4f 4e 45 0d 0a 74 3d 30 20 30 0d 0a 61 e=NONE..t=0 0..a 00000070 (0xdda38): 3d 74 6f 6f 6c 3a 47 53 74 72 65 61 6d 65 72 0d =tool:GStreamer. 00000080 (0xdda48): 0a 61 3d 74 79 70 65 3a 62 72 6f 61 64 63 61 73 .a=type:broadcas 00000090 (0xdda58): 74 0d 0a 61 3d 72 61 6e 67 65 3a 6e 70 74 3d 6e t..a=range:npt=n 000000a0 (0xdda68): 6f 77 2d 0d 0a ow-.. ** Message: client 0x1d920: sent a message with cseq 2 ** Message: client 0x1d920: connection closed ** Message: finalize client 0x1d920 ** Message: finalize media 0x3c760 ** Message: 0x3c760: got message type stream-status ** Message: 0x3c760: got message type stream-status | |