detectnet with my own model to output a video which I want to be saved into an mp4 file (with the detections and my custom additions on the frame).
At the moment, I’m launching detectnet like this:
./detectnet.py --model=/home/aerodynamika/Programs/jetson-inference/python/training/detection/ssd/models/eightos-knife-body-first-try/ssd-mobilenet.onnx --labels=/home/aerodynamika/Programs/jetson-inference/python/training/detection/ssd/models/eightos-knife-body-first-try/labels.txt --input-blob=input_0 --output-cvg=scores --output-bbox=boxes "/home/aerodynamika/Programs/opencv-eightos/videos/knife-body.mp4" "/home/aerodynamika/Programs/opencv-eightos/videos/knife-body-detectnet-2.mp4" --threshold=0.1
It creates a stream and outputs the file to
knife-body-detectnet-2.mp4 but it has frames dropped and it’s not complete video.
I’m using this to write:
output = jetson.utils.videoOutput(opt.output_URI, argv=sys.argv+is_headless) # here some code to detect and to process the image output.Render(out_img)
is there a way to output and record a video that is faster and won’t have frames dropped? I heard I could do it with gstreamer but how?