eScience Lectures Notes : Video


Slide 1 : 1/31 : From New Media to The Web (index.en.html)

COMP1710 Tools for New Media and Web

 

Video for The Web

Click here to start or press 's'tart or 'i',

then 'n'ext or 'b'ack

Click here for the 't'able of Content


Slide 2 : ToC : Video (tableOfContent.en.html)

Table of Contents (31 slides) for the presentation :

Video


Slide 3 : 3/31 : Video for The Web (intro.en.html)

In this lecture : Video for The Web

 


Slide 4 : 4/31 : Video on The Web ... (introduction.en.html)

Video on The Web ...

The highest possible multimedia experience for today : image, voice, music, motion

Not always more efficient, but often more attractive, even fascinating

Easier to get away from a book than from the TV (?)

Video on the web remains at an early stage : Bandwidth & Architecture issues

some application on local area networks (within a school, university, organisation)

E.g. : IP Phone Training Video

new and better codecs

Convergence again ?


Slide 5 : 5/31 : Video on The Web - What for ? (whatFor.en.html)

Video on The Web - What for ?

Telling a story

Entertaining viewer (Simpsons and such)

Explaining a process (Science)

Discovery channel

Personalizing the Web experience

Live events

Steve Jobs keynote

On demand Video


Slide 6 : 6/31 : Video : From TV to DV (video.en.html)

Video : From (4/3)TV to DV

Television in Australia : PAL : 625 lines at 25 fps

NTSC (USA, Canada, Japan) 525 line, 30 fps

Secam : in France and other countries that wanted to be imcompatible with the rest of the world :-)

Albania, Benin, Bulgaria, Congo, former Czechoslovakia, Djibouti, Egypt, France, French Guiana, Gabon, Greece (also PAL), Guadeloupe, Haiti, Hungary, Iran, Iraq, Ivory Coast, Lebanon, Libya, Luxembourg (also PAL), Madagascar, Martinique, Mauritius, Monaco (also PAL), Mongolia, Morocco, New Caledonia, Niger, Poland, Reunion, Romania, Saudi Arabia (also PAL), Senegal, Syria, Tahiti, Togo, Tunisia, the former USSR, Viet Nam, & Zaire.

PAL :  (Phase Alternation by Line)

