RenderHeads / UnityPlugin-AVProVideo

AVPro Video is a multi-platform Unity plugin for advanced video playback
https://www.renderheads.com/products/avpro-video/
232 stars 28 forks source link

RTSP freezing after brief period #1355

Closed panchaia-af closed 1 year ago

panchaia-af commented 1 year ago

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Describe the issue With AVPro Video Core Android (paid, not trial) running on a tablet and accepting a stream from an NVR. Connection is over WLAN with no internet connection and with fixed IPs. All other elements are disabled, so it's just this running in isolation. Exoplayer, pointing at an RTSP URL. RTSP feed shows a live clock, allowing easy identification of frozen video.

RTSP feed starts and displays correctly. After a few minutes of operation, the RTSP feed freezes on a single frame. With a second client simultaneously viewing the stream, the stream itself continues. This does not happen on other apps running on the same tablet, just anything on Unity using AVPro Video.

Your Setup (please complete the following information):

To Reproduce

  1. Start streaming from RTSP source
  2. Wait a few minutes
  3. Confirm if video continues to be displayed

Logs If applicable, add error logs to help explain your problem.

Screenshots If applicable, add screenshots to help explain your problem.

Videos If applicable, add a copy of your video or the URL

Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE

Instead email the link to us unitysupport@renderheads.com

Chris-RH commented 1 year ago

Hi @panchaia-af,

  1. Are you able to provide a full logcat?
  2. Have you tested it using other android devices?
  3. Have you tried other RTSP test-streams?
  4. Is the RTSP stream unicast or multicast?
  5. What hardware are you using (NVR, tablet etc)?
  6. What frequency is your LAN?
  7. Distance between device and WAP?
panchaia-af commented 1 year ago

Hi Chris-RH, apologies for the slow response.

  1. I've attached the output of logcat, running from just before the program finished to after it had failed in this way.
  2. The same behaviour is seen on the one other Android device I've tested it with.
  3. A second RTSP stream was tried. This was over a different WLAN since it's a source from the internet rather than on a LAN. Also, note that the first test was done on the WLAN intended to be used, which has no internet connection. This appears to play.
  4. The RTSP stream is unicast
  5. The NVR is a HIKVISION HILOOK DVR-104G-F1, the tablet is an Oukitel RT1 4GB running Android 11.
  6. The LAN has both 2.4GHz and 5GHz networks, both show the same effect
  7. The error occurs a few inches from the WAP and 10 feet away, with the device static.

cap.txt

Chris-RH commented 1 year ago

Hi, sorry for the late reply, I've been on holiday.

Have you tried a new project running just AVPro Video and the mediaplayer demo scene and nothing else (no android tools etc)?

Have you checked that any sleep settings have been deactivated?

Also, I noted the top of your error log said "adb server version (40) doesn't match this client (39); killing..." , which after googling suggests multiple ADB versions. There are a few solutions here which you might want to try: https://stackoverflow.com/questions/38214012/solving-adb-server-version-doesnt-match-this-client-error

Chris-RH commented 1 year ago

@panchaia-af, Any luck with that?

Chris-RH commented 1 year ago

closed due to lack of reply.

panchaia-af commented 1 year ago

Hi Chris, Sorry for the late response. Even with just the plugin in an otherwise blank project it would fail. The problem turned out to be two RTSP sources that were both providing somehow-bad data!

AVProVideo is working reliably with a third, good, source.

I am not sure what the difference is between how VLC and the like process the stream and how AVPro does, but some part of the plugin seems to not like the sources I had. I will experiment more in future and report back to you if I find anything.

Thanks, panchaia-af


From: Chris-RH @.> Sent: Thursday, November 24, 2022 2:01 PM To: RenderHeads/UnityPlugin-AVProVideo @.> Cc: Adam Foxton @.>; Mention @.> Subject: Re: [RenderHeads/UnityPlugin-AVProVideo] RTSP freezing after brief period (Issue #1355)

Closed #1355https://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1355 as completed.

— Reply to this email directly, view it on GitHubhttps://github.com/RenderHeads/UnityPlugin-AVProVideo/issues/1355#event-7886339639, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A37KAX253RKMBK4YXD3C7BLWJ5YKPANCNFSM6AAAAAARV65KFI. You are receiving this because you were mentioned.Message ID: @.***>

Chris-RH commented 1 year ago

Brilliant, it would be great to know how they differ, thank you :)