FFmpeg: To trim a video using ‘trim’ and specifying time in HH:MM:SS format

The following command trims a video from 5s to 10s:

ffmpeg -y -i input.mp4 -vf trim=5:10,setpts=PTS-STARTPTS output.mp4

But if I try to specify start and end time using HH:MM:SS format, FFmpeg returns an error:

Output file is empty, nothing was encoded(check -ss / -t / -frames parameters if used)

ffmpeg -y -i input.mp4 -vf trim='00:00:05':'00:00:15',setpts=PTS-STARTPTS output.mp4
ffmpeg -y -i input.mp4 -vf trim=00\:00\:05:00\:00\:15,setpts=PTS-STARTPTS output.mp4

Why is that?

Read more here: Source link