T.file Format
T.file Format
File formats
There are many different file formats used to store data in the form of text
and numbers, images, sound or video, in computer systems.
Sound files:-
1. Musical Instrument Digital Interface (MIDI)
5. Application:
• Their relatively smaller size makes them suitable for
sounds/music on devices with limited memory; for example,
storing ringtones on mobile phone.
But how can the original music file be reduced by 90 per cent whilst still
retaining most of the music quality?
This is done using file compression algorithms which use PERCEPTUAL
MUSIC SHAPING; this essentially removes sounds that the human ear
can't hear properly.
For example, if two sounds are played at the same time, only the louder
one can be heard by the ear, so the softer sound is eliminated. This means
that certain parts of the music can be removed without affecting the
quality too much.
This is known to be a LOSSY FORMAT, since the original file can't be put
back together again after compression.
• Applications:
• Used in MP3 players, computers or mobile phones
• Files can be downloaded as MP3 from the internet
• CDs can be converted to MP3 format.
• MPEG- 4 (MP4)
• What is it?
• MP4 files are slightly different to MP3 files since they can store
multimedia rather than just sound. Music, videos, photos and
animation can all be stored in the MP4 format. e.g. streaming
of videos over the Internet using MP4 format
Image files:-
• JPEG
How images are stored?
• Bitmap images are made up of pixels (picture elements), that is, the
image is made up of a 2D matrix of pixels.
• How to compress?
• Joint Photographic Experts Group (JPEG) files
JPEG files use a lossy format file compression method. JPEG is
used to store photographs as a reduced file size. They rely on
certain properties of the human eye (e.g. its inability to detect
small brightness differences or colour hues).
• Thus, reducing the number of bits used per pixel (less
shades of colours) .
• How to compress?
• Uses a complex algorithm that detects redundancy/repeated
sections of words
• Repeated words/sections are put in a data dictionary and
replaced by a code(usually numeric)
• When reading the file, it can be decompressed and the original file
can be reformed using the data dictionary.
Example:
Phrase : 'THIS SECTION SHOWS YOU HOW THIS WOULD WORK' contains 35
characters (ignoring spaces)
ACTIVITY:
• Give 2 differences between MIDI and MP3 files .