How to split videos when camera_recording?

I am using 10_camera_recording,to record camera record. but the video is to big, how to split it by size automatically. record_0.avi,record_1.avi…


For using tegra_multimedia_api, you need to implement the function.

There is implementation in gstreamer. Please try

$ gst-launch-1.0 nvarguscamerasrc ! nvv4l2h264enc ! h264parse ! splitmuxsink muxer=qtmux location=video%03d.mp4 max-size-bytes=8000000

Thank you very much.

I used demo frontend. And set #define MAX_QUEUED_BUFFERS (6). Then there is no frame drop.