Tuesday, April 24, 2012

.mat to .avi conversion bugs

Animations and Modelling are the order of the day for Earth Atmospheric Scientists. Matlab movies although visually pleasing sometimes end up being a trouble maker. It is not difficult to create a movie out of 50 images in Matlab. But what makes it challenging is to retain the same fps(frames per second) after we convert .mat to .avi or .mp4 file. When i did this, my fps spec in Matlab had no impact on the .avi file i had created. 2 frames per sec or 10 frames per sec appeared the same when the .avi file (created in Matlab) was played in media player. Neither did media player allowed me to change the fps. If you are thinking to regenerate them using any other movie format, forget it! Decoders can go wrong anywhere ! So, buckle up! Here we go heading towards the solution! Microsoft GIF animator. Import your file, select all images in the left, change to animation tab , specify the repeat mode-->switch to image tab--> wow! there it is-! change the number of frames per second, width, height and you are done! Insert into MS-PPT- as sweet as a nut! I'm not sure if this is a Matlab bug. Any other suggestions from readers are most welcome! Thanks in advance! Enjoy Modelling!

No comments:

Post a Comment

I was bullied and harassed on Facebook.

Online harassment and gas lighting are fearful experiences that many of us struggle to speak in public. I recently got verbally abused, thre...