need for tool for video processing
Question
I have a 2giga mpeg file of people runnig,jogging,walking etc. in it. I will use it in a image classification project but I need to segmentate the video depending on per person an per action.
for example; there are 25 people in video which repeat these actions in order
1st person -runs -walks
2nd person
-runs -walks
and goes on....
and what I want is to have 2 different mpeg file for each person such as; firstperson_runs.mpeg firstperson_waves.mpeg
so I need a tool to split big file into these files. Splitting shall be due to time.
such as; pick t1:start of action pick t2:end of action create a new video from big file for the interval t1 and t2
of course I will select time intervals for each video.
OS:Winxp pro
if it can be done by matlab ,can you describe it? any help???
Solution
Matlab can do such video split operations. There are two built in functions (aviread and mmreader) for reading video files. Both will create objects which contain the individual frames of the video. You can save these as separate frames or make a new video out of by using avifile.
OTHER TIPS
I imagine there are a number of tools available to do this without MATLAB, but if you really want to use MATLAB I would check out these submissions on The MathWorks File Exchange:
- Gerald Dalley's videoIO Toolbox for Matlab
- Micah Richert's mmread
- David Foti's mpgread and mpgwrite
EDIT:
As mentioned by M456, you can also use the built-in function MMREADER for creating a multimedia reader object for your movie file (and subsequently reading selected movie frames from it with the READ method). However, I don't know which version of MATLAB this function was introduced in. It is in versions 7.7 and 7.8 (R2008b and R2009a, respectively), but it is not in version 7.1.