Problem with RtspServer and RtspSource

Topics: Question
May 4, 2015 at 2:38 PM
I am working on a project that uses this line of code.
When i set rtsp://localhost:5006/test in VLC player i this error
Your input can't be opened:
VLC is unable to open the MRL 'rtsp://192.168.1.5:5006/test'. Check the log for details.
Is code is true?

RtspServer server = new RtspServer(IPAddress.Any, 5006);
// rtsp://localhost:5006/test
server.TryAddMedia(new RtspSource("test", new Uri(@"rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"))); server.Logger = new RtspServerConsoleLogger();
server.Start();
Console.ReadKey();
server.Stop();
May 4, 2015 at 6:03 PM
The address for the client is incorrect try "rtsp://192.168.1.5:5006/live/test"
Marked as answer by mohammadghaderiya on 5/9/2015 at 9:20 PM
Coordinator
May 5, 2015 at 11:54 PM
Sorry but there is way to much of a language barrier and then furthermore it seems there is some type of further understanding of various concepts on your part before I will be able to help you the way you think I will.

You can try posting in your native language along with a link to Google Translate which may help with the former but the latter would also be required to convey your difficulties correctly.

If you need anything else please let me know.

Please feel free to ask your teacher as it seems he is using the code in a Production Environment.

Please remember to adhere to the Apache License and also ensure that your Professor is Also.

Regards.
Marked as answer by juliusfriedman on 5/5/2015 at 4:54 PM
May 10, 2015 at 4:15 AM
My problem was resolved. Thank you for taking the time to my question.
Is is where I see all Abilities of net7mma library in the form of a c# project?
Coordinator
May 10, 2015 at 4:17 AM
Glad to hear it.

Besides the existing examples?

Is there such a thing for any library which is created?

If you need anything else let me know!
Marked as answer by juliusfriedman on 5/9/2015 at 9:17 PM
May 10, 2015 at 4:21 AM
Edited May 10, 2015 at 4:26 AM
I have a folder of videos to various formats such as mp4, mkv, mov, 3gp, f4v. I want this film to be shared users by rtsp.
How can it do?
Thanks juliusfriedman
Jul 3, 2015 at 12:18 PM
Hi. Using the same rtsp url as above if I open this up in a media player the source plays. If I then point this to my local RTSP server (using the above code) the edia player connects but then times out. Any ideas?

Session=> 93ca042b-c157-422f-8bb4-74dd4c3a4caa

Media.Rtp.RtpClient-0c3fca75-11fa-4e8e-a549-496867ac63ec@SendRecieve - Begin
Response=> RTSP/1.0 200 OK
Session: 2115963269;timeout=30
CSeq: 5
Range: npt=266.916-596.48
RTP-Info: url=rtsp://192.168.11.10/live/554185ab-b5f9-4ab1-9a08-8f2b7bdff393/
io;ssrc=7F794964, url=rtsp://192.168.11.10/live/554185ab-b5f9-4ab1-9a08-8f2b7
f393/video;ssrc=7F32124E
Server: ASTI Media Server RTSP 1.0
Date: Fri, 03 Jul 2015 12:12:50 GMT

Session=> 93ca042b-c157-422f-8bb4-74dd4c3a4caa

RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
Disposing Client: 93ca042b-c157-422f-8bb4-74dd4c3a4caa @ 03/07/2015 12:15:37
RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
Adding Client: c49dabe6-b156-46ad-926c-0af37094a6e6
Accepted Client: c49dabe6-b156-46ad-926c-0af37094a6e6 @ 03/07/2015 12:16:38 A
d =True
Request=> OPTIONS rtsp://192.168.11.10/live/test RTSP/1.0
CSeq: 1
User-Agent: Lavf55.48.100

Session=> c49dabe6-b156-46ad-926c-0af37094a6e6

Response=> RTSP/1.0 200 OK
CSeq: 1
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, GET_PARAMETER
Allow: ANNOUNCE, RECORD, SET_PARAMETER
Server: ASTI Media Server RTSP 1.0
Date: Fri, 03 Jul 2015 12:16:38 GMT

Session=> c49dabe6-b156-46ad-926c-0af37094a6e6

RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
RestartFaultedStreams
DisconnectAndRemoveInactiveSessions
Disposing Client: c49dabe6-b156-46ad-926c-0af37094a6e6 @ 03/07/2015 12:18:05
Coordinator
Jul 3, 2015 at 2:11 PM
Seems like a network or camera issue.

