Group Abstract Group Abstract

Message Boards Message Boards

1
|
18.5K Views
|
20 Replies
|
1 Total Like
View groups...
Share
Share this post:

Why Import .AVI does not show any frame?

Posted 11 years ago

I tried Import a avi file but the frames do not appears. I use Math 10,running in windows 8, Asus, i7, 4 gb.

The manipulate runs, but no frames.

The link for the video: https://dl.dropboxusercontent.com/u/37906119/M20141102_053738_PET_1.avi

POSTED BY: Marcelo De Cicco
20 Replies

Great!

POSTED BY: Marcelo De Cicco
Posted 11 years ago

All of the above that you mention and more: ImageMagick

But to keep all commands in the one place, I'd certainly run everything from within Mathematica.

POSTED BY: Jim Baldwin

Yes, sure I do.

Is that possible convert to jpegs and bmps?

Let me see if i get the whole picture, I have an video.avi, I use magik to convert all the frames in gifs (or jpegs, if possible), and then I use Mathematica to filter the converted frames, etc...

POSTED BY: Marcelo De Cicco
Posted 11 years ago

As you probably know the Run command can be used to direct things (run external programs) from within Mathematica.

POSTED BY: Jim Baldwin

Baldwin,

I have think about it, but I was trying using only Math, building a whole packet to video captures of meteors events. But your suggestions are awesome, i didnt know imagemagik, and it will be super for me as I use linux for hard work...

So my next steps will be taking frames before event, after, stacking them, applying some reduction noises etc, and using codes that I am discussing in another issue , as I have to use some (smart) edge detecting for stars, etc.. for capturing only similar things that behave as meteors, as the video above!!

Thanks!

POSTED BY: Marcelo De Cicco
Posted 11 years ago

If your main objective is to do the analysis in Mathematica, then you might consider using another program to get the individual frames and then import into Mathematica for the analysis. One such program is ImageMagick (which runs on multiple platforms) and the command line to convert the avi to a gif (from which Mathematica can import into individual frames) is something like the following at a DOS prompt (well, for Windows, that is):

convert -quiet M20141102_053738_PET_1.avi PET.gif

I was able to import your original .avi file and obtain 126 frames with the "object" showing up in frames 27 through 34. I found the ImageMagick command at

Convert avi to gif

The resulting gif with just frames 27 through 34 is attached.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard
Be respectful. Review our Community Guidelines to understand your role and responsibilities. Community Terms of Use