VStarCam IP camera stream not accepted
See original GitHub issueI connect to VStarcam C8824WIP IP-camera via RTSP and i got several errors when recieve frames
-
First error RtspClientSharp.Rtsp.RtspClientException: Receive error —> RtspClientSharp.MediaParsers.H264ParserException: Invalid nal unit type: 31 at RtspClientSharp.MediaParsers.H264Parser.ProcessNalUnit(DateTime frameTimestamp, ArraySegment
1 byteSegment, Boolean hasStartMarker, Boolean generateFrame) at RtspClientSharp.MediaParsers.H264Parser.Parse(DateTime frameTimestamp, ArraySegment
1 byteSegment, Boolean dontSliceForce, Boolean generateFrame) at RtspClientSharp.MediaParsers.H264VideoPayloadParser.ParseFU(DateTime frameTimestamp, ArraySegment1 byteSegment, Int32 donFieldSize, Boolean markerBit) at RtspClientSharp.MediaParsers.H264VideoPayloadParser.Parse(TimeSpan timeOffset, ArraySegment
1 byteSegment, Boolean markerBit) at RtspClientSharp.Rtp.RtpStream.ProcessImmediately(RtpPacket& rtpPacket) at RtspClientSharp.Rtp.RtpStream.Process(ArraySegment`1 payloadSegment) at RtspClientSharp.Rtsp.RtspClientInternal.<ReceiveOverTcpAsync>d__33.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at RtspClientSharp.Rtsp.RtspClientInternal.<ReceiveAsync>d__18.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at RtspClientSharp.RtspClient.<ReceiveAsync>d__14.MoveNext() — End of inner exception stack trace — at RtspClientSharp.RtspClient.<ReceiveAsync>d__14.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() -
second error RtspClientSharp.Rtsp.RtspClientException: Receive error —> System.ArgumentException: Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection. at System.ArraySegment
1..ctor(T[] array, Int32 offset, Int32 count) at RtspClientSharp.MediaParsers.H264VideoPayloadParser.ParseMTAP(DateTime frameTimestamp, ArraySegment
1 byteSegment, Int32 tsOffsetFieldSize, Boolean markerBit) at RtspClientSharp.MediaParsers.H264VideoPayloadParser.Parse(TimeSpan timeOffset, ArraySegment1 byteSegment, Boolean markerBit) at RtspClientSharp.Rtp.RtpStream.ProcessImmediately(RtpPacket& rtpPacket) at RtspClientSharp.Rtp.RtpStream.Process(ArraySegment
1 payloadSegment) at RtspClientSharp.Rtsp.RtspClientInternal.<ReceiveOverTcpAsync>d__33.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at RtspClientSharp.Rtsp.RtspClientInternal.<ReceiveAsync>d__18.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at RtspClientSharp.RtspClient.<ReceiveAsync>d__14.MoveNext() — End of inner exception stack trace — at RtspClientSharp.RtspClient.<ReceiveAsync>d__14.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() -
When scene is not changed infront of camera i get timeout exception
RtspClientSharp.Rtsp.RtspClientException: Receive timeout —> System.TimeoutException: The operation has timed out. — End of inner exception stack trace — at RtspClientSharp.RtspClient.<ReceiveAsync>d__14.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top GitHub Comments
I can fix it if you like and submit a PR. I have an idea on how to fix it for now, and you can return it as a meta data packet type later.
On Mon, May 27, 2019, 2:56 AM Kirill notifications@github.com wrote:
Thank you, Kirill. You made great and fast job. My problem was solved.