LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

record one video of 10 last seconds

Hi, 

 

I have a video of 1 minutes for examples in an .avi file. I read this video and I want record the 10 last seconds. I know the number of Frames per second so I do Frames per second * 10 seconds. I know also the number of frames of the video.

Example: Frames per second is 30 f/s and there is 1500 frames. I need only the 10 last seconds of my video. I do 30*10=300 and 1500 - 300=1200 as it show on my .vi. The problem is in my For boucle. The i of iteration start to 1200 instead of 1 and the video isn't recorded. Why the iteration doesn't start to 1 and start to 1200.

 

Thanks 

Download All
0 Kudos
Message 1 of 2
(2,505 Views)

Hi, I have some comments.

1. I think that you have a lot of things that you don't need, the image buffers for example.

2. If you just want to save the last 10 seconds, you can start reading the frame 1200 and writing it to your new video.

3. The crash example last only 6 seconds

4. Wire the f/s of the creat AVI

5. Close the saved AVI

6. I didn't have problem with the iteration and saving the AVI.

Rodrigo Cuenca
www.cidesi.com

0 Kudos
Message 2 of 2
(2,450 Views)