Device Specification
**• Hardware Platform (Jetson Nano)
**• DeepStream Version 6.0
**• JetPack Version 4.6.1
**• TensorRT Version 8.2.1.8
I am trying to run a deepstream application on my device. I get following issue while running my application with my current rtsp.
NVPARSER: HEVC: Seeking is not performed on IRAP picture
I have tested my rtsp with multiple methods. It is working only with cv2 with ffmpeg as a backend with other methods it is giving errors.
The methods I have tried are following.
Can someone give me solution to this issue or just explain me the reason for this issue to occur is it related to my rtsp source or some other issue is happening.
yeah I have tried to capture the stream with different tools that I have mentioned in earlier comment and its only being captured using cv2 and is failing with others
class RTSPVideoWriterObject(object):
def init(self, src=0):
# Create a VideoCapture object
self.capture = cv2.VideoCapture(src)
# Default resolutions of the frame are obtained (system dependent)
self.frame_width = int(self.capture.get(3))
self.frame_height = int(self.capture.get(4))
# Set up codec and output video settings
self.codec = cv2.VideoWriter_fourcc('M','J','P','G')
self.output_video = cv2.VideoWriter('output.avi', self.codec, 30, (self.frame_width, self.frame_height))
# Start the thread to read frames from the video stream
self.thread = Thread(target=self.update, args=())
self.thread.daemon = True
self.thread.start()
def update(self):
# Read the next frame from the stream in a different thread
while True:
if self.capture.isOpened():
(self.status, self.frame) = self.capture.read()
def show_frame(self):
# Display frames in main program
if self.status:
cv2.imshow('frame', self.frame)
# Press Q on keyboard to stop recording
key = cv2.waitKey(1)
if key == ord('q'):
self.capture.release()
self.output_video.release()
cv2.destroyAllWindows()
exit(1)
def save_frame(self):
# Save obtained frame into video output file
self.output_video.write(self.frame)
if name == ‘main’:
rtsp_stream_link = ‘rtsp://user1:cctv2020@192.168.0.128:554/cam/realmonitor?channel=11&subtype=0’
video_stream_widget = RTSPVideoWriterObject(rtsp_stream_link)
while True:
try:
video_stream_widget.show_frame()
video_stream_widget.save_frame()
except AttributeError:
pass
The stream is MJPEG. Can you try the following pipeline in your Jetson board? gst-launch-1.0 rtspsrc uri=rtsp://xxxxxx ! rtpjpegdepay ! jpegparse ! nvv4l2decoder mjpeg=TRUE ! nvvideoconvert ! nv3dsink