Showing posts with label Digital Video. Show all posts
Showing posts with label Digital Video. Show all posts

Wednesday, 21 March 2007

Codecs, Again?

Digital Video has its very own list of Codecs that help compress videos into manageable sizes।

The term Codec actually stands for code-decode. A Video Codec is a compression tool that encodes and compresses video data so as to make it more manageable-especially for transfer or broadcast over the Internet. Even for storage, raw (uncompressed) digital video can eat up thousands of mega bytes of your hard disk space. Codecs step in and code the video data and make it much smaller.

However, since these tools (mainly just mathematical algorithms) are used on one computer to encode and compress the file, another computer will need the same tool to decode and decompress the encoded video. This is where Codecs lose in terms of functionality. Though there are thousands of Codecs available, you will mostly come across only a few. The popularity of these few have ensured that 99 per cent of the video files you find on the Internet have been encoded using one of the Codecs mentioned here.

Video Codec is made up of both visual and audio components. The audio stream of a video is encoded using an audio Codec, and the video stream using a video Codec. This section only covers video Codecs!

Codecs

Since all Codecs have one common aim, to reduce file size as much as possible without affecting the quality of a video or audio stream, we will only be looking at the ones that work well here. Also, since the size of a video stream is orders of magnitude larger than its audio stream, compression is even more vital a matter for video Codecs.

DivX

DivX is a video compression format that is used to create and distribute multimedia content. Perhaps the most popular of video Codecs, DivX is used by hundreds of millions of users across the globe to either encode or decode compressed video.

The DivX bundle is available for free download, which includes a DivX movie player and the Codecs necessary to decode videos coded using the DivX algorithm. In order to encode video using the DivX algorithm, you have to purchase the DivX encoder. The freely available download of the decoder is available at http://www.divx.com/divx/download/.

XviD

Another popular video Codec today is the XviD Codec. This Codec, unlike DivX, is open source, and all developers are welcome to help with the project. A lot of movies and video clips available on the Internet are encoded using this Codec.

Currently, skilled video and software engineers from across the world are working on improving this Codec. You can download a Windows binary (installer) from http://www.xvidmovies.com/Codec/. If you are looking for the source code for XviD, visit http://www.xvid.org.

3ivX

Available at http://www.3ivx.com, this Codec is also popular online. Their 3ivX Filter suite let’s you create and play MP4 files. The 3ivX Codecs are also used to encode MOV files, both for the MAC as well as Windows platforms.

Avid

This is another popular Codec that is used quite widely for files available on the Internet. It is developed by Avid Technology, and is available at http://www.avid.com.

Windows Media Video 9 Series

Abbreviated as WMV9, this Codec now comes inbuilt with Windows Media Player, and gives you great quality encoding, though you will spend a lot more time encoding a video in this format. However, for making presentations where you need to capture your monitor screen as a video, this Codec is a great help.

You will also find quite a few videos online that use this Codec. Thankfully, there’s no Codec download or installation necessary to play files encoded with this Codec.

You can read more about it at http://www.microsoft.com/windows/windowsmedia/9series/Codecs/video.aspx

QuickTime

Apple Computer, the maker of Macintosh computers, is well known for building computers and operating systems with loads of visual appeal. They also have one of the most popular video formats around, especially if it’s movie trailers you want to watch online.

We should mention that QuickTime is not a Codec, but actually a player for playing video in the .mov file format. You can still find many tools to convert MPEG or AVI files to MOV files with smaller file sizes using lossless compression.

If you think that this is a lot of Codecs, and things seem to be getting complicated, you should pay a visit to http://www.fourcc.org/Codecs.php for an even bigger list of hundreds of Codecs, all of which you may come across when working with or viewing video files. There seems to be no limit to the amount of Codecs out there, and we wouldn’t blame you for being overwhelmed by the amount of reading you and downloading you would need to do to get all of these.

Though your media player should automatically download a required Codec when it comes across a video file that uses an unsupported one, this doesn’t always work out as well. As a result, if you are a Windows Media Player user, generally, you end up getting a dialog box that says something to the effect of “Codec not found”. Thankfully, as is usual, others have had the same problems, and found a solution for you.

Codec Packs

You can now get what are called Codec packs from the Internet. These packs contain the most commonly used Codecs for video on the Net, and install them all automatically.

KLite Codec Pack

This is a Codec that was popularised by users of KaZaA Lite, the popular peer-to-peer file sharing application. It contains a pretty impressive list of audio and video Codecs.

