Effacer les filtres
Effacer les filtres

How to segment a video into multiple small video chunks?

12 vues (au cours des 30 derniers jours)
krishna Chauhan
krishna Chauhan le 20 Juil 2022
Commenté : krishna Chauhan le 22 Juil 2022
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

Réponses (1)

Adarshini K
Adarshini K le 21 Juil 2022
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 commentaire
krishna Chauhan
krishna Chauhan le 22 Juil 2022
Its not working in my MATLAB version of R 2021a.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by