Comments (3)
Hello iBelow,
I doing my python flask project to capture the RTSP Camera have same problem
I think the problem is base on the client = rtsp.Client("rtspUrl") is not ready to connect rtsp server
then the check connection status command "client.isOpened()" is true
and the python code sequence execute the client.preview() command to read the rtsp video frame
so when you call the function client.preview() or client.read().save()
it will alert the thread fail message on terminal
in my solution to fix it,
i import "time" package and add the "time.sleep(1)" to wait the connection
import rtsp
import time
uri = f"rtsp://10.0.0.160:554/live.sdp"
with rtsp.Client(rtsp_server_uri=uri) as client:
time.sleep(1)
client.preview()
from rtsp.
Hello iBelow,
I doing my python flask project to capture the RTSP Camera have same problem
I think the problem is base on the client = rtsp.Client("rtspUrl") is not ready to connect rtsp server
then the check connection status command "client.isOpened()" is true
and the python code sequence execute the client.preview() command to read the rtsp video frame
so when you call the function client.preview() or client.read().save()
it will alert the thread fail message on terminal
in my solution to fix it,
i import "time" package and add the "time.sleep(1)" to wait the connectionimport rtsp import time uri = f"rtsp://10.0.0.160:554/live.sdp" with rtsp.Client(rtsp_server_uri=uri) as client: time.sleep(1) client.preview()
Thanx!
from rtsp.
Add time.sleep(1) does solve the above Assertion, but the gunicorn consumes too much CPU 90-100% and start spawning new PID:
gunicorn[32285]: [2021-07-06 22:47:08 +0700] [13893] [INFO] Booting worker with pid: 13893.
Any suggestion?
from rtsp.
Related Issues (20)
- Authentication HOT 1
- Version 2 release date ? HOT 1
- cvstream: RTSPVideoFeed.read() should not call _stream.release() HOT 2
- Can't Set CV_CAP_PROP_BUFFERSIZE HOT 3
- Bad URI Parsing
- Can't Read Stream Properties
- No Easy Direct Stream Access
- Lack of Logging Support
- module "rtsp" has no attribute "Client" HOT 2
- How can I get NTP time HOT 2
- Timeout and try catch HOT 2
- object has no attribute 'save' HOT 7
- AttributeError: 'NoneType' object has no attribute 'shape' during write video output using ffmpegcv HOT 1
- add support for hikvision HOT 2
- Better Test for Buffer Drainage HOT 1
- Keep RTSP connection alive HOT 6
- [Question] Would an asyncio rtsp stream reader make sense? HOT 1
- Get the byteArray HOT 1
- None frames are not caught HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rtsp.