Group Abstract Group Abstract

Message Boards Message Boards

Analyzing .mov video file for RGB color

GROUPS:
Hi,

 I am a newbie to Mathematica, just started yesterday. I am trying to import a .mov video file, convert it to images and analyze it for RGB color.

But when I do
Import["/Users/apple/Downloads/Sample-7.MOV", "ImageList"]
Mathematica crashes.

Can anyone please help me with how to go about this, thanks in advance
POSTED BY: greenchic
Answer
2 months ago
Perhaps the (uncompressed) imported data exceeds you memory capacity.  Try importing just a frame or a few frames.
Import["/Users/apple/Downloads/Sample-7.MOV", {"ImageList", 1}]
Import["/Users/apple/Downloads/Sample-7.MOV", {"ImageList", Range[1, 10]}]
Without a reproducible example, it's hard to know if this is exactly the issue or not.
POSTED BY: Michael Rogers
Answer
2 months ago
It's certainly possible (http://blog.wolfram.com/2013/08/13/a-visit-to-disneys-magic-kingdom/) to analyze movies frame by frame.  According to that blog post, each movie took a day to process. But I think that Mathematica likes to load everything into memory where possible, so movies are going to be difficult to work with unless you divide them into smaller pieces. Try loading a few frames at a time, as Michael suggested.
It's also possible that the MOV file has problems - many things go into a MOV container...
POSTED BY: C ormullion
Answer
2 months ago
I have done something similar to this but rather than importing the .mov file I had better luck exporting each frame of the movie to a folder of still images and than running the analysis on the stills.
POSTED BY: Jon Rogers
Answer
2 months ago