KLite Mega Codec Pack

This also includes codes for Real Media files and QuickTime files. It is one of the most comprehensive bundle of Codecs available.

Nimo Codec Pack

This Codec pack was popular until recently, and developers only recently stopped updating it. However, it is still an impressive Codec pack for Windows Media Player 9 and 10 users. A full list of other such Codec packs is available at http://www.free-Codecs.com/Codec_Packs.htm

Tuesday, 20 March 2007

Basics Of Video

So What is Video?

Video is nothing but a series of still images, displayed fast, one after the other. Each still image is called a frame, and the rate at which the images are displayed are called a video’s frame rate. Since the human eye is only capable of seeing less than 25 different images per second, any video that has a frame rate of 25 frames per second (fps) or more appears to have smooth movement, just as we perceive movement in real life!

If a video displays less than 25 different frames per second (fps), it appears to be jerky, and our eyes can perceive the breaks in movement.

At 25 fps or faster, however, video always looks realistic and smooth. The standard frame rate for analogue video is 25 fps for PAL (Phase Alternation Line) video, and 30 fps for NTSC (National Television Systems Committee) video. PAL and NTSC are the different kinds of video formats we receive TV signals in. Most countries use the standard PAL video format. NTSC is more prevalent in the US.

What Is Analogue Video?

Analogue video transmits or stores video data in a continuous wave of red green and blue (RGB). The signal is varied using different frequencies of each colour’s wave to display changing images at the receiver’s end. Since this format involves an unbroken transmission of wave data, it is prone to noise (distortion). However, since this continuous stream of data is very similar to the way we humans perceive the world-our eyes receive a continuous stream of light waves, which our brain perceives as moving images (video)-analogue video data represents reality better.

What Is Digital Video?

Digital video is nothing more than a series of images, all stored in digital format (ones and zeroes) that is displayed in quick succession on a screen (such as a computer monitor).

A digital video recorder, for example, takes analogue signals (light waves) and records them into a digital representation of the analogue data. So almost all digital video is nothing but a computer’s understanding of analogue video. There are exceptions, such as in the case of, say, games, where there is no analogue data to begin with, and all the data is created and displayed digitally.

Which Is Better?

Though there is no perceivable difference between analogue and digital video to the human eye, digital video is preferred because of the ease with which it can be manipulated.

In order to, say, edit a video, or to store it easily, digital format offers a great advantage. You can just open up a software and start editing your digital video, or store hundreds of movies, or movie clips, on your hard drive, or even make copies of your personal videos and share them easily with your friends or family. With computers in our lives, doing all this has become a no-brainer, for most.

With analogue video, you would need to store each video on a video cassette, and making copies of that cassette would involve two video cassette recorders-one playing back the cassette, and another recording the video in real time on to another cassette which is a very tedious task. With digital video, the same task becomes as easy as copying the video file to another computer or device, or even e-mailing it to hundreds of friends and family members. This is where digital video has the definite upper hand.

Where Do I See Digital Video?

Since we only see through our eyes, and our eyes are analogue video receivers, one could say that you NEVER see digital video at all!

However, we’ll leave such philosophical thoughts behind us within this book and consider only the way in which videos are created, stored, or displayed as the parameters of segregating them into digital or analogue.

Most people don’t realise it, but every second you spend in front of your computer, you are seeing digital video. Every movie or video clip you watch on your computer is digital video; every DVD you pop into the DVD player or DVD-ROM drive is an instance of digital video; the same goes for VCDs, and the MMSes you send and receive; even animated GIF files on the Internet are the same, as are streaming movies or clips. The list is endless.

Even satellite television is transmitted today using digital signals, which are converted to analogue at your cable-provider’s premises, before being transmitted to you. Perhaps our only interaction with analogue video today is when watching a movie in a theatre and when watching or recording videos video cassette players or cameras.

How Does A Computer Display Digital Video?

This is perhaps the most basic of questions that all of us want to know. Let’s start with how a computer displays data on the monitor:

The Monitor

Let’s get to know the computer monitor better first. The most important human interface device in a computer is the monitor, because it is what we humans look at to understand what is currently happening inside our computer system. Even though the computer has no use for text and graphics and works only in terms of ones and zeroes (data), the computer display shows us text and graphics, which our minds are able to understand.

