Codec Error with VideoReader function
59 views (last 30 days)
I was having a problem where Matlab is unable to determine the codec required when I try to read in an .mpg video file. I do not believe it has anything to do with the video file as the video plays fine in Windows Media Player. I tried following some of the troubleshooting methods online, but the first step is usually using mmfileinfo() to find out the information on the video file but that errors as well. I attached screenshots of what I am doing and the errors at the bottom.
Archita P on 2 Jun 2017
It might be the case that you are trying to read in a MAT file with a similar name, which would result in this error.
Which codec are you using to read the video file? You might be missing the codec required to read the video file. Try installing Windows Media Player Codec Pack, which can be found at the following website-
More Answers (2)
Nicky Wu on 28 Aug 2019
don't download anything from that website... it comes with many unnecessary softwares to install on your computer.
Mrutyunjaya Hiremath on 23 Apr 2020
Edited: Mrutyunjaya Hiremath on 24 Apr 2020