Georgia Institute of Technology Movies Barb Ericson Georgia Institute of Technology April 2006.

Slides:



Advertisements
Similar presentations
2.02A History of Animation 2.02 Develop Computer Animations.
Advertisements

Introducing Java CSC1401. Course Goals Teaching programming concepts In a “real” language.
Georgia Institute of Technology Drawing in Java – part 2 Barb Ericson Georgia Institute of Technology September 2005.
Unit 6 – Multimedia Element: Animation
Georgia Institute of Technology Movies part 3 Barb Ericson Georgia Institute of Technology April 2006.
Video on the Web. Should you add video to your web page? Three main questions 1. How will it enhance the purpose of my page? –Entertain –Explain a process.
Microsoft Office Illustrated Inserting Illustrations, Objects, and Media Clips.
How Images are Represented Bitmap images (Dots used to draw the image) Monochrome images 8 bit grey scale images 24 bit colour Colour lookup tables Vector.
1 ADVANCED MICROSOFT POWERPOINT Lesson 7 – Working with Visual and Sound Objects Microsoft Office 2003: Advanced.
Persistence of Vision What makes movies work is yet another limitation of our visual system: Persistence of vision We do not see every change that happens.
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
Georgia Institute of Technology Speed part 3 Barb Ericson Georgia Institute of Technology May 2006.
Sem 1 v2 Chapter 14: Layer 6 - The Presentation layer.
Digital Camcorder and Video Computer Multimedia. Two most important factors that make up a video Frames per second ( fps ) The resolution ( # of pixels.
Institute of Technology Sligo - Dept of Computing Sem 1 Chapter 14: Layer 6 - The Presentation layer.
Georgia Institute of Technology Introduction to Media Computation Barb Ericson Georgia Institute of Technology May 2006.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Digital Media Dr. Jim Rowan ITEC Monday, August 27.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 8 This presentation © 2004, MacAvon Media Productions Animation.
 Refers to sampling the gray/color level in the picture at MXN (M number of rows and N number of columns )array of points.  Once points are sampled,
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
1-1 OBJ Copyright 2003, Paradigm Publishing Inc. Dr. Joseph Otto Silvia Castaneda Christopher deCastro CSULA Macromedia Flash MX Introduction.
Multimedia and The Web.
Copyright © 2009 Curt Hill The Picture Object Getting and displaying.
Multimedia Elements: Sound, Animation, and Video.
CSC 361/661 Digital Media Spring 2010 Professor Burg.
Video.
Georgia Institute of Technology Movies part 5 Barb Ericson Georgia Institute of Technology April 2006.
 The creation of moving pictures one frame at a time Literally 'to bring to life' e.g. make a sequence of drawings on paper, in which a character's position.
Georgia Institute of Technology Movies part 2 Barb Ericson Georgia Institute of Technology April 2006.
CPSC1301 Computer Science 1 Chapter 14 Creating and Modifying Movies part 2.
Communicating Quantitative Information Is a picture worth 1000 words? Digital images. Number bases Standards, Compression Will [your] images last? Homework:
Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
Authoring and Multimedia Data. Data Sources Data Types Data Compression Techniques Data Security.
“ Animation Through the Ages” Camelia McCallion. Main tasks What is computer animation? Hand drawn (cel) Flick books Animated cartoon Animation process.
Melissa White REMC Updated for Power Point 2007 by Jan Harding Chippewa Valley Schools Used with permission.
Chap 14 Presentation Layer Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Georgia Institute of Technology Creating Classes part 4 Barb Ericson Georgia Institute of Technology May 2006.
CreatingClasses-SlideShow-part41 Creating Classes part 4 Barb Ericson Georgia Institute of Technology Dec 2009.
Movies Barb Ericson Georgia Tech.
Georgia Institute of Technology Movies part 4 Barb Ericson Georgia Institute of Technology April 2006.
Intro-Sound-part1 Introduction to Processing Digital Sounds part 1 Barb Ericson Georgia Institute of Technology Oct 2009.
CreatingClasses-SlideShow-part31 Creating Classes part 3 Barb Ericson Georgia Institute of Technology Dec 2009.
Georgia Institute of Technology Speed part 4 Barb Ericson Georgia Institute of Technology May 2006.
Georgia Institute of Technology Speed part 1 Barb Ericson Georgia Institute of Technology May 2006.
CS305j Introduction to Computing Simple Graphics 1 Topic 11 Simple Graphics "What makes the situation worse is that the highest level CS course I've ever.
Introduction to Graphics. Graphical objects To draw pictures, we will use three classes of objects: –DrawingPanel : A window on the screen. –Graphics.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Introduction to Animation In animation, a series of images are rapidly changed to create an illusion of movement.
Information Systems Design and Development Media Types Computing Science.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Georgia Institute of Technology Drawing in Java – part 2 Dr Usman Saeed Assistant Professor Faculty of Computing and Information Technology North Jeddah.
Getting and displaying
Persistence of Vision What makes movies work is yet another limitation of our visual system: Persistence of vision We do not see every change that happens.
Video on the Web.
Declaring Variables – Mod 4
Building Java Programs
Creating and Modifying Text part 2
Outline Image formats and basic operations Image representation
Media Computation Questions
Declaring Variables – Mod 4
Creating and Modifying Movies
Barb Ericson Georgia Institute of Technology April 2006
Introduction to Media Computation
Introduction to Java, and DrJava
Introduction to Java, and DrJava part 1
Barb Ericson Georgia Institute of Technology April 2006
Barb Ericson Georgia Institute of Technology May 2006
Presentation transcript:

Georgia Institute of Technology Movies Barb Ericson Georgia Institute of Technology April 2006

Georgia Institute of Technology Learning Goals Media Goals –To understand the psychophysics of movies –To generate frame-based animations with simple geometric shapes, text, and images –To do special effects on movies like chromakey Computing Concepts –To explain why movies take so much space –To add parameters to methods to make them reusable –To reuse earlier methods in making movies

Georgia Institute of Technology Movies, Animation, and Video … oh my! We will refer to captured (recorded) motion as movies –Including motion generated by graphical drawings, which is usually called animation –And motion generated by some sort of photographic process, usually called video

Georgia Institute of Technology Psychophysics of Movies What makes movies work is persistence of vision –We don't notice when we blink –Because we retain the last image we saw –If not the world would "go away" when we blink Have three people observe another person –Don’t tell the person what is being counted –Count how many times s/he blinks in two minutes –Do the people who are counting agree?

Georgia Institute of Technology Manipulating Movies Movies are a series of pictures (frames) –Like flip-book animation The frame rate is the number of frames shown per second –16 frames per second is the lower bound on our perception of continuous motion Silent movies were 16 fps Later the movie standard became 24 fps to work better with sound Digital video captures 30 frames per second –Some people can tell the difference between 30 and 60 frames per second Air force studies show pilots can recognize something in 1/200 th of a second

Georgia Institute of Technology Storing Movies One second of a 640 by 480 picture at 30 frames per second (fps) is –640 * 480 * 30 = 9, 216,000 pixels Using 24 bit color that means –3 * 9, 216,000 = 27, 648, 000 bytes or over 27 megabytes per second For a 90 minute film that is –90 * 60 * 27,648,000 bytes = 149 gigabytes

Georgia Institute of Technology Compressing Movies A DVD only stores 6.47 gigabytes –So movies are stored in a compressed format Compressed formats –MPEG, QuickTime, and AVI Don't record every frame They record key frames and then the differences between the frames –JVM records every frame But each frame is compressed

Georgia Institute of Technology Generating Frame-Based Animations We will make movies by –Creating a series of JPEG pictures and then displaying them Use a FrameSequencer –To handle naming and storing the frames Using leading zeros to keep them in order alphabetically –And displaying the movie from the frames Using the MoviePlayer class Other ways to create a movie from frames –Use QuickTime Pro –ImageMagick

Georgia Institute of Technology Code for Rectangle Movie public void makeRectangleMovie(String directory) { int framesPerSec = 30; Picture p = null; Graphics g = null; FrameSequencer frameSequencer = new FrameSequencer(directory); frameSequencer.setShown(true); // loop through the first second for (int i = 0; i < framesPerSec; i++) {

Georgia Institute of Technology Code for Rectangle Movie - Cont // draw a filled rectangle p = new Picture(640,480); g = p.getGraphics(); g.setColor(Color.RED); g.fillRect(i * 10, i * 5, 50,50); // add frame to sequencer frameSequencer.addFrame(p); } // play the movie frameSequencer.play(framesPerSec); }

Georgia Institute of Technology Rectangle Movie

Georgia Institute of Technology MovieMaker Class Add the makeRectangleMovie to a new class MovieMaker Use the following main to test it –Set the directory to any empty directory public static void main(String[] args) { MovieMaker movieMaker = new MovieMaker(); String dir = "c:/intro-prog-java/movies/rectangle/"; movieMaker.makeRectangleMovie(dir); }

Georgia Institute of Technology Out of Memory Error We go through lots of memory when we make movies –Java can run out of memory You can specify how much memory to use –In DrJava click on Edit->Preferences This displays the Preferences Window –Select Miscellaneous under Categories –Enter –Xmx512m –Xms128m to start with 128 megabytes and set the max to 512 megabytes –Click on OK –Click on Reset –You can specify a maximum that is larger than the amount of RAM in your machine It will swap unused items to the disk (virtual memory)

Georgia Institute of Technology How the Movie Works The key part is g.fillRect(i * 10, i * 5, 50,50); The rectangle will be drawn at a different location on a blank picture each time –And FrameSequencer will write out a file with the resulting picture in it With leading zeros in the name to keep them in order The first few calls are g.fillRect(0,0,50,50); g.fillRect(10,5,50,50); g.fillRect(20,10,50,50); g.fillRect(30,15,50,50);

Georgia Institute of Technology Exercise Create a new method in MovieMaker –makeOvalMovie –Animate a filled oval moving from the bottom left of a 640 by 480 blank picture to the top right –Allow the color and size of the oval to be specified as parameters to the method

Georgia Institute of Technology Summary Movies and video are a series of pictures –Shown quickly one after the other The frames rate is the number of frames shown per second –Need at least 16 fps (frames per second) –Digital Video is 30 fps Movies take up quite a bit of space –So they are stored in a compressed form