Problem reading .mov file

Hi,
I have a sample video in .mov format that I want to import in to MATLAB. I used VideoReader function (the documentation on it says it does support .mov format), but got the following error: Error using VideoReader/init (line 450) File could not be read due to an unexpected error. Reason: No width and height for this File Reason: Unknown error 0xC00D36E6
I also tried mmfileinfo function on the same video, but got the following error: Error using mmfileinfo (line 71) Could not get file information.
Has anyone experienced this before? Does this mean the .mov is missing some header information? My OS is Windows 7.
Any help would be greatly appreciated.
Thanks,
Lin

1 comentario

Asim Muhammad
Asim Muhammad el 5 de Nov. de 2016
i have same problem , with windows 10 its ok , but with win 7 its dosent work , plz do share if u got some solution

Iniciar sesión para comentar.

Respuestas (2)

Image Analyst
Image Analyst el 16 de Sept. de 2013

0 votos

Does it work with any other mov file? I haven't done that so post your code if you want anyone to try it.

5 comentarios

lynniz
lynniz el 17 de Sept. de 2013
I used videoObj = VideoReader('video_filename.mov').
I just tried two more .mov files that I downloaded from the web. First video gave me the following error:
Error using VideoReader/init (line 450)
Failed to initialize internal resources.
Error in VideoReader (line 147)
obj.init(fileName);
The second sample video I got off from Apple's website, and it worked with no problems.
Image Analyst
Image Analyst el 17 de Sept. de 2013
Was that video created by the same person, organization, or software as the first mov file? Do the failing videos play in QuickTime? Evidently they have something in them that MATLAB's VideoReader doesn't like and you may have to send them the video to figure out what it is.
lynniz
lynniz el 17 de Sept. de 2013
Thanks for the information. All three mov files are from different sources, meaning created by different person, organization, and software. I have to try the first video in QuickTime when I get back in the office. Thanks again.
lynniz
lynniz el 18 de Sept. de 2013
I was able to play the first failing video in QuickTime. I noticed when I looked at the properties of the video, information like frame width, height, and rate are missing. And those were the information missing for the VideoReader as well. I tried couple other .mov files. The ones with frame width, height, and rate information played in QuickTime, WMP, and VideoReader. The ones don't only played in QuickTime. So does this sound like a codec problem?
Image Analyst
Image Analyst el 18 de Sept. de 2013
Sounds like a coder problem - the coder should have put that info in there. QuickTime's decoder is apparently smart enough to able to figure it out for the first failing video, while the others aren't smart enough.

Iniciar sesión para comentar.

Sean de Wolski
Sean de Wolski el 16 de Sept. de 2013

0 votos

Can you open the *.mov file in Windows Media Player or VLC?

6 comentarios

lynniz
lynniz el 17 de Sept. de 2013
The initial sample video did not work on Windows Media Player.
Sean de Wolski
Sean de Wolski el 17 de Sept. de 2013
Then the video is corrupted, non-compliant, or you don't have the right codecs installed on your system.
lynniz
lynniz el 17 de Sept. de 2013
So if .mov video works on WMP and maybe QuickTime, then it should also work for VideoReader right? Thanks for your help.
Sean de Wolski
Sean de Wolski el 17 de Sept. de 2013
If it meets the platform requirements in the documentation then, yes, it should work if WMP or VLC can read it.
Asim Muhammad
Asim Muhammad el 5 de Nov. de 2016
i am using Win 7 with matlab 2016a , its dosent work for me ,, plz help me . its works with windows 10 but with windows 7 dosent ,
Erik Clark
Erik Clark el 2 de Oct. de 2018
Then what are the right codecs Sean?

Iniciar sesión para comentar.

Etiquetas

Preguntada:

el 16 de Sept. de 2013

Comentada:

el 2 de Oct. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by