Hello, I have set up Matlab R2023b on Rocky 8.9, but I cannot read a video file in matlab. It seems some video decoder packages are missing.
I have searched the matlab error message Could not read file due to an unexpected error. Reason: Unable to initialize the video properties, but only get posts about ubuntu and it seems I have to install package gstreamer0.10-ffmpeg.
On gstream download page, I don’t find a CentOS/Rocky option, maybe it has a different name on CentOS/Rocky? I don’t get further information about that, someone have hints? Many thanks!
Info:
OS: rocky 8.9, Kernel: Linux 4.18.0-513.9.1.el8_9.x86_64 x86_64, Matlab version: R2023b
My matlab script:
v = VideoReader('sample.mp4');
framerate=v.framerate;
numFrames=v.NumFrames;
Error using VideoReader/initReader
Could not read file due to an unexpected error. Reason: Unable to initialize the video properties
Error in audiovideo.internal.IVideoReader (line 136)
initReader(obj, fileName, currentTime);
Error in VideoReader (line 104)
obj@audiovideo.internal.IVideoReader(varargin{:});
Error in video (line 1)
v = VideoReader('sample.mp4');
Package names will vary between distros, so what package name is available in Ubuntu most definitely won’t match in Rocky or any other EL-based distro: