Media File Formats Jon Ivins, DMU. Text Files n Two types n 1. Plain text (unformatted) u ASCII Character set is most common u 7 bits are used u This.

Slides:



Advertisements
Similar presentations
3.01C Multimedia Elements and Guidelines 3.01 Explore multimedia systems, elements and presentations.
Advertisements

Multimedia: Digitised Sound Data Section 3. Sound in Multimedia Types: Voice Overs Special Effects Musical Backdrops Sound can make multimedia presentations.
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Data Compression CS 147 Minh Nguyen.
4.1Different Audio Attributes 4.2Common Audio File Formats 4.3Balancing between File Size and Audio Quality 4.4Making Audio Elements Fit Our Needs.
Information Representation
Speech Compression. Introduction Use of multimedia in personal computers Requirement of more disk space Also telephone system requires compression Topics.
Comp 1001: IT & Architecture - Joe Carthy 1 Review Floating point numbers are represented in scientific notation In binary: ± m x 2 exp There are different.
Copyright 2003 Monash University IMS5401 Web-based Information Systems Topic 2: Elements of the Web (d) Digital representation.
Media Data and File Formats
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Guilford County SciVis V106.01
V Obtained from a Guildford County workshop-Summer, 2014.
File Formats By Jack Turner. Raster (Bitmap) Raster or bitmap is a dot matrix data structure, containing columns of dots and rows, of a graphics image.
Nat 4/5 - Software Design and Development – Low Level Operations - 1 National 4/5 – Computing Science Information Systems Design and Development Media.
4.1 Digital Multimedia Elements
Zinnia Bell. RAWimages are image files that have not yet processed, they contain minimally processed data from the image sensor of either a image scanner,
Skill Area 212 Introduction to Multimedia Internet and MultiMedia for SC 2.
Fundamentals Rawesak Tanawongsuwan
School of Computer Science & Information Technology G6DPMM - Lecture 4 Graphics & Still Image Representation.
©Brooks/Cole, 2003 Chapter 2 Data Representation.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Lecture 10 Data Compression.
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
Sem 1 v2 Chapter 14: Layer 6 - The Presentation layer.
COMP Representing Sound in a ComputerSound Course book - pages
Representing Information Digitally. Digitization Initially transforming data for computer use Assigning people social security numbers The creation of.
CSCI-235 Micro-Computers in Science Hardware Part II.
Video Basics. Agenda Digital Video Compressing Video Audio Video Encoding in tools.
Institute of Technology Sligo - Dept of Computing Sem 1 Chapter 14: Layer 6 - The Presentation layer.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
 Refers to sampling the gray/color level in the picture at MXN (M number of rows and N number of columns )array of points.  Once points are sampled,
Common file formats  Lesson Objective: Understanding common file formats and their differences.  Learning Outcome:  Describe the type of files which.
GIF - Graphics Interchange Format JPEG - Joint Photographic Experts Group PNG - Portable Network Graphics GIF images are limited to the 8 bit palette which.
Multimedia Specification Design and Production 2012 / Semester 1 / L3 Lecturer: Dr. Nikos Gazepidis
Chapter 2 : Business Information Business Data Communications, 6e.
Still-image compression Moving-image compression and File types.
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Quiz # 1 Chapters 1,2, & 3.
Multimedia Basics (1) Hongli Luo CEIT, IPFW. Topics r Image data type r Color Model : m RGB, CMY, CMYK, YUV, YIQ, YCbCr r Analog Video – NTSC, PAL r Digital.
1 MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - TEXT. 2 What is Text? the basic element of most multimedia the basic element of most multimedia consisting of.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
Media Types Information Systems can contain the following types of media: Sound, graphics, video & text.
Digital Audio III. Sound compression (I) Compression of sound data requires different techniques from those for graphical data Requirements are less stringent.
Chap 14 Presentation Layer Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
CSCI-100 Introduction to Computing Hardware Part II.
Digital Images are represented by manipulating this…
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
Image File Formats By Dr. Rajeev Srivastava 1. Image File Formats Header and Image data. A typical image file format contains two fields namely Dr. Rajeev.
1 What is Multimedia? Multimedia can have a many definitions Multimedia means that computer information can be represented through media types: – Text.
Layer 6 Presentation Layer. Overview Now that you have learned about Layer 5 of the OSI model, it is time to look at Layer 6, the presentation layer.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Information Systems Design and Development Media Types Computing Science.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Or, how to make it all fit! DIGITAL VIDEO FILES AND COMPRESSION STANDARDS.
Level 3 Extended Diploma Unit 19 Computer Systems Architecture
Level 3 Extended Diploma Unit 19 Computer Systems Architecture
Video Basics.
Data Compression.
Multimedia: Digitised Sound Data
Data Compression CS 147 Minh Nguyen.
Why Compress? To reduce the volume of data to be transmitted (text, fax, images) To reduce the bandwidth required for transmission and to reduce storage.
Web Design and Development
Chapter 2 Data Representation.
Judith Molka-Danielsen, Oct. 02, 2000
COMS 161 Introduction to Computing
Chapter 8 – Compression Aims: Outline the objectives of compression.
Presentation transcript:

Media File Formats Jon Ivins, DMU

Text Files n Two types n 1. Plain text (unformatted) u ASCII Character set is most common u 7 bits are used u This can represent 128 Code words F A = F a=

Parity / Extended Character Sets n Computers store data in bytes n The extra bit can be used for: u Error detection F A parity bit is used F (Odd Parity) u Extend codewords to 256 F IBM’s EBCDIC

Text Files n 2. Formatted Text u Used by Word Processors / DTP F Characters used to give text and formatting information F Bold, Italic, Position, etc F Also contains information on page numbers, version, index, etc u Formatted files are usually much larger than their plain text equivalent

Graphics Files n Consist of objects n Contain data on size, position, colour n These are called VECTOR graphics n Use INTER-ALIASING to smooth lines

Image Files n Consist of PIXELS n A pixel is a small area of the screen n VGA displays are 640 X 480 u 480 lines of 640 pixels u This is pixels n Pixels contain data on colour n Greyscale uses one byte u Black = 0, White = 255

n Colour uses 3 Bytes n 1 for Red, 1 for Green and 1 for Blue (RGB) n 24 bits gives 16 million RGB combinations BUT n most monitors are usually at 256 colours

Bit Mapped Files n Graphics use a mathematical relationship to describe their position & size n A line might be described by its end points 0,0, 10,10 n Double the size the co-ordinates are simply doubled 0,0, 20,20 n Graphic objects are scaleable n Normally, graphics objects are saved as BMP files which are not scaleable

GIF Files n Image files hold a lot of data u Image files tend to be large files n To reduce storage space COMPRESSION techniques are used n One solution is RUN LENGTH ENCODING u Count the number of pixels that are the same u Decoder uses this count to copy the original pixel X times

GIF Files u Developed by Compuserve u Used for single or multiple images u Based on LZW compression F Lempel, Ziv invented original algorithm F Welch developed it further u Replaces multiple strings of data with a TOKEN…….. And a count value u LZW can give reasonable compression  50%

GIF Files n Decompression is fairly quick n Universal standard n Not optimised for image compression n UNISYS hold patent on LZW so there may be a problem with royalties

JPEG Files n Joint Photographic Experts Group n Uses a Fourier Transform technique to eliminate high frequency components in image n Uses several algorithms including run-length encoding n Can be lossy u blockiness u posterisation u ringing

Video Files n AVI ( Audio Visual Interleave) u Supported on all versions of Windows from 1995 F Almost all PC users can watch AVI files F MAC users probably won’t be able to watch AVI files u Large file size ( 20 Mbytes per second)

MPEG n Motion Pictures Expert Group n Popular format u Good compression u Still large files n Uses similar compression techniques to JPEG

Other Video Formats n MOV u Mac format F can be difficult to play on PCs n Real Audio & Shockwave u “Streaming” files F Optimised for the Internet

Sound Files n Two main types n WAV files u Digital samples of analogue waveforms n Midi Files u Set of instructions to control computer

WAV Files n Sound is sampled according to Nyquist Sampling Theorem n SAMPLE RATE = 2 X Highest frequency n Telephone bandwidth is Hz u Sampling rate is 6800 times a second n Audio is , 000 Hz u Sampling rate is 40,000Hz

n We also need control information so sampling rate is always higher than the Nyquist limit n telephone speech is 8kHZ n CD Audio is approx.. 44kHZ n The better the frequencies the higher the sampling rate so the higher the quality

The sound is sampled at regular intervals

Conversion to digital n There are 21 signal levels u -10 to 0 to +10 n We need 5 bits to represent this range n Note 5 bits gives 32 combinations u Use 0XXXX for Positive values u Use 1XXXX for negative values

3volts is represented by volts is represented by volts is represented by volts is represented by volts is represented by volts is represented by volts is represented by n Each sample is transmitted to an output device sequentially

Quantisation noise n The example uses a 1 volt step range n What if the audio sample is 7.5 volts? n The encoder gives a value of 8 volts n The decoder outputs an 8 volt signal n This error is called QUANTISATION NOISE

Companding n Most audio signals are quiet u more signals at lower levels than high levels n Companding means using a non-linear scale u For example, 0-5 volts might have 20 values u 5- 8 volts might have 8 values u 8-10 volts might have 2 values n This gives better resolution at lower levels at the expense of high signal levels

CD Quality WAV files n Use 16 X 2 bits to represent the audio signal n This gives X 2 “steps” u Quantisation noise is low u A lot of bits will carry no information (low sound levels) u This means a lot of data redundancy u WAV file size becomes large u 1Mbyte = 0.7 seconds of sound

MIDI Files n These are digital sound files n Control computers, sequencers, etc n Each bit in the signal is used n Must have a MIDI player to hear the sound n File size is very small compared to WAV files

Audio Compression n ADPCM u Predicts next sample value n TrueSpeech u Based on mathematical model of airflow over vocal tract u Highly efficient (1/16th) n MPEG Audio u Fits with MPEG Video files

Zip Files n Popular file compression utility u Based on LZW n Used to transfer or store large files n Zipped files give good results for text and WAV files n Poor results for graphics / video (typically 3%)

File Size / Performance n There is a trade-off between: Speed of loading File size Quality n There is no one correct solution for all multimedia applications