Cannot upload .mp4 file
Show older comments
I get the following error when I am trying to upload the frames from a recorded video in format .mp4. The video comes from a high speed camera.
Any idea what the issue is? I have upoaded these videos before and it worked, but i can't remember if I had to decode them or not beforehand. I can' even open them in VLC media player.
Error using VideoReader/initReader
Could not read file due to an unexpected error. Reason: Error
Creating Source Reader Reason: The operation on the current
offset is not permitted.
Error in audiovideo.internal.IVideoReader (line 136)
initReader(obj, fileName, currentTime);
Error in VideoReader (line 104)
obj@audiovideo.internal.IVideoReader(varargin{:});
Error in upload_frames (line 5)
vidObj = VideoReader("test.mp4");
1 Comment
Cris LaPierre
on 3 Mar 2025
Check out the discussion in this answer for ideas of what to look into: https://www.mathworks.com/matlabcentral/answers/1910805-linux-mint-ubuntu-matlab-2022b-videoreader-initreader-could-not-read-file-due-to-an-unexpected-err
Accepted Answer
More Answers (0)
Categories
Find more on Video Formats and Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!