Professional Documents
Culture Documents
Prepared By:
Kesette G/medhin
Mekelle, Ethiopia
July 2018
Contents
Chapter 1............................................................................................................................................. 1
Multimedia Information Retrieval: ................................................................................................. 1
Document types Monomedium multimedia hypertext hypermedia ............................................. 1
Summary of Practice Questions ...................................................................................................... 3
Chapter 2............................................................................................................................................. 4
Web-based Multimedia .................................................................................................................. 4
What is SVG? ................................................................................................................................... 4
Browser Support ............................................................................................................................. 4
SVG Circle ........................................................................................................................................ 5
SVG Rectangle ................................................................................................................................. 5
SVG Rounded Rectangle ................................................................................................................. 6
SVG Star .......................................................................................................................................... 6
SVG Logo ......................................................................................................................................... 7
SVG Flag .......................................................................................................................................... 8
HTML Multimedia ........................................................................................................................... 9
Browser Support ............................................................................................................................. 9
Common Video Formats ................................................................................................................. 9
Audio Formats ............................................................................................................................... 12
HTML - Embed Multimedia ........................................................................................................... 13
Summary of Practice Questions .................................................................................................... 13
Chapter 3........................................................................................................................................... 14
Multimedia Authoring: Full Multimedia Production .................................................................... 14
The Macromedia Flash Workspace ............................................................................................... 14
Timeline and Layers ...................................................................................................................... 15
Edit Bar .......................................................................................................................................... 15
Panels ............................................................................................................................................ 16
Tools Panel .................................................................................................................................... 17
How to Create an Animated Face Draw Facial Features............................................................... 18
Animate the Facial Features ......................................................................................................... 22
Create a Start button .................................................................................................................... 25
Frames and Key frames ................................................................................................................. 31
How to Create Motion and Shape Tweens ................................................................................... 32
Summary of Practice Questions .................................................................................................... 36
Chapter 4 ........................................................................................................................................... 37
Image Editing and Processing ....................................................................................................... 37
Photoshop Tool Bar....................................................................................................................... 37
Capturing Images .......................................................................................................................... 45
Optimizing your files for Adobe Flash ........................................................................................... 47
Bitmaps ......................................................................................................................................... 48
Vector ............................................................................................................................................ 49
MATLAB......................................................................................................................................... 52
Image Processing .......................................................................................................................... 52
Image Loading and Displaying and Saving .................................................................................... 53
Image Information ........................................................................................................................ 54
Image Restoration Technic Using Average Filter Median Filter.................................................... 54
Average filter................................................................................................................................. 55
Median filter ................................................................................................................................. 56
Morphology................................................................................................................................... 57
Wine filter ..................................................................................................................................... 58
I = imread('a.jpg'); ......................................................................................................................... 58
Summary of Practice Questions .................................................................................................... 58
Chapter 5........................................................................................................................................... 59
Video Production .......................................................................................................................... 59
Ulead Visual Studio ....................................................................................................................... 59
Powerful Editing ............................................................................................................................ 62
Enhanced Timeline View ............................................................................................................... 62
The Multi-Trim Editor.................................................................................................................... 62
Video Studio Editor ....................................................................................................................... 63
Video Filters .................................................................................................................................. 64
Summary of Practice Questions .................................................................................................... 64
Bibliography ...................................................................................................................................... 65
Chapter 1
Example:
Web-based Multimedia
What is SVG?
SVG has several methods for drawing paths, boxes, circles, text, and graphic images.
Browser Support
The numbers in the table specify the first browser version that fully supports
the <svg> element.
<!DOCTYPE html>
<html>
<body>
</body>
</html>
SVG Rectangle
<!DOCTYPE html>
<html>
<body>
<!DOCTYPE html>
<html>
<body>
<svg width="400" height="180">
<rect x="50" y="20" rx="20" ry="20" width="150" height="150"
style="fill:red;stroke:black;stroke-width:5;opacity:0.5" />
Sorry, your browser does not support inline SVG.
</svg>
</body>
</html>
SVG Star
<!DOCTYPE html>
<html>
<body>
<svg width="300" height="200">
<polygon points="100,10 40,198 190,78 10,78 160,198"
style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" />
Sorry, your browser does not support inline SVG.
</svg>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<svg height="130" width="500">
<defs>
<linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%"
style="stop-color:rgb(255,255,0);stop-opacity:1" />
<stop offset="100%"
style="stop-color:rgb(255,0,0);stop-opacity:1" />
</linearGradient>
</defs>
<ellipse cx="100" cy="70" rx="85" ry="55" fill="url(#grad1)" />
<text fill="#ffffff" font-size="45" font-family="Verdana"
x="50" y="86">SVG</text>
Sorry, your browser does not support inline SVG.
</svg>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>HTML/SVG-Example</title>
</head>
<body>
<svg width="150" height="100" viewBox="0 0 3 2">
<rect width="1" height="2" x="0" fill="#008d46" />
<rect width="1" height="2" x="1" fill="#ffffff" />
<rect width="1" height="2" x="2" fill="#d2232c" />
</svg>
</body>
</html>
Activity
Browser Support
The first web browsers had support for text only, limited to a single font in a single
color.
Later came browsers with support for colors and fonts, and images!
Audio, video, and animation have been handled differently by the major browsers.
Different formats have been supported, and some formats require extra helper programs
(plug-ins) to work.
Hopefully this will become history. HTML5 multimedia promises an easier future for
multimedia.
MPEG .mpg MPEG. Developed by the Moving Pictures Expert Group. The first popular
.mpeg video format on the web. Used to be supported by all browsers, but it is not
supported in HTML5 (See MP4).
AVI .avi AVI (Audio Video Interleave). Developed by Microsoft. Commonly used in
video cameras and TV hardware. Plays well on Windows computers, but
not in web browsers.
WMV .wmv WMV (Windows Media Video). Developed by Microsoft. Commonly used
in video cameras and TV hardware. Plays well on Windows computers, but
not in web browsers.
QuickTime .mov QuickTime. Developed by Apple. Commonly used in video cameras and
TV hardware. Plays well on Apple computers, but not in web browsers.
(See MP4)
RealVideo .rm RealVideo. Developed by Real Media to allow video streaming with low
.ram bandwidths. It is still used for online video and Internet TV, but does not
play in web browsers.
WebM .webm WebM. Developed by the web giants, Mozilla, Opera, Adobe, and Google.
Supported by HTML5.
MPEG-4 .mp4 MP4. Developed by the Moving Pictures Expert Group. Based on
or MP4 QuickTime. Commonly used in newer video cameras and TV hardware.
Supported by all HTML5 browsers. Recommended by YouTube.
<!DOCTYPE html>
<html>
<body>
<p>
Video courtesy of
<a href="https://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.
</p>
</body>
</html>
MP3 is the newest format for compressed recorded music. The term MP3 has become
synonymous with digital music.
MP3 .mp3 MP3 files are actually the sound part of MPEG files. MP3 is the most
popular format for music players. Combines good compression (small
files) with high quality. Supported by all browsers.
MP4 .mp4 MP4 is a video format, but can also be used for audio. MP4 video is the
upcoming video format on the internet. This leads to automatic support
for MP4 audio by all browsers.
Example:
<!DOCTYPE html>
<html>
<body>
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
</body>
</html>
<html>
<body bgcolor="pink">
<title> How to embed a video </TITLE>
<embed src="Multimedia.MP4" width= "500" height="500">
</embed>
</body>
</html>
N.B: "Multimedia.MP4 is the path the multimedia object to embede
Activity:
Create an online portfolio for your learning progress and achievement
Hint: create menu, create links and navigation for text, image, Audio, video and animation.
Sample Storyboard for personal online portfolio
Chapter 3
Stage
The Stage is the white area of the workspace (Figure 1). Objects you place on the Stage
will appear in your published movie. The light gray area arround the Stage is called the
workspace. Nothing in the workspace will appear in your finished movie, but you can
place objects there until you want them to appear on the Stage.
Stage Workspace
The Timeline is where you control the images and sounds in your Macromedia Flash 8 document
(Figure 2). The Timeline is divided into frames. You can add content to the frames on the
Timeline.
Figure 2 Timeline
Edit Bar
The edit bar, at the top of the Timeline, lets you quickly navigate between different parts of
your Flash document (Figure 3). It indicates the current object being edited and lets you switch
between scenes and symbols. You can also change the magnification level of the Stage. You
can use the Timeline button to show or hide the Timeline.
Panels provide easy access to controls that help you work with the content in your document
(Figure 4 ). By default, the panels are docked to the right side of the workspace. You can undock
panel groups, add panels to a group, undock individual panels, rearrange the order of docked
panels, and collapse and close panel groups. To undock a panel, drag the panel gripper in the upper
left corner of the panel’s title bar.
Gripper
Figure 4 Panels
The Flash Tools panel is divided into labeled sections for easy tool selection. The Options section
of the Tools panel lets you modify a tool you have selected. If the Tools panel is not visible, you
can display it by selecting Window > Tools. To select a tool, just click it. (You can also use the
shortcut key shown in parentheses in the Tooltip that appears when you rest the pointer over a
tool for a few seconds.)
Pen Text
Oval Rectangle
Pencil Brush
Eyedropper Eraser
Hand Zoom
Stroke color
Fill color
A Flash movie typically plays 12 frames per second. To keep the nose on the Stage for 3 seconds, for example, you
need to insert 36 additional frames on the Nose layer after frame 1, the current frame. (Starting at frame 1, it will
take the movie 3 seconds to reach frame 37, because 1 + 36 = 37.)
20. Select frame 37 on the Nose layer and select
Insert > Timeline > Frame.
Flash inserts frames through frame 37 (Figure 12).
Observe that the playhead (the red rectangle at the top
of the Timeline) is on frame 37 and that the nose is
visible but the eyes have disappeared. At the bottom of
the Timeline, you can see that this movie is currently 37 Figure 12 Frame inserted in Timeline
frames, is set to play at 12 frames per second, and will
play for 3 seconds.
Note: The keyboard shortcut for inserting a frame is F5.
21. Drag the playhead to various frames.
The nose remains visible in frames 1 through 37, but the
eyes appear only in frame 1.
22. To see your movie, drag the playhead to frame 1 and
then select Control > Play.
At this point, not much is happening beyond frame 1.
Because you created the eyes by using a graphic symbol, you can animate them by using a motion tween. To create
the motion tween, you need a start keyframe and an end keyframe containing the same symbol. You can then use a
motion tween to fill the frames between the keyframes.
1. On the Right Eye layer, select frame 37 and select
Insert > Timeline > Keyframe. This will be the end
keyframe.
A keyframe signals Flash that some animation action
Figure 16 Tween menu
begins or ends at that frame.
2. On the Right Eye layer, select frame 37 and drag the
right eye a short distance.
3. Select any frame between frames 1 and 36 on the Right
Eye layer.
4. In the Property inspector, select Motion from the
Tween menu to create a motion tween (Figure 16).
Note: You can also select Insert > Timeline >
Create Motion Tween.
Notice the frames containing the motion tween are now
light blue and contain a solid arrow running from the
start frame to the end frame.
5. Position the playhead on frame 1 and select
Control > Play to play your movie and see the effect of
the motion tween.
The right eye gradually moves from its original position
in frame 1 to the new position in frame 37. Notice that
only the right eye moves.
Note: If you want to change the motion, move only the
symbol in keyframe 37.
6. Select frame 37 on the Left Eye layer and insert a
keyframe.
7. Move the left eye the same distance as the right eye, and
then create a motion tween between the first and last
frames on the Left Eye layer.
Use a shape tween to animate the mouth
Because you created the mouth by using one of the drawing tools (the Line tool) and have not converted the mouth
to a symbol, it is still a shape. You can use a shape tween to animate the mouth.
8. Select frame 37 on the Mouth layer and insert a
keyframe.
9. With the Selection tool, click on the Stage away from the
mouth line to deselect it. Then drag the mouth line into
a bigger smile.
10. To create a shape tween between the first and last
frames on the Mouth layer, click a frame between
frames 1 and 37, and select Shape from the Tween
You can repeat the steps you used to create the Start button, or you can simply duplicate and then modify
the Start button.
22. Make sure the Library panel is open. (If not, select
Window > Library.)
23. Select the Start button symbol in the library.
24. Select Duplicate from the Library panel
options menu in the upper right corner of the
panel (Figure 24). The Duplicate Symbol
dialog box opens (Figure 25).
25. Make sure Button is selected for Behavior.
Name the new symbol Stop and click OK.
26. In the Library panel, double-click the icon for
the Stop symbol to edit the symbol (Figure 26).
Add Sound
1. Insert a new layer below the Actions layer and name it
Sound.
Figure 32 Flash tab of Publish Settings dialog box Figure 33 HTML tab of Publish Settings dialog box
Frames define increments on the Timeline. The order in which frames appear on the Timeline determines the order
in which they appear when a Flash document plays. You can arrange keyframes on the Timeline to edit the
sequence of events in an animation.
Keyframes are special frames in which you define a change in an animation, either by changing an object’s
Overview of Tweening
Macromedia Flash 8 provides two methods for creating an animation sequence: tweened animation
and frame-by-frame animation. Frame-by-frame animation involves a series of keyframes with a
different image in every frame. Although this can be useful for complex animations, Flash is
capable of automatically creating animation by tweening images. The word tween comes from an
animation technique in which an artist draws the starting point of a motion—such as a dog wagging
its tail to the left—and the stopping point of the motion—a wag to the right. Then the artist has to
draw all the stages in between to make the tail appear to move. To tween an element on the Stage
in Flash, you set the starting and ending frames for the element, create a tween between those
frames, and Flash automatically fills in the frames between. There are two types of tweens in
Flash: motion tweens and shape tweens.
Motion tweening
You can use motion tweening to animate any of the following elements:
• A symbol (graphic, button, or movie clip)
Laboratory Manual for Multimedia Application and Development |Kesette 32
G.
• A grouped object (a collection of drawn shapes that have been grouped)
• A text block
When using a motion tween to animate a symbol, you can change the following properties:
• Color (tint)
• Alpha (fade or transparency)
• Position
• Size
For example, you can use a motion tween to create the effect of text floating across the Stage, but
if you want the text to slowly fade as it moves across the Stage, you must first convert the text
block to a symbol. You can then use the Color Alpha setting in the Property inspector to create
the fade.
1. Start Flash and open a new blank document.
2. Draw a shape on the Stage or import an
image by selecting File > Import >
Import to Stage. Notice the shape
appears in keyframe 1 of Layer 1.
3. If the object is a drawn object, select the
Selection tool and double-click the object to
select it.
If the object is an imported image, select the
Selection tool and just click the object to
select it.
4. Select Modify > Convert to
Symbol. The Convert to Symbol
dialog box opens.
Note: You cannot apply motion tweens to
shapes. To apply a motion tween, you must
first convert the shape to a symbol.
5. Type a new name for the symbol in the Name
text box, select the Graphic option, and click
OK.
6. Select frame 10.
7. Select Insert > Timeline > Keyframe
(Figure 1).
(This will make the motion tween last for 10 frames.) Figure 1 Inserted key frame
Notice that when you insert a keyframe,
If you cannot see the tool bar, click Window on the Menu bar at the top of the screen, then click
Tools and the Tools bar will appear. In Photoshop CS3 the Tool bar may be displayed in two
ways the images bellow will illustrate the differences:
Above the toolbar, on the left side, a small pair of arrow indicates the compact and the extended
display:
Layers are managed with the Layers palette (above image). The Layers palette displays a small
thumbnail view of each layer to help identify it. You can turn layer visibility on and off and
completely change the appearance of an image without permanently affecting a single pixel. The
eye icon to the left of each layer controls its visibility. A layer is made visible or hidden by clicking
To delete a layer, click it and drag it to the Trash button in the Layers palette (below). The result
is shown below right.
You can use Photoshop to manipulate your images. You can either import your images from a
digital camera, mobile phone camera, a scanner and/orInternet.
1. Digital Camera:
Simple connect your USB digital camera and copy your images to your hard drive in a
folder that you will be able to locate your images later. Then go to Photoshop, click File >
Open> and locate the images you want to open.
NOTE: Make sure when you saving the manipulated image to rename it in
case you want to use the original image again.
2. Mobile Camera:
Use the USB cable to connect the phone mobile camera with your PC / MAC as we describe
above (digital camera).
3. Internet Images:
Find your images from the Internet and save them to a folder on you hard drive. Make sure
that you will name the folder with a name that will help you later to locate the folder and
open your images. (Refer to project guidelines)
4. Scan your images:
Simple put your image faced on the scanner glass and go to File > Import > and select the
scanner source. In some cases a new pop up window will appear depending the scanner
you have, and you will need to adjust parameters for your image.
NOTE: For images you want to print quality: 150-300 dpi. [dot (pixel) per inch]
For images you want to use for the screen 72 dpi.
There are few ways to optimize and save your files for the adobe flash.
Windows indicating the original image (left) and the new image (right) that will be saved according
to the color resolution.
When you select the color resolution click save and save the image to a new folder (refer to project
guidelines) NOTE If you have transparency in your image background then you will have to click
and select the transparency button. Then your image will be saved as .gif file.
Bitmaps
In computer graphics, a bitmap or pixmap is a type of memory organization or image file format
used to store digital images. The term bitmap comes from the computer programming terminology,
Laboratory Manual for Multimedia Application and Development |Kesette 48
G.
meaning just a map of bits, a spatially mapped array of bits. Now, along with pixmap, it commonly
refers to the similar concept of a spatially mapped array of pixels. Raster images in general may
be referred to as bitmaps or pixmaps, whether synthetic or photographic, in files or in memory.
Eg. Photoshop make use of bitmaps only, images from external sources as digital camera and
scanner.
Vector
Vector graphics is the use of geometrical primitives such as points, lines, curves, and shapes or
polygon(s), which are all based upon mathematical equations, to represent images in computer
graphics. Vector graphics formats are complementary to raster graphics, which is the
representation of images as an array of pixels, as it is typically used for the representation of
photographic images. There are instances when working with vector tools and formats is best
practice and instances when working with raster tools and formats is best practice. There are times
when both formats come together. An understanding of the advantages and limitations of each
technology and the relationship between them is most likely to result in efficient and effective use
of tools.
E.g. Flash and Illustrator can both use bitmaps and vector images.
MATLAB
Image Processing
Image Information
Average filter
Median filter
Morphology
Wine filter
Steps
Average filter
I = imread('a.jpg');
n = imnoise(I,'salt & pepper',0.02);
fn = filter2(fspecial('average',7),n)/255;
fo = filter2(fspecial('average',3),I)/255;
figure (1)
subplot (1, 4, 1)
imshow (I)
title ('ORIGINAL IMAGE')
subplot (1, 4, 2)
imshow (n)
title ('NOISY IMAGE')
subplot (1, 4, 3)
imshow (fn)
title ('filtered noisy image')
subplot (1, 4, 4)
imshow (fn)
title ('filtered original image')
I = imread('a.jpg');
n = imnoise(I,'salt & pepper',0.02);
mof = medfilt2(I,[5 5]);
mnf = medfilt2(n,[5 5]);
figure (1)
subplot (1, 4, 1)
imshow (I)
title ('ORIGINAL IMAGE')
subplot (1, 4, 2)
imshow (n)
title ('NOISY IMAGE')
subplot (1, 4, 3)
imshow (mof)
title ('MEDIAN ORIGINAL FILTERING')
subplot (1, 4, 4)
imshow (mnf)
title ('MEDIAN NOISY FILTERING')
I = imread('a.jpg');
n = imnoise(I,'gaussian',0,0.05);
wof = wiener2(n,[3 5]);
wnf = wiener2(n,[5 5]);
figure (1)
subplot (1, 4, 1)
imshow (I)
title ('ORIGINAL IMAGE')
subplot (1, 4, 2)
imshow (n)
title ('NOISY IMAGE')
subplot (1, 4, 3)
imshow (wof)
title ('WIENER ORIGINAL FILTERING')
subplot (1, 4, 4)
imshow (wnf)
title ('WIENER NOISY FILTERING')
Video Production
Corel Video Studio (formerly Ulead Video Studio) is a video editing software package for
Microsoft Windows distributed by Ulead Systems (a division of Corel).
To start, users hook up their DV camcorder and click Start Scan. The software scans the tape at
up to 11x speed depending on the camcorder. Users can then review the
thumbnails to select the clips they want included on their disc. The next step is
to select a theme template, choose quality and burning options, and click “Start”
Finally, users can save the scan results, called digests, for reference or re-use. Printing
the digests is a great way to create a record of all the shots on a tape.
The Video Studio Movie Wizard is perfect for combining still images and video clips into
photo/video “clip shows.”
The new “Import from Mobile Device” feature makes it easy to grab photos and video
from cameras, video enabled cell phones and other devices.
For video clips, the interface provides thumbnail or enlarged playback as well as trimming
options.
In Video Studio 11 Plus, users have up to 6 overlay tracks available. This is useful to
create plenty of impressive picture-in-picture and montage effects.
Auto Tone Adjustment evens out the exposure range for video with contrast problems or
which was shot in low light. These tools were adapted from the HDR technology in Ulead’s
flagship image editor, Photo Impact.
The quality of video that users wish to work with varies greatly. Backing up old VHS
tapes to DVD is an excellent way to preserve family memories, but tape degrades and
the resulting images are often noisy and grainy.
Also, people often want to repurpose digital footage that has been compressed a few
times, leaving blocky artifacts on the screen. VideoStudio 11 has several corrective
filters to o get the best from heavily compressed or older material.
DeBlock Filter