FFmpeg - how to omit individual frames by the list of their numbers?
The direct selection method is simple.

ffmpeg -i in.mp4 -vf select='not(eq(n,45)+eq(n,47)+eq(n,75))',setpts=N/FRAME_RATE/TB out.mp4


Frame count starts from zero.  Audio is ignored.

(I'll check for a detection method)