I'm currently trying to record the camera input through a Surface on Android. I'm interested in splitting the input in real-time into 10seconds videos, I've achieved that by restarting the MediaRecorder when the event MEDIA_RECORDER_MAX_DURATION_REACHED
hits but I'm losing some frames between the videos.
I've read that I could achieve this using a MediaMuxer instead but I couldn't find any good example of a practical suggestion. Where should I start?
question from:https://stackoverflow.com/questions/65645092/mediamuxer-for-splitting-camera-input-without-losing-frames