H264 decoder for RTSP stream inside the docker

453 Views Asked by At

I am working on Nvidia Jetson AGX Xavier within Dockerized container…I want to take input from RTSP stream…it’s encoding type is H264 and .avi video input.The input stream frame size is 1920x1080 (in code I am resizing that into 1280x720)

I have used this GStreamer pipeline

cap = cv2.VideoCapture(‘rtspsrc location=“rtsp_link” latency=200 ! queue ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! appsink’, cv2.CAP_GSTREAMER)

It is able to read the frames but after reading frames, frames got completely blurred , that’s why object detection is not happening.

0

There are 0 best solutions below