question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VStarCam IP camera stream not accepted

See original GitHub issue

I connect to VStarcam C8824WIP IP-camera via RTSP and i got several errors when recieve frames

  1. First error RtspClientSharp.Rtsp.RtspClientException: Receive error —> RtspClientSharp.MediaParsers.H264ParserException: Invalid nal unit type: 31 at RtspClientSharp.MediaParsers.H264Parser.ProcessNalUnit(DateTime frameTimestamp, ArraySegment1 byteSegment, Boolean hasStartMarker, Boolean generateFrame) at RtspClientSharp.MediaParsers.H264Parser.Parse(DateTime frameTimestamp, ArraySegment1 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, 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()

  2. 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.ArraySegment1..ctor(T[] array, Int32 offset, Int32 count) at RtspClientSharp.MediaParsers.H264VideoPayloadParser.ParseMTAP(DateTime frameTimestamp, ArraySegment1 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(ArraySegment1 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()

  3. 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:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
mistal-distalcommented, May 27, 2019

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:

@DogFive https://github.com/DogFive Thank you for help.

Guys, I could offer to ignore this type of NAL’s if problem is really connected only with NAL type

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/BogdanovKirill/RtspClientSharp/issues/33?email_source=notifications&email_token=AAIMVCQQ3HGDTLPGO5RHME3PXOA2XA5CNFSM4HPSWDHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWI6NWQ#issuecomment-496101082, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIMVCVAZP6WNBZYLXPYEMTPXOA2XANCNFSM4HPSWDHA .

0reactions
IvanovNikocommented, May 30, 2019

Thank you all for help. Problem was found and fixed. It was connected with additional space in SDP answer in media line.

Fixed here: 04f5abf

New version 1.2.8 was released. Please reopen if required.

Thank you, Kirill. You made great and fast job. My problem was solved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

IP Camera WiFi Not Working – 9 Tips to Fix IP Cam Not ...
Top 9 Tips to Fix Your IP Camera WiFi Not Working or Not Connecting · 1. Check the IP Camera Antennas to Fix...
Read more >
IP Camera Streaming Troubleshooting Guide - Digital Watchdog
If the camera is experiencing streaming issues, but was working previously, possible issues may include:
Read more >
Trying to get Ipcamera Binding to work with Vstarcams
I have a bunch of different models of Vstarcam that support ONVIF and trying to make things work. I have Trace enabled to...
Read more >
Connect to Vstarcam cameras
Models Type Protocol Path MJPEG http:// videostream.cgi?user=&pwd=&res... 1080P, C26S, C7823WIP, C7824WIp FFMPEG rtsp:// /udp/av0_1 FFMPEG rtsp:// /tcp/av0_0
Read more >
help... wont connect... new to all of this....
I am using my laptop over the same wifi network that the camera is ... The VSTarcam C7816WIP is not a great camera...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found