You can do this with ffmpeg.
ffmpeg -i input.mp4 -c copy -f segment -segment_frames 1000,2000,3000,4000,5000 output_%03d.mp4
This command will segment your video by frame numbers 1000,2000,3000,4000,4000,5000 etc.
Remember to keep in mind the FPS and GOP of your video.