Comp Sci 1033 Notes
Comp Sci 1033 Notes
- 7-15 seconds to make a good first impression, 4 min for someone to decide to go beyond first impression
- MULTIMEDIA: everything you can hear or see; Media include texts, books, pictures, music, sounds, CDs,
videos, DVDs, MP3 players, iPods, records films etc
- MUTLTIMEDIA (technical): Describes any application or technology that can be used to present: Text,
images, sound, animation video
- We communicate using the five senses
Software applications Delivery on the Internet Via Website Combined into a media application to
inform, educate, entertain
MULTIMEDIA FEATURES
1. INTERACTIVITY
o USER CONTROL over the application
o Experience ACTIVE rather than passive as with television
o Examples: clicking on links on the internet, on-line computer-based exam, driving simulation
2. HYPERLINKING
o INDEX allows for “jumping” around sections
o Vs Sequential: start at beginning and move to the end (books, movies, videos)
HTML has features that allows you to build hyperlinks to other webpages or location on the
same page
3. COMPUTER BASED DELIVERY
o Computer-based multimedia applications INTEGRATE the various media components and ALLOW
interactivity
o Modes of delivery of the applications include: video games, interactive web applications, CD ROM
disks, info kiosks
- Multimedia categories and applications
o Education – offering instruction (CD-Roms for preschoolers, bio in virtual labs)
o Entertainment – largest category (games (CDs/web), proprietary systems (X-box), MP3
players/ipods)
o Inform – Encarta and interactive world atlas (interactive multimedia including sound, video, and 3-
D animation to provide information and illustrate concepts)
o Business – businesses delivering marketing applications and employee training on CD’s and
Internet (job openings, product lines, services)
- How should you deliver the application – WWW vs CD/DVD
MULTIMEDIA COMPONENTS
TEXT ATTRIBUTES
- Dual role:
o VISUAL representation of the message
o GRAPHICAL element
- Use of text in multimedia applications varies on:
o The type of application – educational, entertainment, business
o Audience – children, teens, adults, elderly, ESL (less text for children vs adults)
- Changing the mood of webpage by changing:
o Text attributes – colour, size, font type
o Design/layout/placement of text – bullets, alignment, text in groups
CS 1033A – Final Exam Notes Page 3
- Emphasis can be added by varying text attributes
o Font type – Arial, times new roman
SERIF – tails, script, body paragraphs (times, courier new, century schoolbook, palatino)
Tails = easier to read on paper
SANS-SERIF – no tails, block-oriented, headings, titles (arial, verdana, Helvetica, comic)
Easier to read paragraphs on websites, short headings
o Style – regular, bold italics
o Kerning – space between pairs of letters, measurement expressed in “em” (emphasis) – negative,
0, positive values
Helps align multiple lines
o Tracking – space between all the letters horizontally
o Text Leading – vertical space between lines of text, measured in positive, 0, or negative points
lower value – closer together; higher value – further apart
o Size – pts vs. pixels
o Colour – red, blue, black...
o Special effects – underline, shadows, superscript, subscript
- Text size – Pixels vs. Points
PIXEL (.ppi aka dpi) (in general use pixels) POINTS (.dpi)
unit of measure for monitor resolution (px) unit of measure for printer resolution (pt)
-WEB -WORD
- # of pixels per inch of monitor display -# of dots per inch
-a display setting of: 1280x1024 has 1.3 million DPI, -absolute type size – usually used in printing
800x600 has 480,000 DPI -higher dpi = better resolution
-standard resolution on Mac – 72 dpi -points are a PRINT unit of measure
-standard resolution on Windows – 96 dpi
-PC fonts 25% larger than mac fonts on websites
-fronts more precisely the size you want on the -if web document – text expressed in points
screen -can be displayed much larger or smaller than you
-some browsers will not allow the text size to change expect
(IE – no, FF – yes) -http://www.largnet.on.ca/
-http://www.uwo.ca -Control over the viewing size
-print style sheets created to print text using points *72 pts WILL ALWAYS BE 1 INCH WHEN PRINTED,
*develop websites using the pixel system regardless of what monitor it was processed on
10 px is SMALLER than 10 pts – NOT EQUAL
- In “TRUE COLOR” each pixel represents some color shade – Uses 24 bit representation = 16 million colors
- Color can be expressed in:
RGB Code Hexadecimal Code
Each pixel is represented by 3 values -consists of 16 unique symbols:
-ie: light yellow = <255,255,127> <R,G,B> 0,1,2,3,4,5,6,7,8,9,E, and F
Syntax: -color represented by 6 digits: ie, #FFCC66
Each value ranges from 0-255
256 color shades = 28 bits
-16 million colors in the spectrum (2563)
Red: <255,0,0> Red: #FF0000
Green: <0,255,0> Green: #00FF00
CS 1033A – Final Exam Notes Page 5
Blue: <0,0, 255> Blue: #0000FF
-Web-safe colors: only 1,3,6,9,C,F
- QUANTIZING How many discrete values (bits) will I use to represent each pixel represents the colour
combinations
- Graphic Attributes IMAGE QUALITY: Image resolution, image bit depth
o IMAGE RESOLUTION (ppi/dpi): the number and spacing of pixels in an image
The number of pixels per square inch on a computer-generated display
Ex: if resolution 100 ppi, each pixel 1/100th inch
When you increase the number of pixels, increase quality of detail in the resolution
For different output delivery:
Web – set to 72 dpi (smaller graphics, don’t see detail)
Laser Printers – 300-600 dpi
High end imagesetters – 1200 dpi, 2400 dpi, or higher (newspapers/magazines)
Image size: the physical dimensions of an image
If number of pixels in an image is FIXED:
decreasing the size of an image increases its resolution (crisper edges)
increasing the size of an image decreases its resolution (pixelated, jagged)
.GIF – Graphics interchange format (bitmapped) .JPG – joint photographic experts group (bitmapped)
-attributes file format -attributes file format
-compression -compression
-color resolution -progressive jpeg
-dithering
-interlacing **distorts edges where there is sharp contrast
-transparency ARTIFACTS: noise/specs around the image
-common image format used on the internet
-cross platform
-supports a max of 8-bit color scheme (8 bits/pixel = 256 -stores full color information – max 24 bits/pixel (16
colours) - good for clip art, not photos million colors)
-best for large areas of solid, flat color -best for: blends of color, softer shadow effects and
subtle changes in color
-NOT for well defined lines or sharp contrasts between
colors
-uses: illustrations, logos, text as graphics, cartoons, -uses: photos, computer games, screenshots, stills from
buttons a movie
**tiny file size and limited colors **larger file size but full color scheme
“LOSSLESS” compression – no data discarded during “LOSSY” compression – data is discarded each time file
compression QUALITY KEPT compressed QUALITY DEGRADES
Tagged Image File Formats • Most widely used bitmapped file format
• Supported by image-editing applications, scanning software, page-
(.TIF, .TIFF)
layout programs, and word processing software.
• Supports bit depths from 1 to 32 bits
• Cross platforms for MAC, PC, and Unix systems
• Most commonly used when the output is printed
OPTIMIZE IMAGES: reduce the file size (download time) without compromising image Quality
- Goal: download web page fast – download time effected by graphic file size and file format
o File size
Use smaller sized graphics expressed in “KB” measurement to reduce amount of webspace
needed to store image
Recommended file size for graphics on the internet is no larger than about 100KB,
otherwise it will add seconds to download time
o File Format: .GIF or JPG rather than BMP, TIFF or other
o Most graphics software can export from any extension to .jpg or .gif
Website Startup
- THE INTERNET: a collection of local, regional, national and international computer networks that are linked
together to exchange data and distribute processing tasks
o a global system of interconnected computer networks that use the standardized Internet Protocol
Suite (TCP/IP) to serve billions of users worldwide; a network of networks
o The Internet is hardware - the World Wide Web is software that runs on the Internet!
o TCP = Transmission Control Protocol developed by ARPA (ARPANET)
o Works by circuit switching or packet switching
CS 1033A – Final Exam Notes Page 11
- HOST: a computer on the internet that provides services such as web pages, emails, web storage
- ISP: internet Service Provider Western, Bell, Rogers, Execulink, Costco
o Allows one to connect to the internet
o Company that maintains an internet host computer providing internet access and user account for
accessing internet, e-mail box, webspace to host website
o offers connection via telephone lines, cable TV or personal satellite dish
- data travels from one internet host to another along best route, if links overloaded/out of service –
rerouted
- IP (Internet Protocol) Address: uniquely identifies each computer/device connected to the internet
o An IP Address is 32 bits (4 bytes) wide and may be represented various ways
o Consists of 4 numbers (dotted-quad - most popular) = 192.102.249.3
o Each quad must be between 0-255
o Picks a route for a packet, stopping at routers (devices) which pick the next best
machine/network to send the packet to (the router is the central switching device).
- DOMAIN NAME: the text name corresponding to the numeric IP address of a computer on the internet
o *only what comes after www – ex: uwo.ca (129.100.0.45); csd.uwo.ca (129.199.19.247)
o 2 parts – identifies the NETWORK and the specific COMPUTER
o When browsing a website, IP address determines successful communication between your
computer and website
o A DNS (Domain Name System) maps the domain name to the correct IP address so data can route
to the correct computer
- Finding your IP address – www.showmyip.com, www.whatismyip.com
- Finding IP address of any website – Command prompt type ping and the website
- URL: Uniform Resource Locator – an Address of a web document on a computer
o Every webpage is referred to by a unique URL
- Good features:
o KISS Principle (Keep it simple, stupid)
o Consistency
o Color
o Balance
o Easy to navigate
- CREATING A WEBSITE:
-
1) Planning and Design – Meet with client, decide on colors, fonts,
background, links
o ALWAYS call splash page index.html – that way domain name
leads right to it
2) Implementation – who will maintain? straight HTML programming vs Web page software? complexity, KISS
principle, CRAP principles, Test in Netscape, explorer, firefox, documentation
3) Publish – Web space, use FTP software, upload once website is ready, Back up files
4) Maintenance – who is maintainer, training, update frequently, documentation, backup information
o Make sure allow for frequent updates in design
- Web Authoring Software – WYSIWYG (what you see is what you get)
o Dreamweaver: web page editor and site management tool
SITE MANAGEMENT: organize files/folders, moving files, rearranging pages and updating
links easily
records HTML code as you build
o Interface:
Document window: area where you build webpage
Panels: provide you with commands/properties and characteristics of the current object or
task you are busy with – can move them, most common floating is property inspector
Site panel: folder that you are currently working on, gives filenames, path directory, etc
Property panel: characteristics of objects/text that you have inserted (size, color, font)
o Navigation styles – make sure consistent between pages
- Creating a New Site
o ** ALWAYS identify to Dreamweaver: the folder where your website will be stored through
Manage Sites
New site: no files exist yet, but will be creating them
Folder/files exist: but never worked with files in DW
o Identify Site name (descriptive name) and local root folder (where all pages stored)
o File names:
Do not use spaces in file names and folders (allowed - %20 = space)
Do not use capital letters – PANTHER IS CASE SENSITIVE
.htm (hypertext Markup) – DW versions prior to 8, based on Dos/windows 3.x
.html (hypertext markup language) – DW 8
.shtml (server side includes) means that html document has special commands for the
server to process
.cgi (common gateway interface) – instructions that causes events to happen on server by
executing programs written in perl, c..., used for database access, forms processing
.asp (active server pages) – scripting language developed by MS, script embossed within a
webpage along with its HTML, causes active server side processing
Same function as .cgi but integrated into Active X environment
.php (hypertext pre-processor) – alternative to asap, script language and interpreter used
primarily on Linux web servers, empeded within web page along with its HTML, before
page sent to user that has requested it, server calls php to interpret and perform the
operations called for in the script
o Script: special instructions beyond DW commands
- View Layouts:
o Design view: shows WYSIWYG view
CS 1033A – Final Exam Notes Page 14
o Split: combo of both views (design and code)
o Code View: shows your HTML code
- Page Title Property: associates a general description of what webpage is about – an identity
o Displays title on first line (title bar) when page open in browser window (CHANGE FOR EACH PAGE)
o Important: when printed, identity
- Entering Text
o Automatic line wrapping
o width of paragraph depends on width of web browser window (unless in table or CSS style sheets
o paragraph break – leaves plank line between lines (<p> HTML tag) – Press <ENTER>
o Line Break – no space between lines (<br> HTML tag) – press <SHIFT><ENTER>
- Formatting Text
o Control:
Headers – H1, H2, H3, H4, H5, H6 (predefined approximate sizes and bolds text)
Text color – hexadecimal #
Text Size – use pixel system (pts larger)
Font type – i.e. Times New Roman, Calibri
Special effects – bold, italics, underline etc. – DO NOT USE UNDERLINE
o Indenting paragraphs
- Page properties: (set defaults)
o Set background color, background images
- Graphics – enhances appearance of a web page
o Images from scanner, digital camera, clipart, internet
o Formats – gif (clipart), jpg (photo), png
o Lower download times – use smaller sized graphics, resize larger image in graphics package not DW
o Optimize: color resolution, compression will affect quality and size
- Download time of page: Benchmark: 56k modem speed, max of 30-35 seconds
o See status bar – total size appears in kb (edit>preferences>status bar)
- Image attributes – using property inspector: size, space around image, border, alternative text, alignment,
sharpen, contrast, crop
o Alternative Text: caption in browser, displays text associated with the image
May display while graphic loading, or if using a text only browser
To meet “barrier free access”
For Firefox: insert title=”xxxxx” before alt=”xxxxx”
- LINKING TYPES
o To another web page within your site in your folder – point to the file
o To another website on the internet (start with http://)
Use target field to open in new window – set to “_blank”
Type URL address directly
o To an e-mail address
Select text for hyperlink, insert e-mail link mailto:[email protected]
o Creating an image hyperlink
Select image, in property inspector click on folder, select path directory
o Create multi-links within an image – image map (HOTSPOTS)
Select image, type descriptive name in map field, click on drawing tool, draw an area on
image, click folder and indicate file associated with hotspot
o To jump to a specific spot (other than beginning of the webpage) within a web page (setting
bookmarks, anchors, targets
Create the anchor
Create the link to the anchor
ANCHORS: predefined anchor (#top), returns you to top of page
In IE: no need to define “top”, but do in FF – so ALWAYS DEFINE
To get rid of blue link lines – click on image and change brdr to 0
CS 1033A – Final Exam Notes Page 15
o You can link to files of type: Other than html files, Proprietary software (word, excel – audience
needs software on their system), Images (.gif, .jpg....), Acrobat reader files (.pdf)
- Tables – control web page layout and customize effects
o Table width: expressed as % - covers a percentage of the screen, fixed – width fixed on screen
Assignments – FIXED 780 pixels for width
o Inserting a table – click where you want table to appear, select insert>table...
o Selecting table – place mouse over table’s cell grids until see red outline, single-click
o Merging cells: highlight cells you want to merge, click merge in property inspector
o Splitting cells: highlight cells you want to split, select split icon, enter information
o Table properties: can control – Layout, width (pixels/percent), cell padding (space around contents
of each cell), cell spacing (space between each cell in table), borders (0 = invisible)
o Cell properties: applied to one cell or group of cells: horizontal alignment, vertical alignment,
width/height, cell border (colour), background color
- WEB PUBLISHING – upload/”ftping” completed pages to server with Secure Shell Client or from within DW
o Use FTP software
o File Transfer protocol: an internet standard that allows you to upload and download files with
other computers on the internet
NOT ALL FTP SOFTWARE can connect to a web server (security, firewalls)
Not all FTP clients will connect to a server – Secure Shell, Filezilla, cutepdf, Fugu
o Added features: Via FTP software can delete, rename, move, and copy files on a server
o DOWNLOADING: process of receiving a program, document or file via a network from another
computer - Remote site (server) Local computer
o UPLOADING: Local computer Remote site (server)
o Publishing the website: Need 4 pieces of information from web host:
1. Host name (ex: panther.uwo.ca)
2. Username
3. Password
4. URL/Web page address
- Marketing – include website address in “signature”, on all printed materials, advertisements
- Finding information on the internet: use program that searches internet for topics or keywords and points
you to a site DIRECTORY vs SEARCH ENGINE (85% of people find sites through search engines)
SEARCH ENGINE - Google, Alta Vista, Hotbot SUBJECT DIRECTORY - Yahoo, About.com, AOL
-A program that enables the user to search internet sites -a program that enables the user to search internet sites
- User types a list of keywords -internet sites are organized by subject and topic
-allowing users to choose a subject interest and then
browse the list of resources in that category
- returns a list of the documents where the keywords collection of websites organized by topic
were found
searches a database of information about the internet Human-selected (hand-picked) internet resources are
arranged and classified in hierarchical topics
Uses spiders, webcrawlers to gather database Human editors review webpages, rank them, organize
information of websites; index sites and score pages and them into categorized list with brief descriptions
puts the information into a database
Publisher registers into database, or wait for spider Wait for human editors
Examples: Google, altavista, Hotbot Yahoo, about.com, AOL, Open Directory (open directory
is 1% size of google)
CS 1033A – Final Exam Notes Page 16
- SPIDER/WEB CRAWLER: web software that constantly searches for new web pages and follows any links
- DATABASE: addresses, page titles, significant words, topics
o search engines access the database NOT the internet sites
- META-SEARCH ENGINGE/METACRAWLER: internet search engine which searches other search engines
o Uses searches of other engines, returns the “top” results, doesn’t create its own databases
- Top search providers: google (62%), yahoo, msn
- How does Google work:
1. Gathers the Information: crawl and index billions of pages of WWW, performed by Googlebot, a
“spider” which connects to web servers around the world to fetch documents. Spider gives each
retrieved page a number so it can refer to the pages it fetched
2. Build a database (index): List every document that contains a certain word
3. Rank results: rank them in terms of relevance – google uses many factors in ranking:
a. PageRank algorithm – how many links there are to a web page from other pages, quality of
the linking sites
b. Frequency of keywords in a webpage
c. Appearance – words right next to each other
4. Rank Results: make a list of documents and their scores – take the documents with the highest scores
as the best matches
a. Google also shows snippets from each document that highlight the words the user typed
b. In search ranking, google returns the ranked URLs and the snippets to the user as results page
- SEO: Search Engine Optimization: 3 Components you should look at when you are trying to make your site
more visible are:
o Text:
STEP 1: IDENTIFY THE CRUCIAL KEYWORDS
STEP 2: PUT KEYWORDS IN BEST LOCATIONS (Title; Property Title; Visible Body Text around
and in links; Text that is above the fold (first screen))
Keyword density
o Links: No broken links
o Popularity: Link-popularity and click-through popularity
- CACHED: highlights where searched words are
- How to improve ranking of website in a search engine:
o Ensure pages have full meaningful titles
The most important tag, heading people will see in search engines <title> xxx<title>
DW = the property title – important: UNIQUE property title attribute for every page
o Add a meta ‘description’: description of the site (1-2 lines) which sometimes appears along with
the title in the search results page of some search engines
<meta name=”Description” content =”xxx”>
o Add meta “keywords”: words that your customers would enter to search to find site
Keywords NOT a major factor search engines consider when ranking sites because of abuse
<meta name=”keywords” content=”x,x,x,x,x”>
TIPS: single words, do not repeat more than 3-5 times, use plurals, use important words in
different forms, keep length between 200-500 characters (10-15 words)
List of occurances of each words on a page more important
Special weight to keywords that appear: placement (high vs low), beginning of sentence vs
embedded, proximity, headings, in title, metatag description, alt tags for graphics, generic
metatags keywords, in link text for inbound links, in the URL
o Add your page to the actual search engine site
Search engines: robots used to index sites, use meta tags keywords, title, and alt fields
Directories: robots not used, human editor reviews, therefore, meta tags etc DO NOT help
with ranking – best to describe site accurately – make sure site completely done before
submission
o Get sites that score highly on the search engine results to link to your site
CS 1033A – Final Exam Notes Page 17
Integrate a blog into your website, press release, submit into social network sites,
comment on other people’s blogs
o Check your competitors web pages – determine why theirs ranks higher than yours
- Using Statistics – knowing what visitors like and dislike about website
o ISP – web servers keeps logs of all visitor activity – records requests for files on site, date, time etc
# of visitors: Number of users to your site
Files: number of files retrieved from a web site
Pages: Number of distinct html files/pages looked at (stickiness)
Hits: Number of files sent to a user after a page results (includes graphic files)
- 1990: The first tool for searching the Internet was called “Archie” (short for archives)
o Original implementation written in 1990 by Alan Emtage, Bill Heelan, and Peter J. Deutsch at McGill
o Designed to index FTP archives, allowing people to find specific files
o Word’s first internet search engine
o Downloaded directory listings of all files located on public anonymous FTP servers: creating a
searchable database of file names
- 1991: “Gopher” – by Mark McCahill, Frahad Anklesaria, Paul Linder, Dan Torrey, and Bob Alberti of
University of Minnesota
o Gopher is a distributed document (shared by compuers) search and retrieval network protocol
designed for the internet
o Its goal was similar to that of the world wide web, but now become obsolete
- 1991: World Wide Web developed at CERN – Tim Berners-Lee (Geneva, Switzerland)
o Problem: data difficult to access and exchange due to differing encoding formats and networking
schemes
o Several criteria: system must be flexible, compatible with numerous languages and operating
systems, system must be capable of recording random links between objects; enterting and
correcting information is easily performed
- 1995: April – Yahoo – David Filo, Jerry Yang – more than 10,000 employees
- 1998: September – Google (search engine): Larry Page and Sergey Brin – more than 10,000 employees,
management team most experienced technology professionals in the industry
Only one symbol per layer if the symbol will Can have more than one shape per layer
have a motion tween but be careful, depends on what you want
to morph
VIDEO
- Video uses the power of MOTION and SOUND
- ANALOG VIDEO: smooth electronic waves (ex: Conventional TV)
- DIGITAL VIDEO: converts into digital media (0s and 1s) – benefit of delivering on internet
o Composed of a series of bitmap graphics, each one called a frame
o Motion in a video is an illusion caused by the rapid display of several still images or frames
o Movies display at 24-30 fps computer displayed video display at 12-15 fps
o Characteristics:
Bits store Colour and Brightness data for each video frame
Retains image quality no matter how many times it is copied
Easily manipulated on a pc because stored in digital format
o Kinds of digital videos:
1. Desktop video (DTV): constructed and displayed using a personal computer
2. Web-based video: incorporated in web pages and accessed with a browser
3. DVD-Video: used for commercial DVDs that contain feature-length films
4. PDA vide: small-format video designed to be viewed on a PDA or cell phone screen
o Creating digital video (first storyboard)
CS 1033A – Final Exam Notes Page 21
1. Produce Video Footage. Select equipment for filming videos and use effective filming
techniques
2. Transfer video footage to a computer. Use cable to cable transfer or a video capture card
to move video footage from cameras, videotapes, television, and DVDs to your computer’s
hard disk
3. Edit video footage. Use software to select video segments, arrange them into a video, and
add a soundtrack
4. Store and play video. Select digital video file formats for playback on desktop, web, PDA,
and DVD platforms
o Ready to make a video
1. Pre-Production stage: Planning the video and gathering any resources you might need
2. Production stage: Camera work and sound recording
3. Post-production:
Downloading from camcorder to computer
Editing and/or encoding the finished video
Removing unwanted footage
Arranging desired footage in the correct order
Adding music, titles, transitions, and possibly other effects
Converting (encoding) into the correct format(s)
o MAKING A VIDEO: Post-Production
1. Capture video: download video from camcorder to computer
2. Edit Digital video (using computer, digital video software): edit it, add titles, filters,
transitions, superimpose clips, synchronize audio with video, authoring software: create
menus and interactivity
3. Output Video: output to different file formats – back out to tape, the Web, CD, DVD
- Capturing Video – must be in DIGITAL form to use in multimedia application. Process:
o Video camera (analog video) (analog signal) Video card (digital signal) PC
o Digital camera (digital signal) (Digital signal PC
- Five Factors to consider when making a video:
1) Source Device: camcorders and digital video cameras can be used to capture full-motion images
(analog vs digital)
2) Video Capture Device: video capture card needed (if using analog camcorder from analog to
digital)
o No need if source device outputs a digital signal (such as Firewire or USB)
3) Connecting Leads: Firewire, USB cable
4) Computer: Download video to edit
5) Software: capturing, editing, outputting
- Home video Edit facilities for: editing Home movies, creating TV productions, manufacturing CDs,
authoring and uploading internet material, internet video conferencing
- Video Capture Device
o Analog Camcorder: Need VIDEO CAPTURE CARD
o Digital Camcorder: FIREWIRE connection
1. SOURCE DEVICE:
o CAMCORDER (camera Recorder): device for recording video images and audio onto a storage
device. To use video in a multimedia application, it must be in digital form (1s and 0s)
o Analog vs. Digital camcorders:
CODECS: SPATIAL COMPRESSION (within a frame) CODECS: TEMPORAL COMPRESSION (Between Frames)
-compress each frame individually -just save info on selected frames (keyframes)
-Uses same techniques as JPG compression -all other frames just save the differences from the
previous keyframe
-good when difference between current frame and
keyframe is small
Codecs that do spatial compression are: Animation, Codecs using temporal compression are: Sorenson
PlanarRGB video, H.264
- Compression technology: reduces the file size for transfer and storage while maintaining quality
o Speed transfer improved
- CODECS: video compression/decompression programs – scheme fro coding and decoding
large amounts of data
STORAGE – coded
VIEW – Decoded
o Electronically compress and decompress video and related data
o Benefits:
- end result smaller file size
- large amounts of information can be stored on media or sent by e-mail
- streamed over the internet in smaller packages but still looks good upon playback and
downloads faster
o Two types of compression: lossless vs. lossy
- Speed up downloads – 10 times smaller than uncompressed video files, which would take 3-5x longer
- Codecs for audio/video, streaming media, videoconferencing, mp3s, speech, screen capture
- The codec used to compress is the one needed to view
- Unicast each user gets his/her own stream of video, the server has to send out A LOT of data if several
users are watching at once
- Multicast send the same stream to a bunch of users but then they lose the ability to pause, rewind, etc.
o Download (Progressive): Files downloaded to the user’s computer, and only then begin to play
- Disadvantage: large files, long wait times
- Advantage: permanently stored on users computer
o Progressive download: click begins download, but after some portion had been downloaded movie
starts to play
- Disadvantage: interruptions in watching video, delay times
- Advantage: permanently stored on users computer
- How is it done – player calculates the speed of the download and guesses when to start
playing the portion it has, plan to start late enough that whole movie downloaded by the
time finished watching
o True streaming: file is not downloaded at all – media beings to play as soon as it gets the packet
- Advantages:
Fastest but requires that the server be set up to serve streaming media
Reduces waiting time required of the user
- Drawback: congestion on the net may cause media to stall if can’t keep up with playback
- Rely on sound to enhance multimedia applications: easily capture the attention of users, facilitate easy
learning, set the mood
- On the web sound offers: Background music, narration, sound effects, Record testimonials,
educate/presentations webcast, one-way audio offers on-demand radio listening, conferencing
- What is sound: pressure waves of air
o Visualize the sounds as a series of recurring waves called WAVEFORM
o VOLUME: the higher the wave the louder the sound
o PITCH/FREQUENCY: the closer the waves the higher the pitch
- Sources of sound:
o Pre-packaged (come with computer), purchased/borrowed, create own (recording program,
recording studio for higher quality, electronic instruments captured in MIDI)
- How is sound recorded
o MICROPHONE translates movement into electrical signals (analog) then tape recorder translates
the waveform from an electrical signal on a wire to a magnetic signal on a tape (analog)
o Analog-to-digital converter (ADC): ADC captures a snapshot of the electric voltage on an audio line
and represents it as a digital number that can be sent to a computer
o SOUND CARD: a device that is responsible for transforming the bits stored in an audio file into
music. Does 3 things:
1. Transforms digital bits into analog waves when you play back a waveform audio file
2. Transforms analog waves into digital bits when you make a sound recording
3. Handles compression and decompression, if necessary
- In multimedia application, sound must be in a DIGITAL FORM (string of 1s and 0s)
o Sound can be recorded directly in digital form or an analog sound can be converted to a digital
sound
o To convert analog sounds to digital sounds thousands of SAMPLES are taken of the sound waves
and recorded as bits
o Each dot in the sound wave photo (wavy line) represents ONE audio sample
- Quality of digital recording depends on:
1. SAMPLE RATE: rate at which samples are captured, number of times/sec that the
waveform is measured
1000 samples per second = 1KHZ (1000HZ)****
CS 1033A – Final Exam Notes Page 29
8KHZ voice only, 22KHZ music files, 44.1KHZ used on CD
*lower rate – file smaller since missing sound
2. SAMPLE SIZE: resolution or precision that sample was taken (in bits)
3. CHANNELS: Mono vs Stereo
MONO SIGNAL: one stream of data reproduced equally on both speaker channels,
lose stereo operation
STEREO SIGNAL: consists of two streams of data working together (left and right)
o double the size of mono file
4. CODECS: software programs that greatly REDUCE the audio file size
Use lossy compression: removes redundant data, quality reduced each time
o HIGHER sampling rate and LARGER sample size, the more accurately sound can be digitized
o Quality of the digitized sound gets better as file size increases
o In audacity, settings are in edit>preferences
o 1 min of recording could end up being 10MB
- Sound editing programs characteristics:
o Record sounds in different sample size and resolutions
o Digitize analog sounds
o Create special effects
o Save sounds in different file formats
- Audacity software: edit the clip, combine it with other sound files, Add transitions and FX
o Same for WaveStudio
- PROCESS
o Once digitized sound is in the computer
o Sound editing software
1. Edits: unwanted noise, pauses, trimming
2. Fade-ins, fade-outs, background music, special effects
3. Several found files can be mixed or spliced together
o Save the file in a format intended for the audience application
- DELIVER: to head through speakers, digital sound is sent through a digital-to-analog converter (DAC)
o Delivery method – powerpoint, website, CD
- Sound on the web
o File size: select small sized files, the smaller the file, the faster webpage will download
o File formats: consider platform support, browser support, compressed of uncompressed quality
- Sound file formats: know which are streamed/compressed, large/small, plug-in required
Name the 4 things to watch for when doing any design: CRAP Principles
Name 5 components that make up multimedia? Text, image, sound, video, animation
What measurement would you use for text in creating a Word document? Points
Name 3 relevant events in the history of multimedia.
Arpanet (1969); Intro to world wide web (1991); Mosaic (1993-first graphical browser)
What type of font is this: Hello World (serif)
Question: How many things can you represent with a 5 bit depth (5 bits)?
Question: What is the smallest value that you should set the dpi for an image that you plan to print?
Question: When converting analog to digital what two things to you have to do to analog data?
CS 1033A – Final Exam Notes Page 31
Question: What bit depth do you need to represent a black and white image?
1. What are the chunks of data that are sent over the internet called?
2. True or false, the Internet and the World Wide Web are the same thing?
3. Give an example of a valid IP address.
4. True or false, www.csd.uwo.ca/courses is a domain name?
5. Give 3 valid TLDs
6. www.homer.simpson.com is a valid domain name. TRUE or FALSE
7. Zack&Cody.Love.You.2.com is a valid domain name. TRUE or FALSE
8. What is a message (a webpage or an email message or a file) on the Internet broken down into before it is
sent over the net?
9. Are the following valid IP addresses?
1.1.1.1
126.265.13.10
129.129.129
CS 1033A – Final Exam Notes Page 32
Review Questions: Lecture 06
Question: What is the input we give a web browser?
HTML Code
Question: What is the output from the web browser program?
Webpage on the screen
Question: Can you name 3 web browser programs?
Internet Explorer, Safari. Google Chro,e
Question: Does anyone know how you look at the html that was used to create the page currently
displayed in the browser?
Internet < view source
Question: What name do we give to the start frame and the end frame? (not the frames that are computer
generated, rather the frames drawn by us?)
* Keyframes
Question: Why is the act of generating the frames in between the first frame and the last frame called?
* Tweening
Question: The path the object follows have to be a straight line, FALSE
Question: What software allows us to do path based animation?
* Flash
Stage: rectangular area where the visible motion will take place
Timeline: series of frames in a row and stacks of layers. Indicates key frames, regular frames and empty frames
Shape: basic shapes drawn with the shape tools, line tool or a single letter
CS 1033A – Final Exam Notes Page 33
Symbol: store in a library and can be reused. Changes to the library symbol will result in changes in all of the copies
of this symbol currently on the stage.
Graphic: static graphic, can be used in other symbols
Button: interactive part of animation with user, responds to mouse clicks and rollovers.
Movie clip: reusable piece of animation, can turn a simple animation into a movie clip symbol and
reuse it.
Question: How many frames per second should we have when building an animation for display on a computer?
12-14
Question: Which type of animation uses frames:
Cel Based
Path Based
Both
Neither
Question: If an animation is 40 frames long and the fps is 5, how long will the animation take to play? 8 seconds
Question: Why can your computer sometimes play one .avi file but then not play another .avi file? All depends on
the CODEC
Question: What file format does YouTube use (.AVI, .WMF, etc.) What newer file format is Flash Player pushing
(FL4)
Question: avi is a container file format. True
Question: .avi files will always use the same codec to play them. False
Question: Name 3 ways of reducing the file size of a piece of video before moving it onto your website.
a) Lower frame size (from 680x480 – 320x240)
b) Lower frame rate
c) Choose a CODEC
Which of these will NOT affect the size of a video file?
a. Picture Size
b. Color Resolution
c. Type of font used for credits
d. Number of Frames per second
e. Length of Clip
f. All of the above will affect the size
What is a codec?
CS 1033A – Final Exam Notes Page 34
a. A type of video capture card
b. A piece of software used for compression/decompress of videos and audios
c. A piece of software used to edit videos
d. None of the above