Hello,I drove LT6911UXE on JetsonOrinNX. When I kept capturing video0 devices through gstreamer, frames would drop, and the higher I input, the more frames would be lost. When I reached 4k30hz, it was completely unusable, and the system would crash and restart after a few seconds of collection
do your both 4K@30 and 1080p@60 sensor modes have this kernel message discarding frames has reported?
such discarding frame error report by VI due to incorrect capture states, it’s dropping the concurrent capture buffer, and expect next coming good.
hello JerryChang,
Yes, they all have this problem, the 4k30 will lose more, and will cause the system to crash and restart.
How can I solve this problem and do I need to provide additional information.
thank you
could you please check the reported flags, and err_data.
for instance, if that’s flag=0, it means there’s error in the capture state, which usually due to incomplete packet sending to CSI channel.
Hello JerryChang,
After the hardware update, I can now collect 4k30hz output, but when I used the launch demo of gst-rtsp-server for test output, I found that it was only 15hz, and the mipi data measured by oscilloscope was 33ms. Is there any way to check it? Thank you.
let’s confirm you’re able to stream 4k30hz without encoder
for instance, $ v4l2-ctl -d /dev/video0 --set-fmt-video=width=3840,height=2160,pixelformat=YUV2 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=300
thanks for confirmation. it’s should be the issue from gst-rtsp-server.
please give it another try to record the stream to your local storage.
for instance,
here’s pipeline to setup preview stream, and also have do video recording. $ gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=150 ! 'video/x-raw, width=1920, height=1080, framerate=30/1, format=YUY2' ! tee name=streams streams. ! queue ! nvvidconv ! 'video/x-raw(memory:NVMM), format=(string)I420' ! nvv4l2h264enc ! h264parse ! qtmux ! filesink location=testUSB.mkv streams. ! queue ! xvimagesink -e