Compression Flashcards
Define compression
The name given to algorithms which reduce file size
What are the two types of compression
Lossy and lossless
What does lossy compressions cause
Small mistakes (digital artefacts) appearing in image and video
How does lossless compression work
It doesn’t lose any data, but rather it finds groups of repeating data and records the data once, along with the number of repetitions.
How does Run length encoding work
It Uses data pairs to Encode each run length of the same pixel
How to decrease file size
Reduce:
Colour depth and resolution
Or
Sample resolution and rate
Benefits of compression
Smaller files
Faster transmission time
Faster download
Reduces space on disk/servers
Image inside web can loaf Faster
Examples of lossy file formats
Jpeg
Mp4
Mp3
Examples of lossless file format
Png
Zip
Gif
Flav/ALAC
How to reduce chances of buffering
The tc or computer needs to decompress the data as it is playing the video
Before the video starts, it will buffer a sufficient amount to allow for the network occasionally being slow
The website or server may send low quality files if the connection is slow