필터 지우기
필터 지우기

How to segment a video into multiple small video chunks?

조회 수: 6 (최근 30일)
krishna Chauhan
krishna Chauhan 2022년 7월 20일
댓글: krishna Chauhan 2022년 7월 22일
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

답변 (1개)

Adarshini K
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 CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by