Most of us work with Cathode Ray Tube (CRT) monitors, which are much like the TVs we all have at home. A few of us choose to pay that little extra and opt for Liquid Crystal Display (LCD) monitors (as on laptops).

The words we most often hear when dealing with monitors are “refresh rate” and “resolution”. Here, maximum resolution is the maximum number of dots (pixels) that a monitor can display along its horizontal axis and vertical axis. Thus, a monitor with a maximum resolution of 1024 x 768 can display a maximum of 1024 pixels along its horizontal axis and 768 pixels along its vertical axis.

The refresh rate of a monitor is pretty straight forwardly, the number of times it can draw a whole screen of pixels (1024 horizontal and 768 vertical, in the previous example) per second. So a refresh rate of 85 Hertz (Hz, or number of times per second) at a resolution of 1024 x 768 means that a monitor is drawing the whole screen of 1024 x 768 pixels 85 times per second.

Another term you will come across is wide-screen. In order to explain wide-screen, we first have to talk about aspect ratios: The aspect ratio of a display is the ratio of the number of horizontal pixels to vertical pixels. The most common aspect ratio is 4:3 for most computer monitors. However, in order to display certain games and most DVD movies optimally, the wide-screen display was made.

Wide-screen displays have an aspect ratio of 16:9. Many people are confused by the difference between 4:3 and 16:9, as at first glance they seem to be the same ratio. A simple math calculation will show you that 4:3 = 1.333, whereas 16:9 = 1.777. So it’s quite clear that the 16:9 ratio means a much wider screen! Most computer monitors are analogue display devices.

This means that although the computer produces digital signals, the monitor only accepts analogue signals. The monitor connects to the video adapter or graphics card inside the computer to receive analogue signals.

The Graphics Card

This is the device that converts a computer’s digital data output stream into analogue, so that the monitor can understand and display correctly. The graphics card receives digital data from the Central Processing Unit (CPU) and Random Access Memory (RAM) inside your computer, converts it all into an analogue signal and then sends the analogue signal to the monitor. This is what you finally see.

Most graphics cards also do advanced graphical computation and take away computing load from your CPU. These involve complex 3D computations that are required by most games of today.

How They Work Together

When you move your mouse, the mouse senses movement and sends the necessary data to the CPU, which in turn, makes sense of the movement and translates that into X (horizontal) and Y (vertical) coordinates. This data is sent to the graphics card or video adapter, which in turn, moves the mouse pointer that’s displayed on your screen to the correct co-ordinates. Since this all happens in millionths of a second, when you move your mouse, it appears to move smoothly across your screen, just as if there is a video playing. This is perhaps the most basic for of digital video that you see everyday on your computer!

It’s the same basic operation for everything you see on your computer, whether it’s moving a mouse, typing on the keyboard and seeing letters appear on your screen, or even watching a movie or playing a game. It’s all video, and all digital. If both monitor and graphics card support digital video inputs and outputs, respectively, you can have digital video all the way from the CPU to the monitor! Of course these are more expensive and rare, but are catching on fast.

Let’s move on to the real meat of Digital Entertainment, movies and movie clips that you watch, edit or shoot with the help of your computer!

Monday, 19 March 2007

Digital Video

When it comes to digital entertainment, video is perhaps the most important aspect. All of us love movies, music videos and even love to play director with our own home movies. This chapter will give you a better understanding of how to use video as your primary source of leisure and entertainment.

The Evolution Of Video

The entire concept of video is only a few centuries old and true video broadcasting systems are even younger. Like most other technologies, video has grown immensely in the last couple of decades, from something that only professionals or the rich could afford, to a tool for everyone. Within half a century, we’ve gone from the marvels of silent movies on the big screen to personal video recording devices that rival the clarity and colour reproduction of big budget production houses.

The movie industry never looked back after the debut of the first full-colour talking movie, Becky Sharp, released in 1935. In the 70-odd years since, video has taken over our lives. Today, thanks to a combination of hardware and software that most people can afford, you could sit at home and make a pretty decent home movie, complete with special effects and great editing-the only thing holding you back is your talent and understanding of the magic that is digital video.

The first colour movies were made using cameras that passed light over three different coloured films (red, green and blue-RGB), this was later upgraded to film capable of capturing RGB colours. All this was analogue back then, obviously.

However, even with digital imaging, the basic definition of video remains unchanged: “Many still images being displayed one after another at a very fast rate so as to give the ‘illusion’ of movement.” Basically, whether digital or analogue, video works exactly the same way!