Video Reader: Failed to initialize internal resources
84 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Robert Daly
el 10 de Jul. de 2023
Comentada: Robert Daly
el 11 de Jul. de 2023
I am trying to read an MP4 video file from a GoPro camera.
The following error shows up when using VideoReader...
v = VideoReader(fullfile(files(ia).folder,files(ia).name));
Error using VideoReader/initReader
Failed to initialize internal resources.
Error in audiovideo.internal.IVideoReader (line 136)
initReader(obj, fileName, currentTime);
Error in VideoReader (line 104)
obj@audiovideo.internal.IVideoReader(varargin{:});
The video codec is MPEG-H Part2/HEVC (H.265) (hcv1)
The audio codec is MPEG AAC Audio (mp4a)
My guess is that H.265 unsupported? Can anyone confirm?
The audio codec appears to be supported.
The video plays on VLC so I assume I have the codec installed.
I am using Windows 10 Enterprise 22H2, Matlab 2022a
Is there anything that can be done to get VideoReader to work with this file?
0 comentarios
Respuesta aceptada
Deep
el 10 de Jul. de 2023
Yeah, it seems that H.265 is unsupported for this. You can use ffmpeg to convert it to H.264 for your task.
ffmpeg -i input.mp4 -vcodec libx264 output.mp4
If you want to do it from MATLAB, there's ffmpeg toolbox. I'd suggest looking into its usage and then using VideoReader on the converted file.
Más respuestas (0)
Ver también
Categorías
Más información sobre Audio and Video Data en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!