Interfacing new Azure Kinect with Matlab and opening associated .mkv files

I have tried using https://github.com/jrterven/KinZ-Matlab but can't quit the recording.
Also I am trying to read a .mkv file in Matlab using VideoReader but again get an error.
v = VideoReader('C:\users\gaila\Documents\output.mkv')
Error using VideoReader/initReader (line 734)
Unexpected exception in plug-in: 'No Frame Rate for this file Reason: The requested attribute was not found.'
Error in audiovideo.internal.IVideoReader (line 136)
initReader(obj, fileName, currentTime);
Error in VideoReader (line 104)
obj@audiovideo.internal.IVideoReader(varargin{:});
Any input would be much appreciated!

Answers (1)

Hi Gail,
As per my understanding of your query, you are experiencing an issue with the VideoReader Function. I tried to run the VideoReader function with a sample .mkv file on MATLAB R2021a.
v = VideoReader('Sample.mkv')
The VideoReader seemed to be working completely fine and the error is not reproducible on my end.
I would suggest you check whether your output.mkv file for any possible errors or breakages.

Asked:

on 17 Mar 2021

Answered:

on 24 Mar 2021

Community Treasure Hunt

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

Start Hunting!