Line Frequency 15.625 kHz (1/((1/25)/625))
PAL countries include: Afghanistan, Algeria, Argentina (PAL-N), Australia, Austria, Bahrain, Bangladesh, Belgium, Brunei, Cameroon, Canary Islands, China, Cyprus, Denmark, Finland, Germany, Ghana, Gibraltar, Greece (also Secam), Hong Kong, Iceland, India, Indonesia, Ireland, Israel, Italy, Jordan, Kenya, North Korea, Kuwait, Liberia, Luxembourg (also Secam), Madeira, New Zealand, Nigeria, Norway, Oman, Pakistan, Paraguay (PAL-N), Portugal, Qatar, Saudi Arabia (also Secam), Sierra Leone, Singapore, South Africa, Spain, Sri Lanka, Sudan, Swaziland, Tanzania, Thailand, Turkey, Uganda, United Arab Emirates, United Kingdom, Uruguay (PAL-N), Yemen (the former Yemen Arab Republic was PAL, and the former People's Democratic Republic of Yemen was NTSC, Yugoslavia, Zambia, Zimbabwe.
Brazil wanted to be really different and uses PAL-M which is essentially to PAL at NTSC line and frame rates.

The signal sent is analog

Continuous stream of data

For more about Pal/Secam vs NTSC : http://www.videointerchange.com/pal_secam_conversions.htm


Slide 7 : 7/31 : DV 720x576 an Intermediate Codec (DV.en.html)

DV (PAL): 720x576 : one possible source : an "Intermediate Codec"

or 702x576 (camera) or 768x576 (square pixel picture source on a computer to squish into the DV format) or 704x576 (DVD)

Snapshop ( "Frame" ) of the event 25 time per second

414720 pixel per frame - 10 Mpixel per second - 36-GB per hour per per sample (6 to 12 samples per pixel, 8 bits per samples) - 214 - 428 GB per hour without the sound !

As usual, compression is there to improve such raw numbers to 3 MBytes/sec or 25 Mbits/sec (1 GB = 5 min)

Like MJPEG, DV is an intra-frame compression format. They both compress only a single frame at a time.

Data saved on DV cartridge

Digital video's audio : CD quality

DV NTSC : 720x480 at 29.97 fps (=> 640x480)

For More about Digital Video and conversion issues (and the fact that pixels are often not square) : http://www.uwasa.fi/~f76998/video/conversion/

For More about Digital Video and Image Formats : http://www.zerocut.com/tech/vid_img.htm

The Best introduction to Digital Video for the Web : http://stream.uen.org/medsol/digvid/html/mainmenu.html


Slide 8 : 8/31 : Compression Methods (compressionMethods.en.html)

Compression Methods

Frame size (from 720x576), then application of a video codec

low res DVD : 352x576

VCD, DVD, H.261 + H.263 (CIF) : 352x288

H.261 + H.263 (QCIF) : 176x144

NTSC : 320x240

Repetition and patterns

Averaging

Range Reduction

Frame difference

Key frame (every 100 frames or so) + differences

The Best introduction to Digital Video for the Web : http://stream.uen.org/medsol/digvid/html/mainmenu.html

 


Slide 9 : 9/31 : Downloading vs Streaming (distrisbutionTypes.en.html)

Downloading vs Streaming

Downloading

Get the file on the hard disk, then play it

Fast-Start Downloading

Data remains on the hard disk for repeated viewing without a need for bandwidth consumption

Start relatively quickly if the compression is adjusted to the user available bandwidth (could be done automatically)

Those two first solutions work with any web server

Streaming


Slide 10 : 10/31 : Streaming (streaming.en.html)

Streaming

(+) Display as soon as it arrives (after some data buffering)

(-) Lower quality, as dropped data is tolerated

(+/-) Not stored on the computer

(+) Easier to deal with copyright issues

(-) You have to reload it again and again

(+) Direct access to any point in the video (especially good for long video)

(+) Live events (need to work with multicasting)

Really need to adjust the data rate to the user bandwidth

Use of a special protocol : Real Time Streaming Protocol : RTSP


Slide 11 : 11/31 : Sources (sources.en.html)

Sources

Different video sources

N.B. : Copyright issues : stronger than ever

VIDEO FORMATS

  • 1-inch reel
  • Beta-SP *
  • Beta
  • Beta Digital
  • DV *
  • DVC-Pro 25 *
  • DVC-Pro 50 *
  • DVCam (Sony)
  • U-Matic 3/4in. Cassette
  • 2-inch Quad
  • S-VHS *
  • VHS *
  • D-VHS
  • M2
  • 8mm
  • Hi8
  • Digital 8mm
  • D1
  • D2
  • D3
  • D4
  • D5
  • D6
  • DVD-Videodisc
  • DVD-ROM
  • CD-ROM
  • Laser Videodisc CAV
  • Laser Videodisc CLV
AUDIO FORMATS
  • 1-inch reel
  • 2-inch 24 track
  • 1/4in. reel
  • audio cassette 8
  • LP Record
  • 8 track
  • 8mm/8track
  • DAT Tape *
  • CD-Audio *
  • CD-ROM

Source : http://stream.uen.org/medsol/digvid/html/5B_videoformats.html


Slide 12 : 12/31 : Using a video Camera to Shoot Video (camera.en.html)

Using a video Camera to Shoot Video

Know your purpose

Use a tripod

Beware of the background

Watch the light

Use an external Microphone

Zoom In for close Shots (small resolution on the web)

Use DV (and remain digital all the way : Firewire)

Shoot Several Takes

Shoot some B-roll (adjacent scenes or subject matter)

When transferring to the computer, don't copy everything

DV : 1 GB = 5 min


Slide 13 : 13/31 : Software tools for editing video (software.en.html)

Software tools for editing video

High End : Integration of Hardware and Software

Avid Meda Composer

US$ 25,000

Television station and video producers

Mid Range

US$ 6,000

Final cut pro. Media 100 syatem

Consumer Level

iMovie, EditDV or AdobePremiere

More than enough for the web target


Slide 14 : 14/31 : Editing your project (editing.en.html)

Editing your project

Draw a storyboard

Capture the clips in the editor

Import the other media elements, such as still images or additional sound/music

Trim the clip to the right length

Arrange the clips and other elements along a timeline.

Add titles, effects and transitions

Add audio narration and music

Save the completed video in the proper format for the web, compressing in the process

Remember to preview and revise your work along the way


Slide 15 : 15/31 : File Formats for Video (formats.en.html)

File Formats for Video (not codec)

Chose your Media Architecture

Downloaded file formats

Quicktime (.mov) from Apple

More than Video and Sounds

very open standard codec oriented (Mpeg4)

Moving Picture Experts Group MPEG (.mpeg)

1, 2, 2 Layer 3, 4 , 7, 21

MPEG defines both the file format and the codecs

Audio-Video Interleaved (.avi) from Microsoft/Intel

Quite visible today because the DivX Codec was developed initially within that architecture

Replaced by microsoft .asf

Streamed video

RealVideo (.ram) from RealNetworks

QuickTime (.mov) from Apple

open source Quicktime Streaming Server

same price whatever the number of clients

Windows Media (.asf : Active Streaming Format) from Microsoft (Widows Media Architecture)

MPEG

For More : http://stream.uen.org/medsol/digvid/html/2B_mediaarchitecture.html

For More : http://www.discreet.com/support/codec/

 


Slide 16 : 16/31 : Codec (codec.en.html)

Codec

Example of Codecs included in Quicktime 6.5

The targeted codesc are designed for distribution

  • Animation : computer generated images

  • Cinepak : CDrom era

  • Sorenson rebirth of Aple to the net

  • H263 Real time video conf

  • MPEG4

  • H264 (2005 QT7)

DV or MJPEG are are "Intermediate Codecs"

Liste of QuickTime Codec

For More : http://www.synthetic-ap.com/qt/codec1.html
and http://www.synthetic-ap.com/qt/codec2.html


Slide 17 : 17/31 : Codec (2) : the trendy new ones (codec2.en.html)

Codec (2) : the trendy new ones


3ivX Delta 3.5, available from www.3ivx.com

DIVX codec a.k.a. "OpenDivX.component"

H.263 (included in QuickTime) (Note: Apple VC H.263 is a modified version used for iChat AV, which doesn't seem to work for creating movie files)

MPEG-4 (if you have MacOS 10.2 "Jaguar" and Quicktime Pro 6)

On2 VP3 Video 3.2, available from www.vp3.com

Pixlet (if you have MacOS 10.3 "Panther")

Sorenson Video version 2.20.304 (included in QuickTime)

Sorenson Video version 3.10.101 (Standard) (included in QuickTime)

ZyGoVideo Basic, available from www.zygovideo.com

H264 new video codec

Codec Comparisons: In early 2002 - 3ivX winner in the 320x240 resolution

My advice : keep to the standard : MPEG-4 (DivX is quite well known too)

Or H264 in 2006

For More : their comparison http://home.earthlink.net/~mrob/pub/codecs.html

 


Slide 18 : 18/31 : Parameters (parameters.en.html)

Parameters

File formats

Size

Frame Rate

Best possible quality for a given fixed data rate.

Best possible quality for a given fixed total data size.

Video codecs

Audio codecs

Qualcomm Purevoice : voice

Q-Design Music : music

aac : advanced audio codec part of MPEG4

 



Slide 19 : 19/31 : Size (sizes.en.html)

Size

The formats related to 625-line systems with a 50 Hz field rate
sampling matrix       actual active picture size supports
interlacing
notes
width height width height
768 576       767 576 Y "Industry standard" 625/50 square-pixel video
768 576       768 576 Y "True" computer square-pixel resolution
768 560       767 576 Y CD-i
720 576       702 576 Y D1, DV, DVB, DVD, SVCD
720 540       720 540 N Oddball compromise format. Better to avoid unless you really know what you are doing.
704 576       702 576 Y DVD, H.263 (4CIF), VCD
702 576       702 576 Y Active picture frame for 625/50 systems in ITU-R BT.601-4 pixels.
544 576       526+1/2 576 Y DVB (3/4 of BT.601 sampling rate)
480 576       468 576 Y SVCD (2/3 of BT.601 sampling rate)
384 288       383+1/2 288 N 1/4 of "industry standard" 768576
384 280       383+1/2 288 N CD-i
352 576       351 576 Y DVD
352 288       351 288 N VCD, DVD, H.261 + H.263 (CIF)
176 144       175+1/2 144 N H.261 + H.263 (QCIF)
The formats related to 525-line systems with a 59.94 Hz field rate
sampling matrix       actual active picture size supports
interlacing
notes
width height width height
720 540       720 540 N Oddball compromise format. Better to avoid unless you really know what you are doing.
720 486       710.85 486 Y D1
720 480       710.85 486 Y DV, DVB, DVD, SVCD
711 486       710.85 486 Y Active picture frame for 525/59.94 systems in ITU-R BT.601-4 pixels.
704 486       710.85 486 Y  
704 480       710.85 486 Y ATSC, DVD, VCD
648 486       648 486 Y "True" computer square-pixel resolution (all 486 active scanlines)
640 480       646+5/22 486 Y D2: "industry standard" 525/59.94 square-pixel video
640 480       648 486 Y "True" computer square-pixel format (cropped)
480 480       473.9 486 Y SVCD (2/3 of BT.601 sampling rate)
352 480       355.425 486 Y DVD
352 240       355.425 243 N VCD, DVD
320 240       324 243 N 1/4 of 640480
59.94 Hz is only a conventional approximation; the mathematically exact field rate is 60 Hz * 1000/1001.
A calculated sampling rate, represented here only for completeness. Does not exist in actual 525/625 video equipment.
Only used for still images.

Source : <http://www.iki.fi/znark/video/conversion/>.



Slide 20 : 20/31 : Size Examples (sizesExamples.en.html)

Size Examples : How Much Will Fit: Space & Size.

Duration
Data Rate
Frame Size
Frame Rate
File Size
1 min Uncompressed QuickTime
29.6 MBytes/sec
720x480 29.97 fps
interlaced
1.8 GB/min
1 min
M-JPEG
7.4 MBytes/sec
720x480
29.97fps
interlaced
450 MB/min
1 min
M-JPEG
1.8 MBytes/sec
320x240
29.97fps
de-interlaced
110 MB/min
1 min
DV
3 MBytes/sec or
25 Mbits/sec
720x480
29.97fps
interlaced
200 MB/min
1 min
QuickTime Sorenson
100 KBytes/sec
(800 Kbits/sec)
320x240
15fps
de-interlaced

5 MB/min

1 min

QuickTime Sorenson
230 Kbits/sec

320x240
15fps
de-interlaced

1.7 MB/min

1 min
Quicktime Sorenson
56 Kbits/sec
192x144
7.5fps
de-interlaced

0.5 MB/min

1 min
Quicktime Sorenson
28 Kbits/sec
160x120
7.5fps
de-interlaced

220 KB/min

1 min
Real Media
97 kbits/sec
240x180
10fps
de-interlaced

0.72 MB/min

1 min
Real Media
589 kbits/sec
320x240
15fps
de-interlaced

4.25 MB/min

1 min
Real Media
2180 kbits/sec
400x300
30fps
de-interlaced

15.4 MB/min

1 min
WindowsMedia v9
97 kbits/sec
240x180
10fps
de-interlaced

0.78 MB/min

1 min
WindowsMedia v9
589 kbits/sec
320x240
15fps
de-interlaced

4.1 MB/min

1 min
WindowsMedia v9
2176 kbits/sec
400x300
30fps
de-interlaced

15.1 MB/min

1 min
MPEG-1
1383 kbits/sec
320x240
30fps
de-interlaced

10.1 MB/min

1 min
MPEG-4
92 kbits/sec
160x120
10fps
de-interlaced

0.71 MB/min

1 min
MPEG-4
565 kbits/sec
320x240
15fps
de-interlaced

4.1 MB/min

1 min
MPEG-4
2088 kbits/sec
640x480
30fps
de-interlaced

15.3 MB/min

1 min
DVD MPEG2
9180 kbits/sec or
8.96 Mbits/sec
720x480
29.97fps
interlaced

80 MB/min CBR
47 MB/min VBR

11MB/min
PCM Audio
(AIFF or WAV)

3.2 MB/min
Dolby AC-3 Stereo Audio

Source : <http://stream.uen.org/medsol/digvid/html/D7_howmuchfit.html>.



Slide 21 : 21/31 : Size Summary (sizesSummary.en.html)

Size Summary

Source : http://stream.uen.org/medsol/digvid/


Slide 22 : 22/31 : Frame Rates (frameRates.en.html)

Frame Rates

The Frame Rate of a movie is measured by the number of frames per second that a movie plays back.

"Full motion" means that all the frames and fields of picture information for a given standard are present.

NTSC TV runs at approximately 30fps (actually 29.97fps - don't ask)

PAL TV runs at 25fps (12.5:DSL, 6.25:slow modems if you want to reduce it)

FILM runs at 24fps

The higher the frame rate, the smoother and better quality the movie appears.

The higher the frame rate, the wider the Internet pipeline must be in order for the movie to play without dropping frames or sputtering.

Source : http://stream.uen.org/medsol/digvid/html/3B_videoframerate.html


Slide 23 : 23/31 : Streaming Set Up (streamingSetUp.en.html)

Streaming Set Up

Session Description Protocol (SDP) Files

Darwin Streaming Server : Open Source


Slide 24 : 24/31 : Bandwidth usage at the server side (serverBandwidth.en.html)

Bandwidth usage at the server side

Function of the Video output and number of users

In kbps, then Mbps

Video output

Number of simultaneous connections

Mbps

kbps

1

2

5

10

40

100

200

1000

0.03

28.8

29

58

144

288

1152

3

6

29

0.05

54.0

54

108

270

540

2160

5

11

54

0.13

128.0

128

256

640

1280

5120

13

26

128

0.26

256.0

256

512

1280

2560

10240

26

51

256

0.38

384.0

0.4

0.8

2

4

15

38

77

384

0.51

512.0

0.5

1.0

3

5

20

51

102

512

1.02

1024.0

1.0

2.0

5

10

41

102

205

1024

2.25

2252.8

2

5

11

23

90

225

451

2253

4.10

4096.0

4

8

20

41

164

410

819

4096

8.19

8192.0

8

16

41

82

328

819

1638

8192

12.29

12288.0

12

25

61

123

492

1229

2458

12288

20.48

20480.0

20

41

102

205

819

2048

4096

20480

N.B. : AARNET Backbone Canberra-Sydney, or Canberra-Melbourne : 18 Mbps

INA 2000 : 2 Mbps, 2004 : 10 Mbps, 2005 : 100 (90+10) Mbps


Slide 25 : 25/31 : Multicasting... the Network (whyMulticasting.en.html)

Multicasting - the Network


Slide 26 : 26/31 : Multicasting - Unicasting (whyMulticasting2.en.html)

Multicasting - Unicasting


Slide 27 : 27/31 : Multicasting - Broadcasting (whyMulticasting3.en.html)

Multicasting - Broadcasting


Slide 28 : 28/31 : Multicasting !!! (whyMulticasting4.en.html)

Multicasting !!!


Slide 29 : 29/31 : Inline video (inline.en.html)

Inline video


Slide 30 : 30/31 : Inline video  ... PAGEotX (inlineHTML.en.html)

Inline video  ... PAGEotX

<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
  WIDTH="192" HEIGHT="160" 
  CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
 <PARAM name="SRC" VALUE="video/extrait_2_qt_modem.mov">
 <PARAM name="AUTOPLAY" VALUE="false">
 <PARAM name="CONTROLLER" VALUE="true">
 <PARAM name="SCALE" VALUE="aspect">
 <EMBED src="video/extrait_2_qt_modem.mov"
   WIDTH="192" HEIGHT="160" 
   SCALE="aspect" AUTOPLAY="false"    
   CONTROLLER="true" 
   LOOP="false" 
   PLUGINSPAGE="http://www.apple.com/quicktime/download/"    
   KIOSKMODE="false">
 </EMBED>
</OBJECT>

 

All the attributes : http://www.apple.com/quicktime/authoring/embed2.html

From Embed to Object : http://dopey.gcsu.edu/QT_embed_object_tags/

The <object> Element

The width and height attributes of the object element should match the size of the movie in pixels.

The classid attribute uniquely identifies the player software to use. It must be set to "clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B". This unique code identifies an ActiveX control that must be installed on the users PC before the movie can be played. If the user does not have the ActiveX control installed, the browser can automatically download and install it.

The codebase attribute specifies the base path used to resolve relative URIs specified by the classid, data, and archive attributes. When absent, its default value is the base URI of the current document. Note: Internet Explorer uses this attribute to specify a location from where the player can be downloaded. It must be set to "http://www.apple.com/qtactivex/qtplugin.cab". This location will always contain the latest version of the QuickTime player.

The src parameter should point to the movie file.

The autoplay parameter should have the value "true" if you want the movie to play automatically.

The controller parameter should have the value "false" if you don't want the control buttons to show.


The <embed> Element

The embed element is added to support browsers that don't support the object element. A browser that understands the object element will ignore the embed element. The object element will be used by new browsers that support ActiveX controls (Internet Explorer 5 and 6). Older browsers (Netscape 4 and 5) will use the embed element.

The width and height attributes of the embed element should match the size of the movie in pixels.

The autoplay and controller attributes of the embed element should be set to the same values as for the parameters in the object element.

The pluginspage attribute defines the player's download path. It must be set to "http://www.apple.com/quicktime/download/".


Slide 31 : 31/31 : Inline video (inlineHTMLplus.en.html)

Other tricks about QuickTime

QT is track-based

http://www.apple.com/quicktime/tools_tips/tutorials/tracks.html

HREF Track

http://www.apple.com/quicktime/tools_tips/tutorials/hreftracks.html

and Examples : http://web.uvic.ca/akeller/pw408/d_qt_link_to_web_pages.html

Other aspects

http://www.apple.com/quicktime/tools_tips/tutorials/interactive.html

MakeRefMovie X

Creates alternate movies for various internet connection speeds, CPU's, languages, and more. This version runs on Mac OS X and allows you to create a reference movie that supports QuickTime 6.

http://developer.apple.com/quicktime/quicktimeintro/tools/

Playlist

http://www.qtbridge.com/pageot/qtnext/Sequence_eng.html

QTBridge

http://www.qtbridge.com/