Replies: 1 comment
-
After trying a bunch of instructions and installing different versions of libraries, the following helped - https://stackoverflow.com/a/79487682/23209722 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I am developing a project on Jetson Orin NX, I need to use the AV library for capturing RTSP video for the project(This is how i can stream RTSP without delays). When I try to run the code -
container = av.open(self.rtsp_url, options={"rtsp_transport": "tcp", "fflags": "nobuffer", "max_delay": "0"})
try:
for frame in container.decode(video=0):
if not self.running:
break
img = frame.to_ndarray(format="bgr24")
with self.lock:
if len(self.frame_queue) >= 3: # Drop old frames if queue full
self.frame_queue.popleft()
self.frame_queue.append(img)
finally:
container.close()
in the end i show frame by - cv.imshow('Video', frame) -
Everything is fine with the RTSP stream, I checked it more than once, cv.imshow works when I read the RTSP stream through opencv.
When I output debug info about process packets - it receives and processes packets, the problem is probably in the display on my video monitor.
Need help. Thasnk`s/.
Beta Was this translation helpful? Give feedback.
All reactions