How to segment a video into multiple small video chunks?

11 ビュー (過去 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
  1 件のコメント
krishna Chauhan
krishna Chauhan 2022 年 7 月 22 日
Its not working in my MATLAB version of R 2021a.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by