Video 2 Subject:T0934 / Multimedia Programming Foundation Session:11 Tahun:2009 Versi:1/0
Bina Nusantara Learning Outcomes In the end of this session, students must be able to: –Understand the basic principal of QuickTime movie –Identify and apply basic QuickTime for Java syntax to manipulate media files
Outline Quicktime Quicktime for Java API Bina Nusantara
QuickTime (QT) QT is a multimedia development framework originally developed for the Apple Mac, but is now also available for Windows QT has tools to capture and edit media, apply effects, and to export to different formats Bina Nusantara
QuickTime Architecture QuickTime comprises two main managers, Movie Toolbox and Image Compression Manager, plus a set of built-in components. Movie Toolbox –lets an application store, retrieve, and manipulate time-based data and provides functions for editing movies Image Compression Manager –provides a device-independent and driver-independent means of compressing and decompressing images and sequences of images, thereby minimizing the storage requirements for any application that works with images Bina Nusantara
QuickTime Architecture Bina Nusantara
QT Support of Media Format QuickTime supports many media formats, effects, and codecs Bina Nusantara
QT Movie Files QT has three kinds of movie Files –Reference Movie file –Movie file –Self-contained movie file Bina Nusantara
QT Movie QT Movie >< QT Movie files QT Movie is a container that holds all of the information needed to organize any time-based data (audio, video, image, etc), but not the data itself. Bina Nusantara
QT Movie Structure QT Movie as QuickTime's central data structure May contain multiple tracks Bina Nusantara QT Movie Movie time information Creation time Modification time Time scale Duration Selection time Selection duration Current time Preview and poster data Preview time Preview duration Poster and preview time Spatial characteristics Matrix Movie clip Playback settings Preferred rate Preferred volume Track information Track … Track User data
Tracks Each track accessing one media type (can range over all the data types QuickTime handles) Bina Nusantara Track Track time information Creation time Modification time Duration Track ID Can be used by an application to locate the track Track relationship Alternate group (can be used to construct a movie with alternate tracks of the same media type) Spatial characteristics Track width Track height Track clipping region Track matte Matrix Sound information Volume Stereo balance values (if the track is an audio track) Edit data Edit list (which identify portions of the media the track uses) Media information Media User data User data (ex : user- readable name for the track)
QT for Java (QT4Java) QT4Java provides a set of cross-platform APIs which allows Java developers to build multimedia, including streaming audio and video, into applications and applets Bina Nusantara
Display an Image Bina Nusantara Result Full code downloadable in Additional Material
Play and Stop Movie Bina Nusantara Display The Movie
Play and Stop Movie Bina Nusantara Result Stop The Movie To Reverse and Fast Forward, we can use this function : Change n to negative value to reverse. Change n to >1 value to fast forward. Play The Movie
References An Introduction to QuickTime html html QuickTime Overview M/Fundamentals/QTOverview/QTOverview_Document/ QuickTimeOverview.html#//apple_ref/doc/uid/TP CH1g-Architecture M/Fundamentals/QTOverview/QTOverview_Document/ QuickTimeOverview.html#//apple_ref/doc/uid/TP CH1g-Architecture QuickTime for Java Bina Nusantara