How to segment a video into multiple small video chunks?
8 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have a dataset where each vedio need to be segmented into multiple small vedios.
Can some one suggest any matlab code for the same.
I know we can read vedios as below:
videoReader = VideoReader('k.avi');
But this object is giving corresponding image frames.
THANKS
0 个评论
回答(1 个)
Adarshini K
2022-7-21
Vision.VideoFileReader is the input routine that can currently handle audio and video combined, and Vision.VideoFileWriter is the output routine that can currently handle audio and video combined.
The basic mechanism for trimming with the Vision.VideoFile routine is by opening the input video, read and discard frames until you get to the point that you want to keep, and then start reading and writing the output.
Also unable to find proper documentation regarding translation between frame count and time in the case of variable frame rate. For further information you may refer the following documentation: https://www.mathworks.com/help/vision/ref/vision.videofilereader.info.html
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Audio and Video Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!