12-22-2021, 12:08 PM
Setup camera:
Start gstreamer:
Code:
media-ctl --set-v4l2 '"ov5640 1-003c":0[fmt:UYVY8_2X8/1280x720@1/15]'
Start gstreamer:
Code:
GST_PLUGIN_PATH=/usr/local/lib/gstreamer-1.0 GST_DEBUG=3 gst-launch-1.0 \
v4l2src device=/dev/video0 ! video/x-raw,format=UYVY,framerate=15/1,width=1280,height=720 \
! videoconvert ! video/x-raw,format=NV12 \
! clockoverlay time-format="%Y-%m-%d %H:%M:%S" \
! cedar_h264enc ! h264parse \
! splitmuxsink send-keyframe-requests=true max-size-time=30000000000 muxer=matroskamux max-files=32 \
location=/root/recordings/chunk_%06d.mkv