Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU): NVIDIA Jetson Xavier NX - AVerMedia NX215
• DeepStream Version: 6.2
• JetPack Version (valid for Jetson only): 5.1
• TensorRT Version: 8.5.2.2
• Issue Type: Bug
The Image above is the structure for my currently deepstream pipeline. Recently I made some changes to my pipeline to integrate MediaMTX for webrtc. But for that i go issues regarding DTS/PTS so I integrated an ffmpeg relay in between to resolve that issue and made changes to the encoder.
# Encoder for RTSP Branch
encoder_rtsp = self.make_element("nvv4l2h264enc", "encoder-rtsp", i)
encoder_rtsp.set_property("bitrate", 4000000)
# WebRTC compatibility
encoder_rtsp.set_property("profile", 0) # Baseline
# encoder_rtsp.set_property("num-B-Frames", 0) # No B-frames
encoder_rtsp.set_property("poc-type", 2) # Force decode order = display order (prevents non-monotonic PTS/DTS)
# Stream stability
encoder_rtsp.set_property("iframeinterval", 30) # GOP
encoder_rtsp.set_property("idrinterval", 30) # Force IDR every GOP (important)
encoder_rtsp.set_property("insert-sps-pps", 1) # Required for many players
encoder_rtsp.set_property("insert-aud", 1) # Often helps WebRTC/browser decoders
# Performance
encoder_rtsp.set_property("preset-level", 1) # UltraFast
encoder_rtsp.set_property("maxperf-enable", 1) # Max performance mode
self.pipeline.add(encoder_rtsp)
In my pipeline I save videos 15 mins each, and the pipeline runs for 12 hrs per day. Since I have pushed the change at start everything works fine, but after 8-10 mins the whole pipeline restart without throwing any error. The pipeline is set to restart automatically with the FPS drop to 0 for more than 25 secs. So that event occurs and everything is restarted and videos that are created, get corrupted too.
