How can I upload a mkv file onto MATLAB?

I am trying to upload a mkv file onto matlab in order to use its depth properties.
If anyone could give me advice on how to upload the file it would be greatly appriciated.

3 comentarios

rachel jiang
rachel jiang el 22 de Ag. de 2023
I am trying to upload a .mkv file onto matlab, version R2022b, in order to use its depth properties.
The videoReader on my version does not support the .mkv format.
Any advice on how to upload the file it would be greatly appriciated.
rachel jiang
rachel jiang el 22 de Ag. de 2023
upload is working...

Iniciar sesión para comentar.

Respuestas (1)

Anurag Ojha
Anurag Ojha el 14 de Feb. de 2023
Hello Henry
As per my understanding, you are facing an issue in uploading a .mkv file onto MATLAB. You can use a Video Reader object to read files containing video data. The object contains information about the video file and enables you to read data from the video.
v = VideoReader('samplefile.mkv');
% Read all the frames from the video, one frame at time
while hasFrame(v)
frame = readFrame(v);
end
Kindly refer to the following documentation for more understanding:
Hope it helps!

Preguntada:

el 28 de Oct. de 2019

Comentada:

el 22 de Ag. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by