You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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) -
it does not display the video on the screen. I am working on the board itself, not through the SSH, I have a monitor and ffmpeg dev installed, but when I run the code it does not show me the video.
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/.
This discussion was converted from issue #1812 on March 11, 2025 14:24.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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