Upload
mike-cummins
View
238
Download
2
Embed Size (px)
Citation preview
What is a Codec? What is a Container Format? Temporal vs Frame Based Codecs Screen Resolution Frame Rates Workflow
…and then, at the end, making sense of it all!
Why will your PC play some video files and not others? It’s all down to codecs
So why do we need codecs?
Video takes a lot of storage space on your PC/Mac
For instance 3 minutes of captured Full HD camcorder footage uses about 1gb of storage
On the plus side,storage is now cheap
The trouble really comes when trying to distribute the footage
People don’t want to be given hard drives to plug in to their TVs. They want DVDs, iPod videos, Sky+, Freeview & YouView
So the files need converting to suit these media
...the trouble is that there are hundreds (thousands?) of compression options!
But let’s start at in the 1950s...
Way back in the 1950s three main broadcast standards were established by various countries:
PAL (in the UK) NTSC (in the USA) SECAM (in France)
...and they all worked quite happily for the next thirty years!
This was mainly because video production was expensive and made by a small number of companies. Thus easily regulated.
Then in the 1990s came digital!
The Digital Revolution of the 1990s made video production cheap and available to the masses.
This made it difficult (impossible?) to regulate.
New digital ‘standards’ were required, and lots of options competed...
Instead of being imposed like the 1950 standards, the new standards were in competition with each other
The theory was that the best standard(s) would become dominant
The actual result was a minefield of formats, containers and codecs...
Codec stands for Code / Decode
It is basically a computer program that en-codes video to a specified format
From this point on the same codec is needed to play (decode) the video
The trouble comes when you move your video to another computer...
...if that PC/Mac hasn’t got the required codec installed (to decode the video) then your video won’t play.
Tip: PC users can try ‘G-Spot’ (freeware) to identify the codecs used by a video
Sorenson 3 H.264 Cinepak
Oh, and there’s an another pile of codecs for encoding audio files!
...eh, what about Quicktime and AVI?
Here’s the big confusion: Quicktime, AVI and Flash Video are not codecs!
These are ‘container’ formats.
This basically means that they contain codec compressed video and audio in one easy to play file.
Video codecs can be broadly split into two types:
Frame-based codecs Temporal (or field-based) codecs.
Video codecs can be broadly split into two types:
Frame-based codecs Temporal (or field-based) codecs.
Say What!?!
Well known examples are Cinepak and Motion-JPEG
They work by examining and compressing each frame of video individually
They have two main disadvantages: They can be slow to encode File sizes can be quite large
The best known is MPEG-2 (used for Digital TV & DVDs)
They watch how much a video clip changes from frame to frame then compress only the changes between the first full frame (a keyframe) and the following frames.
Thus keeping file sizes down!
But it’s always worth checking with your client about their requirements.
Especially if they’re planning on showing the video overseas.
This is where programs like Apple’s Compressor come into play (but that’s another presentation for another day!)
So we know about codecs, container formats, and how they encode video & audio files...
...but we still need to mention Screen Resolution (or how big the screen is)
Digital Video (from about 1995) reduced this to 720 pixels which were then ‘stretched’ to cover the ‘missing’ 48 pixels:
576 pixels
It doesn't matter if you watch TV on a 12” portable or fill a wall with a video projector – you don’t get any more pixels!
All this was true until thearrival of High Definition
...but guess what...
...there’s competing formats (again)!
HD Ready means that the screen resolution is: 1280 x 720 pixels
Notice the change in shape – this is called Aspect Ratio
Each frame is made from two images spliced together:
- Tends to be used by tape based cameras- Good for fast moving action (sports)
Interlaced Video displays 50 half-frames (or fields) every second.
It shuffles these in alternate rows, this tricks the eye but can look messy when paused or printed out
Note:
Horizontal Banding
1080p/50fps1080p/50fps
Adobe Media Encoder / Apple Compressor
Adobe Media Encoder / Apple Compressor
Follow the Adobe Premiere handout
If Premiere is slow or exporting is taking an age, it’s probably due to bad workflow