
331
11.1 Video editing
11
11.1.18 Add fading effects: part 2
From the Available effects: list, double-
click on the option for Fade out to black
to add this to the Displayed effects: list,
then click
. Place the timing
bar at the end of the snapshot and from
the Home tab select the Credits button.
Add your name to these credits. Use the
method described in Task 11b to save the
clip with the filename Task_11i.mp4
and a resolutionof1920× 1080. Save the
projectin.wlmp format. It now looks
likethis.
11.1.19 Video compression
There are two types of file compression used for both video and audio files. These
are lossless compression and lossy compression. Lossless compression does not lose
any data when the compression takes place. Lossy compression loses data.
There are many factors that affect the file size of a finished video. One is the
number of pixels used for the product. The size of a Standard Definition file
(SD) is often 720×480 pixels, which is 345 600 pixels per frame, whereas for a
High Definition file (HD) it is 1920 × 1080 pixels, which is 2 073 600 pixels per
frame, and a 4K Ultra High Definition file (UHD) is 3840 ×2160 pixels, which
is 8 294 400 pixels per frame. The higher the definition of the file, the higher the
number of pixels per frame required to store and stream it. A second factor is the
length of the video. Generally, the shorter the video, the less storage space and
streaming time are required. Another factor is the number of frames per second.
Much of the video produced is set at 30 frames per second (fps) and if the number
of frames per second is reduced from 30 fps to 15 fps the video will require half
of the original storage capacity and time taken to stream it. Other factors can also
affect the compression; these include whether progressive frames or interlaced
frames are used, how frequently the key frames occur, and the audio sample rate
and render quality, but these factors are beyond the scope of this book.
The video is stored in a container, like .mp4, .wmv, .mov, .avi and so on, and
each of these holds the compressed data in a different form. The software
used to display the video (it may be video-playing software, a browser or even
software within a games console) must recognise the container holding the
video and understand the
codec used to encode the video within the container.
The same codec must be used in the software to decode the video. If the codec
is not present in the software (for example it has not been added to your browser
as an add-in), then the video within the container will not play.
The word ‘codec’ is short for coder/decoder and is a program that knows how
to handle video (and/or audio) when stored in a particular format. It is used to
compress and decompress the data, often for/from data transmission.
Data might be compressed so that it can be shown on a phone with a small
display, such as 426 × 240 pixels. If this compressed video was displayed on a
UHD monitor or television, it would be very pixelated and almost unviewable.
It is therefore critical that the correct container and compression method is
selected when data is saved. Unless storage space and bandwidth for streaming
are very limited, always select a lossless format.