Video 2 Subject : T0934 / Multimedia Programming Foundation

advertisement
Video 2
Subject
Session
Tahun
Versi
:
:
:
:
T0934 / Multimedia Programming Foundation
11
2009
1/0
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
Bina Nusantara
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
QT Movie
Movie time
information
Preview and
poster data
• Creation time
• Modification
time
• Time scale
• Duration
• Selection
time
• Selection
duration
• Current time
• Preview time
• Preview
duration
• Poster and
preview time
Bina Nusantara
Spatial
characteristics
• Matrix
• Movie clip
Playback
settings
• Preferred
rate
• Preferred
volume
Track
information
•
•
•
•
Track
Track
…
Track
User data
• User data
Tracks
• Each track accessing one media type (can range over all
the data types QuickTime handles)
Track
Track time
information
Track ID
• Creation time
• Modification
time
• Duration
• Can be used
by an
application to
locate the
track
Bina Nusantara
Track
relationship
Spatial
characteristics
Sound
information
• Alternate
group (can be
used to
construct a
movie with
alternate
tracks of the
same media
type)
• Track width
• Track height
• Track clipping
region
• Track matte
• Matrix
• 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
: userreadable
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
Full code downloadable in Additional Material
Result
Bina Nusantara
Play and Stop Movie
Display The Movie
Bina Nusantara
Play and Stop Movie
Play The Movie
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.
Bina Nusantara
Result
References
• An Introduction to QuickTime. 2008.
http://developer.apple.com/quicktime/qttutorial/overview.
html
• QuickTime Overview. 2007.
http://developer.apple.com/documentation/QuickTime/R
M/Fundamentals/QTOverview/QTOverview_Document/
QuickTimeOverview.html#//apple_ref/doc/uid/TP300009
92-CH1g-Architecture
• QuickTime for Java. 2008.
http://en.wikipedia.org/wiki/QuickTime_for_Java
Bina Nusantara
Download