File Exchange

image thumbnail

Movie Editor

version 1.0 (3.36 MB) by

With the Movie Editor you can load, edit and save movies.

13 Ratings



No License

With Movie Editor you can:
- Load movies (avi's only)
- Cut movies
- Crop movies
- Split movies into separate color layers
- Rotate movies
- Save movies as avi or mpg (thanks to David Foti)
- Save independent frames as bmp, jpg, png, and tif
- You can always stroll through the movie using the slider and edittext underneath the image (maybe somebody can combine it with the 'Interactive MATLAB Movie Player' of Don Orofino.
Maybe you can add a function? The user interface is pretty self-explanatory. But questions are welcome. An example of a before- and after-movie are added to the zip-file.

Note: the settings in the Save Movie window have no influence if the file is saved as mpg; this is a work in progress.

Comments and Ratings (22)

BC Mao

BC Mao (view profile)

In the openmovie.m, change 'aviread' to 'VideoReader' can solve the problem.


Dan (view profile)

Warning: AVIREAD will be removed in a future release. Use VIDEOREADER instead.
> In aviread at 26
In openmovie at 10
In movieeditor>Openpushbutton_Callback at 410
In gui_mainfcn at 96
In movieeditor at 80
Error using aviread (line 148)
Only uncompressed AVI movies can be read on UNIX.

Error in openmovie (line 10)
movieout = aviread([PathName,FileName]);

Error in movieeditor>Openpushbutton_Callback (line 410)

Error in gui_mainfcn (line 96)

Error in movieeditor (line 80)
gui_mainfcn(gui_State, varargin{:});

Error while evaluating uicontrol Callback

I am getting this error when I try to open an .avi file on a Mac OSX 10.7.5. I'm not sure what kind of compression it is looking for, as I have tried various compressions using pal/NTSC. I also tried using a .mov for a completely uncompressed file, but it would not even let me select the file to open it with Movie Editor.


Nic Roberts

Cant get it to work. keep getting the following error;

??? Error using ==> aviread at 84
Unable to locate decompressor to decompress video stream

Error in ==> openmovie at 10
movieout = aviread([PathName,FileName]);

Error in ==> movieeditor>Openpushbutton_Callback at 410

Error in ==> gui_mainfcn at 96

Error in ==> movieeditor at 80
gui_mainfcn(gui_State, varargin{:});

??? Error while evaluating uicontrol Callback

The file I'm trying to open is an 'avi'


Can you stich a series of bmps to generate a mpg, avi, etc.?


support for Linux?

marnsah m

hi... cool stuff but whenever i do cut/crop/rotate or use the frameslider i get error msg such as the one below for cut option:
??? Error using ==> guidata
H must be the handle to a figure or figure descendent.

Error in ==> movieeditor>Cutpushbutton_Callback at 300
guidata(hObject, handles);

Error in ==> gui_mainfcn at 75

Error in ==> movieeditor at 80
gui_mainfcn(gui_State, varargin{:});

??? Error while evaluating uicontrol Callback.

... must i do some settings. i'm currently using the Version 7 R14 SP1. help! tx.

Priya Rajendran

How can i download this.

nameera zaidi

very nice

Daniel Wakefield

An absolute godsend for someone who needs to edit movies for processing. It would be great if the program could crop to rotated rectangles, but even as-is it is excellent.

Eduard van der Zwan(Eduard.vanderZwan@ho Eduard van der Zwan(Eduard.vanderZwan@ho

I rate my program as excellent. Of course and why not? It is the best around. Don't call me narcistic. It is just the truth!

samy daoud


byron torres

very good

Eduard van der Zwan

line 73 says:
if nargin && ischar(varargin{1})
&& is a short circuit version of &. It looks like you have an older version of matlab which can not handle short circiut logical operators. I can not make a suggestion about changes to make the movie editor work on your version because there are manny fucntions only available in matlab 7. The only thing I can suggest is try to get matlab 7.

Wouter Suren

When I run 'movieeditor' it gives the following error:
movieeditor.m Line: 73 Column: 12
Expected a variable, function, or constant, found "&".

What did I do wrong?

Dan Needleman

Thanks! This is great!

Joe Shoe

Have to brush my shoes!

Scusi Gazzo

Perfect way to convert my camera-angels to do triangle bipidal movements on the virtual tour signed multi-platform level in breaking the first timers! Nice! Oh sorry, I need to eat some cheese!

Rico Nazarri

Searched everywhere, but this was the most reliable and helpful one.

many thanks to the author!

Jan-Leendert P Brouwer

Very helpful indeed

Patrick Bateman

Very flexible program to control my dogs virtual reality movies. Very helpfull to convert the different colors to adapt to my powerpoint slides.

Ed, thanx!

Florence Kussener

MATLAB Release
MATLAB 7 (R14)

Inspired by: mpgwrite, progressbar

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today