Consider adding an option -msl (minimum segment length) to skip output of segments that are less than a specified number of seconds.