Good luck.
Marked as answer by juliusfriedman on 7/3/2015 at 7:11 AM
Jul 6, 2015 at 12:04 PM
Hi, I fired up quicktime player on the same box and still unable to play the source from the server. Seems I keep receiving this "No Context for pa
cket" ? Kind regards Paul


Request=> OPTIONS rtsp://127.0.0.1/live/testtcp RTSP/1.0
CSeq: 12
Session: -724103063
User-Agent: QuickTime/7.7.7 (qtver=7.7.7;os=Windows NT 6.1Service Pack 1)

Session=> 5360cdd0-b528-4d7a-95ed-4472425edb31

6e7ce3a9-d25d-411e-b03b-c93891d8c3feHandleIncomingRtcpPacket - No Context for pa
cket 1937011811@47
6e7ce3a9-d25d-411e-b03b-c93891d8c3feHandleIncomingRtcpPacket - No Context for pa
cket 19184@201
Response=> RTSP/1.0 200 OK
Session: -724103063;timeout=30
CSeq: 12
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN, GET_PARAMETER
Allow: ANNOUNCE, RECORD, SET_PARAMETER
Server: ASTI Media Server RTSP 1.0
Date: Mon, 06 Jul 2015 12:01:11 GMT

Session=> 5360cdd0-b528-4d7a-95ed-4472425edb31

6e7ce3a9-d25d-411e-b03b-c93891d8c3feHandleIncomingRtcpPacket - No Context for pa
cket 19184@202
6e7ce3a9-d25d-411e-b03b-c93891d8c3feHandleIncomingRtcpPacket - No Context for pa
cket 19184@204
adfafdc1-30b2-46f3-9fb2-3a9f6df60a3eProcessFrameData - Incompatible Packet frame
Length=237 for Channel 0 remainingInBuffer=11
adfafdc1-30b2-46f3-9fb2-3a9f6df60a3eProcessFrameData - Incompatible Packet frame
Length=1033 for Channel 0 remainingInBuffer=10
adfafdc1-30b2-46f3-9fb2-3a9f6df60a3eHandleIncomingRtcpPacket - No Context for pa
cket -12365193@3
adfafdc1-30b2-46f3-9fb2-3a9f6df60a3eProcessFrameData - Incompatible Packet frame
Length=1376 for Channel 2 remainingInBuffer=14
6e7ce3a9-d25d-411e-b03b-c93891d8c3feHandleIncomingRtcpPacket - No Context for pa
cket 19188@201
6e7ce3a9-d25d-411e-b03b-c93891d8c3feHandleIncomingRtcpPacket - No Context for pa
cket 19188@202
6e7ce3a9-d25d-411e-b03b-c93891d8c3feHandleIncomingRtcpPacket - No Context for pa
cket 19188@204
6e7ce3a9-d25d-411e-b03b-c93891d8c3feHandleIncomingRtcpPacket - No Context for pa
cket 19184@201
6e7ce3a9-d25d-411e-b03b-c93891d8c3feHandleIncomingRtcpPacket - No Context for pa
cket 19184@202
6e7ce3a9-d25d-411e-b03b-c93891d8c3feHandleIncomingRtcpPacket - No Context for pa
cket 19184@204 Media.Rtp.RtpClient-adfafdc1-30b2-46f3-9fb2-3a9f6df60a3e@ProcessFrameData - Irre
gular Packet of 37452 for Channel 0 remainingInBuffer=5584
adfafdc1-30b2-46f3-9fb2-3a9f6df60a3eProcessFrameData - Incompatible Packet frame
Length=37452 for Channel 0 remainingInBuffer=5584
adfafdc1-30b2-46f3-9fb2-3a9f6df60a3eProcessFrameData - Incompatible Packet frame
Length=1376 for Channel 2 remainingInBuffer=14
adfafdc1-30b2-46f3-9fb2-3a9f6df60a3eProcessFrameData - Incompatible Packet frame
Length=289 for Channel 0 remainingInBuffer=13
adfafdc1-30b2-46f3-9fb2-3a9f6df60a3eProcessFrameData - Incompatible Packet frame
Length=1376 for Channel 2 remainingInBuffer=14
Coordinator
Jul 6, 2015 at 12:26 PM
Sorry but I'm giving away free support anymore to every person in who wants to try and learn something. Especially to people who can't help themselves and admit when they are wrong and or stuck with their lack of understanding and focus.

Good luck.
Marked as answer by juliusfriedman on 7/6/2015 at 5:26 AM
Jul 6, 2015 at 3:21 PM
Hi Julius, not looking for free consultancy if you want to let me know a contact email address. However if you are going to publish a library then some basic support should be given. Just firing up the testserver i am unable to connect to any of the feeds with a media player and always states a bad context on the frames.