question about rtsp connection

About encoding, codec settings, muxers and filter usage
solar.gg
New Cone
New Cone
Posts: 4
Joined: 23 Mar 2007 09:08

question about rtsp connection

Postby solar.gg » 12 Jun 2007 06:54

I've streamed my camera like this:

Code: Select all

vlc.exe -vvv dshow:// :dshow-vdev="Logitech QuickCam Pro 4000" :dshow-adev="" :dshow-size="320x240" :no-sout-audio :sout="#transcode{ttl=5,vcodec=mp4v,fps=30,width=352,height=288,vb=300}:rtp{dst=172.18.5.87,port=1234,sdp=rtsp://172.18.5.87:554/mpeg4/media.3gp}"
and when I play it with vlc player, it worked perfectly.

Code: Select all

vlc rtsp://172.18.5.87:554/mpeg4/media.3gp
Now, I need to use this rtsp resource in a IMS solution. When I use a rtsp resource generated by "AXIS 207 Network Camera", it works correctly, but when I displace the rtsp resource to mine generated by vlc, it failed. Both of the rtsp resource is encoded with mp4v and fps is same too. The TCP messages captured by Ethreal between rtsp server and MRF is shown below:
AXIS 207 Network Camera:

Code: Select all

OPTIONS rtsp://172.18.5.17/mpeg4/media.3gp RTSP/1.0 CSeq: 1 User-Agent: NetCentrex ;-) RTSP/1.0 200 OK CSeq: 1 Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, SET_PARAMETER, TEARDOWN DESCRIBE rtsp://172.18.5.17/mpeg4/media.3gp RTSP/1.0 CSeq: 2 Accept: application/sdp RTSP/1.0 200 OK CSeq: 2 Content-Base: rtsp://172.18.5.17:554/mpeg4/media.3gp/ Content-Type: application/sdp Content-Length: 714 v=0 o=- 1139106720515 1139106720525 IN IP4 172.18.5.17 s=Media Presentation e=NONE c=IN IP4 0.0.0.0 b=AS:300 t=0 0 a=control:* a=range:npt=now- a=mpeg4-iod: "data:application/mpeg4-iod;base64,AoDUAE8BAf8DAQOAbwABQFBkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBUjBCR3dVZkF4Y0F5U1FBWlFRTklCRUVrK0FBQkpQZ0FBU1Q0QVlCQkE9PQQNAQUABAAAAAAAAAAAAAYJAQAAAAAAAAAAAzoAAkA2ZGF0YTphcHBsaWNhdGlvbi9tcGVnNC1iaWZzLWF1O2Jhc2U2NCx3QkFTWVFTSVVFVUZQd0E9BBICDQAAAgAAAAAAAAAABQMAAEAGCQEAAAAAAAAAAA==" a=isma-compliance:1,1.0,1 m=video 0 RTP/AVP 96 b=AS:300 a=framerate:30.0 a=control:trackID=1 a=rtpmap:96 MP4V-ES/90000 a=fmtp:96 profile-level-id=3; config=000001B003000001B5891300000100000001200086C40FA28582120A21 a=mpeg4-esid:201 SETUP rtsp://172.18.5.17/mpeg4/media.3gp/trackID=1 RTSP/1.0 CSeq: 3 Transport: RTP/AVP;unicast;client_port=49050-49051 RTSP/1.0 200 OK CSeq: 3 Session: 0791931761;timeout=600 Transport: RTP/AVP;unicast;client_port=49050-49051;server_port=50030-50031;ssrc=4EF25530;mode="PLAY" PLAY rtsp://172.18.5.17/mpeg4/media.3gp RTSP/1.0 CSeq: 4 Session: 0791931761 Range: npt=0.000- RTSP/1.0 200 OK CSeq: 4 Session: 0791931761 Range: npt=now- RTP-Info: url=trackID=1;seq=15437;rtptime=453516389 TEARDOWN rtsp://172.18.5.17/mpeg4/media.3gp RTSP/1.0 CSeq: 5 Session: 0791931761 RTSP/1.0 200 OK CSeq: 5 Session: 0791931761
vlc

Code: Select all

OPTIONS rtsp://172.18.5.87/mpeg4/media.3gp RTSP/1.0 CSeq: 1 User-Agent: NetCentrex ;-) RTSP/1.0 200 Ok Cseq: 1 Server: VLC Server Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE Content-Length: 0 DESCRIBE rtsp://172.18.5.87/mpeg4/media.3gp RTSP/1.0 CSeq: 2 Accept: application/sdp RTSP/1.0 200 OK Content-type: application/sdp Content-Base: rtsp://172.18.5.87:554/mpeg4/media.3gp Server: vlc 0.9.0-svn Content-Length: 313 Cseq: 2 Cache-Control: no-cache v=0 o=- 3180201633 2 IN IP4 127.0.0.1 s=NONE t=0 0 a=tool:vlc 0.9.0-svn c=IN IP4 172.18.5.87 m=video 1232 RTP/AVP 96 a=rtpmap:96 MP4V-ES/90000 a=fmtp:96 profile-level-id=3; config=000001b001000001b58913000001000000012000c4958800f50b04241463000001b24c61766335312e32352e30; b=AS:300 a=control:/trackID=0
The rtsp communication should be setup between rtsp server and MRF, but in the second condition, after the option "DESCRIPTION", the MRF do not send the requestion "SETUP", instead it, a tcp RST message be sent.
who knows the issue? :?:

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 11 guests