Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera diconnected after 10 seconds #31

Closed
vit-um opened this issue Apr 24, 2021 · 4 comments
Closed

Camera diconnected after 10 seconds #31

vit-um opened this issue Apr 24, 2021 · 4 comments
Labels
question Further information is requested

Comments

@vit-um
Copy link

vit-um commented Apr 24, 2021

Hi

Dear Alexx,

This camera is absent in the supported device list. Probably You will can thomething corrected for its correct work.
Description this camera:
https://www.aliexpress.com/item/4000859777548.html?spm=a2g0s.9042311.0.0.e14c4c4dXNtG5c
Video:
https://youtu.be/lJ4EV2nrg-Q

Log here:
"Glazok": {
"url": "rtsp://192.168.1.72:554/user=admin&password=&channel=1&stream=0.sdp"
}
}
}
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
- using env: export GIN_MODE=release
- using code: gin.SetMode(gin.ReleaseMode)
2021/04/24 14:43:54 Server Start Awaiting Signal
2021/04/24 14:43:54 Stream Try Connect Glazok
2021/04/24 14:43:54 Stream Try Connect Sonoff
[GIN-debug] Loaded HTML Templates (2):
-
- index.tmpl
[GIN-debug] GET / --> main.serveHTTP.func1 (3 handlers)
[GIN-debug] POST /recive --> main.HTTPAPIServerStreamWebRTC (3 handlers)
[GIN-debug] GET /codec/:uuid --> main.serveHTTP.func2 (3 handlers)
[GIN-debug] GET /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (3 handlers)
[GIN-debug] HEAD /static/*filepath --> github.com/gin-gonic/gin.(*RouterGroup).createStaticHandler.func1 (3 handlers)

[cut]

2021/04/24 17:10:45 Set UDP ports to 50000..50009
[GIN] 2021/04/24 - 17:10:45 | 200 | 95.860482ms | 192.168.10.2 | POST "/recive"
[GIN] 2021/04/24 - 17:11:35 | 200 | 4.307576ms | 192.168.10.2 | GET "/?player=Glazok"
[GIN] 2021/04/24 - 17:11:35 | 200 | 1.686083ms | 192.168.10.2 | GET "/static/js/app.js?ver=2021-04-24+17:11:35.831671099+%2B0300+EEST+m%3D%2B8861.488265743"
[GIN] 2021/04/24 - 17:11:35 | 200 | 75.573µs | 192.168.10.2 | GET "/codec/Glazok"
2021/04/24 17:11:36 Set UDP ports to 50000..50009
[GIN] 2021/04/24 - 17:11:36 | 200 | 48.425056ms | 192.168.10.2 | POST "/recive"
2021/04/24 17:11:40 Client Not Send ACK (probably the browser is minimized) or tab not active Close client
2021/04/24 17:11:40 WritePacket WebRTC Client Offline
2021/04/24 17:11:54 noVideo

@AlexxIT
Copy link
Owner

AlexxIT commented Apr 24, 2021

Add-on don't supported any more. Remove it and install custom component from this repo

@AlexxIT AlexxIT added the question Further information is requested label Apr 24, 2021
@AlexxIT AlexxIT closed this as completed Apr 28, 2021
@vit-um
Copy link
Author

vit-um commented May 9, 2021

Hi
Alex, i removed add-on and installed custom component but this don't helped. See log below please.
Maybe you have any ideas for this?

2021-05-09 14:04:04 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:04 Stream Try Connect rtsp://192.168.1.72:554/user=admin&password=&channel=1&stream=0.sdp
2021-05-09 14:04:04 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:04 Stream Try Connect rtsp://rtsp:12345678@192.168.1.111:554/av_stream/ch1
2021-05-09 14:04:04 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:04 Set ICEServers [stun:stun.l.google.com:19302]
2021-05-09 14:04:08 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:08 Set ICEServers [stun:stun.l.google.com:19302]
2021-05-09 14:04:25 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:25 noVideo
2021-05-09 14:04:25 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:25 noVideo
2021-05-09 14:04:38 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:38 muxerWebRTC.WritePacket WebRTC Client Offline
2021-05-09 14:04:40 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:40 Set ICEServers [stun:stun.l.google.com:19302]
2021-05-09 14:04:41 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:41 websocket.JSON.Send write tcp 127.0.0.1:8083->127.0.0.1:54798: i/o timeout
2021-05-09 14:04:44 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:44 Stream Exit On Demand No Viewer
2021-05-09 14:04:44 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:44 Stream Exit On Demand No Viewer
2021-05-09 14:04:54 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:54 Set ICEServers [stun:stun.l.google.com:19302]
2021-05-09 14:04:55 DEBUG (webrtc) [custom_components.webrtc.utils] 2021/05/09 14:04:55 websocket.JSON.Receive EOF

@AlexxIT
Copy link
Owner

AlexxIT commented May 11, 2021

No Video happens when component can't get keyframe from camera. Maybe your camera didn't support it or sent very rarely.

@abigdeel
Copy link

abigdeel commented Apr 22, 2022

I'm getting the same issue on one of my cams.

It runs fine in VLC and Frigate records it fine too, but using your card or the RTSPtoWEBRTC addon, it drops after ~6-10 seconds every single time. A couple of times it has run fine for several minutes without issue, but usually it drops and I get the NoVideo error.

It sends a keyframe every 2 seconds, and I tried reducing that to 1 second as well. But still, always drop after 6-10 seconds.

Weird, might be my network and the Hyper-V environment. Might be the camera. Can't really figure it out any further. My other cams are fine.

Sorry for reviving such an old post, but I didn't want to create a new issue until I can eliminate a few more possible issues first. Maybe weak connectivity, I'll try addressing that first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants