This command takes a single input video (input.mp4), re-encodes the video streams (to H.264 with near-lossless quality) while copying the audio stream, and generates three 10-second clips starting at specified timestamps (5s, 30s, and 1m as outputX.mp4). Each segment is saved as a separate output file.
Note that while it is not required to re-encode the video stream (e.g.: using -c:v copy), it will guarantee that the clips will include all the requested frames data from the original video.