I have one video with duration of one minute and 35 seconds. I am able to split it into multiple 30 second segments (I am fully aware of other ways to split a video but chose this for a particular reason). However, this yields 3 videos, 30 seconds long, and one video, 5 seconds long. What would be the best way to eliminate a straggling video that is less than 15 seconds and append to segments?
split to segments
ffmpeg -i test.mp4 -codec:v copy -codec:a copy -segment_time 30 test-%03d.mp4
ffprobe -i test.mp4 -show_format -v quiet | grep '.=.'