Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) Nvidia agx xavier 32GB
• DeepStream Version 5.1
• JetPack Version (valid for Jetson only) 4.5
• TensorRT Version
• Issue Type( questions, new requirements, bugs) questions
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
I’m trying to make a pipeline to do both inference and also record the mjpeg video stream from from a camera into a file.
I’m currently stuck at saving the video to file where it produces video-files with errors that are not playable or poor framerate.
I’ve made one pipeline that works by playing the video output and it gives good fps.
gst-launch-1.0 v4l2src device=/dev/video0 do-timestamp=true ! image/jpeg, framerate=30/1, width=1920, height=1080 ! jpegparse ! nvv4l2decoder mjpeg=1 ! nvvidconv ! ‘video/x-raw’,format=NV12 ! nveglglessink
When I try to save it to file:
gst-launch-1.0 v4l2src device=/dev/video0 do-timestamp=true ! image/jpeg, framerate=30/1, width=1920, height=1080 ! jpegparse ! nvv4l2decoder mjpeg=1 ! nvvidconv ! ‘video/x-raw’,format=NV12 ! x264enc ! qtmux ! filesink location=./out4.mp4
The mp4 file is generated but gives the error “moov atom not found” which indicates there is an error in the metadata about the time-line and it’s not possible to play it.
I’ve also tried to save it to mkv:
gst-launch-1.0 v4l2src device=/dev/video0 do-timestamp=true ! image/jpeg, framerate=30/1, width=1920, height=1080 ! jpegparse ! nvv4l2decoder mjpeg=1 ! nvvidconv ! ‘video/x-raw’,format=NV12 ! omxh264enc qp-range=‘15,30:5,20:-1,-1’ preset-level=2 bitrate=8000000 ! matroskamux ! filesink location=test.mkv
This video is playable but gives about 1 frame every 5 seconds or so but the video-properties tells me it’s 30fps.
The video recording seems to work when reading out the raw-video from the camera but this gives too low framrate at higher resolutions, so I need to access the mjpeg stream somehow.
Any idea why I get corrupted video-files?
Best regards/
Daniel Grafström