Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is it possible to clip particular video by entering time?

For example:-
If video of 1 hour starting from 1:00-2:00 clock and if we enter time 1:10 T0 1:45 is it possible to clip video in that time and to play? If yes then how is it possible?
Please tell. If algorithm is there please provide link.
Posted
Updated 22-Aug-11 4:01am
v2
Comments
LittleYellowBird 22-Aug-11 10:02am    
Hi, I have changed your all capitals to normal 'upper/lower' case as all capitals looks like shouting and it is unlikely to encourage people to help you.

Yes it is possible, but it's not as simple as applying an algorithm. I've use FFmpeg[^] in the past to play around with videos, you might wan to give it a look. There are probably some alternatives, but I don't know any other library than FFmpeg.
 
Share this answer
 
You have to keep in mind that video from surveillance will be compressed, so each frame is a different size.

Without first indexing the video footage, their is no way to extract video based on timecode. You must first iterate over the video, frame by frame, so that you have an indexed view of the video. This is the only way to do it.

As mentioned, you can use a library like FFmpeg to help you out. I've also created my own objects to represent videos and frames for this very purpose when working with mjpeg footage; I had to get the format spec directly from the engineers of the video capture card and use a RCL wrapper to extract the frames.

If you can inject your own code into the pipeline, you can do this heavy-lifting work in real time as the video is captured and save the indexes in a 'buddy' file or database.

Cheers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900