I am using imx8qm.
Use openCV's VideoWriter to call gstreamer.
Below are the options to set in gstreamer.
appsrc ! autovideoconvert ! v4l2h264enc ! h264parse !\
splitmuxsink location="+fname+ "%d" + ext + \
" max-size-time = 60000000000 sync=false "
When recording with this, in rare cases, a video with block noise may be generated.
What is the cause when there is an abnormality in the recording file?