需要视频处理工具

时间:2022-10-14 21:44:31

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.

我有一个2giga mpeg文件的人runnig,慢跑,走路等。我将在图像分类项目中使用它,但我需要根据每个人的每个动作来分割视频。

for example; there are 25 people in video which repeat these actions in order

例如;视频中有25人按顺序重复这些操作

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

而我想要的是每个人都有2个不同的mpeg文件,如; 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

如;选择t1:动作开始选择t2:动作结束从大文件创建一个新视频,间隔为t1和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???

如果它可以通过matlab完成,你能描述一下吗?任何帮助???

2 个解决方案

#1


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.

Matlab可以做这样的视频分割操作。有两个内置函数(aviread和mmreader)用于读取视频文件。两者都将创建包含视频的各个帧的对象。您可以将这些保存为单独的帧或使用avifile制作新的视频。

#2


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:

我想有很多工具可以在没有MATLAB的情况下做到这一点,但如果你真的想使用MATLAB,我会在MathWorks文件交换中查看这些提交:

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.

如M456所述,您还可以使用内置函数MMREADER为电影文件创建多媒体阅读器对象(然后使用READ方法从中读取所选的电影帧)。但是,我不知道引入了哪个版本的MATLAB函数。它在版本7.7和7.8(分别为R2008b和R2009a)中,但它不在7.1版本中。

#1


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.

Matlab可以做这样的视频分割操作。有两个内置函数(aviread和mmreader)用于读取视频文件。两者都将创建包含视频的各个帧的对象。您可以将这些保存为单独的帧或使用avifile制作新的视频。

#2


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:

我想有很多工具可以在没有MATLAB的情况下做到这一点,但如果你真的想使用MATLAB,我会在MathWorks文件交换中查看这些提交:

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.

如M456所述,您还可以使用内置函数MMREADER为电影文件创建多媒体阅读器对象(然后使用READ方法从中读取所选的电影帧)。但是,我不知道引入了哪个版本的MATLAB函数。它在版本7.7和7.8(分别为R2008b和R2009a)中,但它不在7.1版本中。