I have a simple list in csharp only for example:

LReg.start = rise[i];
LReg.end = fall[i];

start and end are int's in the end I have a List of the frames I want to extract from a video file. For example in index 0 of LR I have start 48 end 51 In index 1 start 110 end 124

So I want to loop over the List an save as a video file the part of a video file using ffmpeg according to the frame number start and end by jumping to this frames. Jump to frame 48 and create a video file out from frame 48 to 51 including 48 and 51. Then jump forward to the next group of frames 110 and 124 and so on.

The problem is how to use ffmpeg to extract and save video files ?

  • What I mean is to use the frames as start-end positions in the video file and then cut this part of the video file and save it as a video file so in the end I will have the part from frame 48 to 51 as a video file with audio ! Not to extract the frames and create video file from them but using the frames as position to crop the part of the video from. – Dubi Duboni Mar 28 at 0:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.