I am trying to use the select filter to choose frames to be included in the output file, but the resulting output file actually has more frames than the input file, which is completely baffling.
Following the example in the documentation to keep every 16th frame, I am using the following command:
ffmpeg -i input.MOV -filter:v "select=not(mod(n\,16))" output.MOV
output.MOV has more frames than input.MOV and nothing has been removed.
Interestingly, when I use the command:
ffmpeg -i input.MOV -filter:v "select=not(mod(n\,16))",showinfo output.MOV
it lists the frames that should be in the output (i.e. the ones that should be selected by the expression), but the actual output file contains more frames than that and seems to completely ignore the select filter (it seems to be the same no matter what select command I use, unless I use select=0).
Am I doing something incorrectly? I basically just want an example command that works the way I expect it to, so I can better learn how ffmpeg works.
Thanks.
Edit: select is not the only filter that ffmpeg seems to ignore when producing the output file, but if this problem is solved, the fix will probably work for other filters as well.