RtspServer tests not working for me

Topics: Question
Dec 10, 2015 at 6:21 PM
Edited Dec 10, 2015 at 6:52 PM
Hello
Please help me to make working "TestServer" test from unittests assembly.
I have tryed diferent versions, starting from released 111212 till current - 111802 and always have the problem with RFC2435Media.

I run TestServer test with slight modifications to use only RFC2435Media streams and commented all RtspSource streams. Then I try to access streams using VLC player on the same computer with follow urls:
rtsp://localhost/live/PicsTcp
rtsp://localhost/live/Bandit
rtsp://localhost/live/Mirror

and getting nothing in VLC. All firewall, antivirus software are turned off, "media" folder with pictures are on the place. Also I have tried to run tests with Administrator evaluation

Env: Vlc 2.2.1. Windows 10 Pro. Library Version: 111802

Vlc output:
core debug: processing request item: rtsp://localhost/live/PicsTcp, node: Playlist, skip: 0
core debug: resyncing on rtsp://localhost/live/PicsTcp
core debug: rtsp://localhost/live/PicsTcp is at 0
core debug: starting playback of the new playlist item
core debug: resyncing on rtsp://localhost/live/PicsTcp
core debug: rtsp://localhost/live/PicsTcp is at 0
core debug: creating new input thread
core debug: Creating an input for 'rtsp://localhost/live/PicsTcp'
core debug: requesting art for rtsp://localhost/live/PicsTcp
core debug: using timeshift granularity of 50 MiB, in path 'C:\Users\Mikhaylo\AppData\Local\Temp'
core debug: `rtsp://localhost/live/PicsTcp' gives access `rtsp' demux `' path `localhost/live/PicsTcp'
core debug: specified demux `any'
core debug: looking for meta fetcher module matching "any": 1 candidates
core debug: creating demux: access='rtsp' demux='any' location='localhost/live/PicsTcp' file='live\PicsTcp'
core debug: looking for access_demux module matching "rtsp": 12 candidates
live555 debug: version 2014.07.25
lua debug: Trying Lua scripts in C:\Users\Mikhaylo\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
core debug: no meta fetcher modules matched
core debug: searching art for rtsp://localhost/live/PicsTcp
core debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\Mikhaylo\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
qt4 debug: IM: Setting an input
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
lua debug: skipping script (unmatched scope) C:\Program Files (x86)\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
core debug: no art finder modules matched
core debug: art not found for rtsp://localhost/live/PicsTcp
live555 debug: RTP subsession 'video/JPEG'
live555 error: SETUP of'video/JPEG' failed 412
live555 debug: setup start: 0.000000 stop:0.000000
live555 error: Nothing to play for rtsp://localhost/live/PicsTcp
core debug: no access_demux modules matched
core debug: creating access 'rtsp' location='localhost/live/PicsTcp', path='live\PicsTcp'
core debug: looking for access module matching "rtsp": 21 candidates
core debug: net: connecting to localhost port 554
core warning: connection timed out
core debug: connection succeeded (socket = 1872)
access_realrtsp debug: rtsp connected
access_realrtsp warning: only real/helix rtsp servers supported for now
core debug: no access modules matched
core error: open of `rtsp://localhost/live/PicsTcp' failed
core debug: finished input
core debug: dead input
core debug: changing item without a request (current 0/1)
core debug: nothing to play
qt4 debug: IM: Deleting the input
Test console output:
About to run test: TestServer
Press Q to skip or any other key to continue.
Beginning Test '0':=>TestServer
Server Started @ 10.12.2015 18:50:31
Starting Stream: PicsTcp Id=beecdf0a-376b-4768-8397-b08f14ad75e6
Starting Stream: Bandit Id=b7a4ba58-55e4-411e-85cd-0b386600885f
Starting Stream: Mirror Id=3f89b406-45df-442f-9a13-76a87992b122
Listening on: 0.0.0.0:554
Waiting for input...
Press 'U' to Enable Udp on Media.RtspServer
Press 'H' to Enable Http on Media.RtspServer
Press 'T' to Perform Load SubTest on Media.RtspServer
Press 'C' to See how many clients are connected.
Press 'F' to See statistics for Bandit
Adding Client: b3c85128-9b97-45fa-b36a-1eee635ba7c7
Accepted Client: b3c85128-9b97-45fa-b36a-1eee635ba7c7 @ 10.12.2015 18:50:33 Added =True
Request=> OPTIONS rtsp://localhost/live/PicsTcp RTSP/1.0
CSeq: 2
User-Agent: LibVLC/2.2.1 (LIVE555 Streaming Media v2014.07.25)

 Session=> b3c85128-9b97-45fa-b36a-1eee635ba7c7

Response=> RTSP/1.0 200
CSeq: 2
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, GET_PARAMETER
Allow: ANNOUNCE, RECORD, SET_PARAMETER
Server: ASTI Media Server RTSP 1.0
Date: Thu, 10 Dec 2015 18:50:34 GMT

 Session=> b3c85128-9b97-45fa-b36a-1eee635ba7c7

Request=> DESCRIBE rtsp://localhost/live/PicsTcp RTSP/1.0
CSeq: 3
User-Agent: LibVLC/2.2.1 (LIVE555 Streaming Media v2014.07.25)
Accept: application/sdp

 Session=> b3c85128-9b97-45fa-b36a-1eee635ba7c7

Response=> RTSP/1.0 200
CSeq: 3
Content-Type: application/sdp
Cache-Control: no-cache
Content-Base: rtsp://127.0.0.1/live/beecdf0a-376b-4768-8397-b08f14ad75e6/
Content-Length: 231
Content-Encoding: utf-8
Server: ASTI Media Server RTSP 1.0
Date: Thu, 10 Dec 2015 18:50:34 GMT

v=0
o=ASTI-Media-Server 15714264141960813058 -2732479931748738504 IN IP4 127.0.0.1
s=ASTI-Streaming-Session-PicsTcp
a=sendonly
a=type:broadcast
m=video 0 RTP/AVP 26
a=control:/live/beecdf0a-376b-4768-8397-b08f14ad75e6/video
 Session=> b3c85128-9b97-45fa-b36a-1eee635ba7c7

Request=> SETUP rtsp://127.0.0.1/live/beecdf0a-376b-4768-8397-b08f14ad75e6//live/beecdf0a-376b-4768-8397-b08f14ad75e6/video RTSP/1.0
CSeq: 4
User-Agent: LibVLC/2.2.1 (LIVE555 Streaming Media v2014.07.25)
Transport: RTP/AVP;unicast;client_port=60440-60441

 Session=> b3c85128-9b97-45fa-b36a-1eee635ba7c7

Response=> RTSP/1.0 412
CSeq: 4
Server: ASTI Media Server RTSP 1.0
Date: Thu, 10 Dec 2015 18:50:34 GMT

 Session=> b3c85128-9b97-45fa-b36a-1eee635ba7c7

Request=> OPTIONS rtsp://localhost/ RTSP/1.0
CSeq: 1
User-Agent: RealMedia Player Version 6.0.9.1235 (linux-2.0-libc6-i386-gcc2.95)
ClientChallenge: 9e26d33f2984236010ef6253fb1887f7
PlayerStarttime: [28/03/2003:22:50:23 00:00]
CompanyID: KnKV4M4I/B2FjJ1TToLycw==
GUID: 00000000-0000-0000-0000-000000000000
RegionData: 0
ClientID: Linux_2.4_6.0.9.1235_play32_RN01_EN_586

 Session=> 9253c83a-e10b-4896-9b67-5b630fe65bc4

Adding Client: 9253c83a-e10b-4896-9b67-5b630fe65bc4
Response=> RTSP/1.0 200
CSeq: 1
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, GET_PARAMETER
Allow: ANNOUNCE, RECORD, SET_PARAMETER
Server: ASTI Media Server RTSP 1.0
Date: Thu, 10 Dec 2015 18:50:39 GMT

 Session=> 9253c83a-e10b-4896-9b67-5b630fe65bc4

Adding Client: 9253c83a-e10b-4896-9b67-5b630fe65bc4
Accepted Client: 9253c83a-e10b-4896-9b67-5b630fe65bc4 @ 10.12.2015 18:50:39 Added =True
RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
I appreciate any help with this.
Coordinator
Dec 11, 2015 at 1:47 PM
What I notice immediately is that the SETUP URI looks weird, it seems the ID is repeated.

'Request=> SETUP rtsp://127.0.0.1/live/beecdf0a-376b-4768-8397-b08f14ad75e6//live/beecdf0a-376b-4768-8397-b08f14ad75e6/video RTSP/1.0'

I will check into replicating this and report back soon.
Marked as answer by juliusfriedman on 12/11/2015 at 5:47 AM
Coordinator
Dec 11, 2015 at 3:02 PM
Changeset 111805 should resolve this, sorry for the hassle and thanks for reporting it.
Marked as answer by juliusfriedman on 12/11/2015 at 7:03 AM
Dec 12, 2015 at 8:31 AM
Thank you!
That works now