Google Answers Logo
View Question
 
Q: Learn more about .AVI files and the amount of space they can take. ( Answered 5 out of 5 stars,   1 Comment )
Question  
Subject: Learn more about .AVI files and the amount of space they can take.
Category: Computers > Graphics
Asked by: al_crystonixsw-ga
List Price: $15.00
Posted: 28 Oct 2002 21:42 PST
Expires: 27 Nov 2002 21:42 PST
Question ID: 91690
I need to learn more about .AVI files and the amount of space they can
take. I will have a variety of people producing clips (.AVI files) for
me. We use a screen resolution of 1024 x 768. I want clips to be able
to make use of the entire screen. I'll want to compress these if
possible; upload them to our server (SDSL access), and then download
them to our remote sites (ADSL access) onto their local computer. For
example, what is the range of disk space required for a 30 second .AVI
file? I assume that the quality and complexity of the graphics play a
huge role in this equation. So a 30 second .AVI file consisting of a
capture of a PowerPoint presentation would take significantly less
space than that of a full fledged movie.

1) But how can I estimate what the size range would be? 

2) I assume that it's linear, so that a 3 minute long .AVI file
of the same type would be roughly 6 times as long as a 30 second clip.
True?

3) Are there alternative formats to the .AVI file format that I
should consider?

4) And finally, are there sites where I can find clips in the
1024 x 768 resolution and using the whole dimension so I can download
and experiment?
Answer  
Subject: Re: Learn more about .AVI files and the amount of space they can take.
Answered By: funkywizard-ga on 30 Oct 2002 12:00 PST
Rated:5 out of 5 stars
 
I have been very active in video encoding for several years now and
have a good deal of experience with various file formats and encoding
methods.

AVI is a video format that can use any number of codecs for both audio
and video. A codec is a piece of software that takes one type of video
and encodes it to another type, and later decodes it back to a raw
format for display on a computer. Most codecs that have been made
compatible with the avi specification are not well suited to high
performance, high quality, low filesize videos. The big exception is
Divx, which can be downloaded from divx.com, and has become the file
format of choice for pirating movies on peer to peer networks due to
its high quality and low filesize. A good amount of useful information
on how to create divx format videos is available at the following
website: http://www.divx-digest.com/

Divx files can be encoded at whatever resolutions you may want, but it
generally is not useful to encode them at a higher resolution than
your camcorder supports. For digital camcorders this resolution is
720*480, which looks great in full screen mode with the divx codec,
even on a computer running at 1024*768. If you have an analog
camcorder, 720*480 is actually better resolution than what the
camcorder is capable of storing on its cassette.

Almost all video players can bring a video into full screen mode that
is at a lower resolution than the screen. There are actually drawbacks
to having the video itself be encoded at full 1024*768 resolution.
Namely, filesize will be increased, and frame rate will be decreased.
Many computers that were built more than 1 or 2 years ago, especially
laptops or computers with cheap graphics processors, would have a hard
time playing back a full 1024*768 video without skipping and jerking.
For these reasons, I would not recommend encoding at anything greater
than 720*480 resolution. Incidentally, this is the resolution used for
DVD video.

On to sizes:

Filesizes of videos are indeed linear. A 30 second clip will take up
about 1/6th as much space as a 3 minute clip. Action and such does
play a big role in the ability of a compression format to maintain
adaquate quality at a given bitrate, so less action typically equates
to a more crisp picture and a slightly smaller filesize. With the divx
codec and most others, you can specify the bitrate you would like to
encode at or to encode between a range of bitrates while attempting to
keep quality unifrom throughout the video. Since it sounds like you
are looking for the highest quality possible, I would tell you that a
very excellent (Nearly DVD quality) Divx file typically takes 1000
megabytes for a full length feature film, or 600 megs for a slightly
lower quality one. This amounts to about 5-8 megabytes per minute of
video. A 30 second video clip then should take up about 3 megabytes of
space if it is encoded at very high quality using the divx format.

If the divx format is unsuitable, there are three other kinds of
formats that lend themselves to high quality.

One is MPEG1, also known as VCD (video cd), and these videos typically
take up about 10 megabytes per minute of video. The maximum resolution
of this format is 352*240 and it's quality is akin to VHS tape.

The next higher up format is known as SVCD (or super video cd), and
increases both the resolution and the bitrate. Svcds are typically
encoded at 480 by 480 resolution and takes up about 20 megabytes per
minute of video. The quality of this is better than vhs, and is
slightly lower quality video than direc tv satellite service. Svcds
are encoded in a format known as MPEG2, which is the same encoding as
DVDs, except that svcds are lower resolution and lower bitrate.

The last format to speak of is DVD video, which currently is the best
format you might use in terms of image quality. Filesize for DVDs is
about 40 megabytes per minute of video. Image resolution is 720*480
and you can fit up to 120 minutes of this video on a recordable dvd
(dvd-r).  This file format is not recommended for transfer over the
internet due to its large file size.

To fully answer your first question, size range, the size will not
vary too much for different types of things. For a completly
non-action video like a powerpoint presentation, expect the filesize
to be about half that for an "action packed thriller" so to speak. For
the kind of variations you might see in home movies, a reletivly
inactive scene should not vary by more than 15% from that of a
somewhat more active scene. However, all of this is configurable for
divx. The various mpeg formats (vcd, svcd, dvd) may impose a fixed
bitrate to be compatible with the widest variety of  hardware playback
devices, and thus the amount of action will only affect image quality,
not file size.

Finally, to answer your third question, I have never come accross any
video encoded at 1024*768 resolution other than some small experiments
with 3d rendering. In any case, 1024*768 resolution is not going to
improve video quality in any case due to there not being available any
camcorders that can encode at this resolution. However, a video
encoded at 720*480 is available at the following website:
http://asuaf.org/~funkywizard/tourneydivx.avi . It is 22 megs large,
2.5 minutes long, and was encoded with the divx codec. I applied some
filters to the video to compensate for low lighting quality. The audio
was compressed in the mp3 format.

It should be noted that in order to play back this video skip free, a
computer with either a decent graphics card (nvidia or ati
recommended) or a 1ghz+ processor is recommended. It does not play
well for instance, on the laptop I am using to write this answer,
which has a 700 mhz celeron processor and an intergrated graphics
chip. It does however, play fine on a Pentium II-400mhz laptop with a
better (ati rage 128) video chip. To play videos wihtout skipping on
computers such as the celeron I used as an example, VCD video (MPEG1)
or lower resolution divx video, is recommended.

Some jagginess and overcompression can be noted in the video I
provided due to using an older version of the divx codec and less
pre-processing. If I had enabled some of the more advanced encodings
available in the newewst versions of divx (which was not available at
the time), the example video at that filesize would look much more
professional. Indeed, I have seen many DVD rips of movies that look
just as good as DVD quality at the same filesize as the provided
video.

Search terms:
dvd video bitrate spec
svcd bitrate
dvd bitrate

Clarification of Answer by funkywizard-ga on 18 Nov 2002 22:00 PST
I look forward to any further questions you might have, and I am
pleased that you found my answer satisfactory. Best of luck on your
video projects.
al_crystonixsw-ga rated this answer:5 out of 5 stars
First, my apologies for the delay in rating this answer. I was pulled
away for several weeks. Now for my comments on the answer...Fantastic!
I think I'll have some other related questions that come from your
answer, but I'll post them separately. The detail was excellent. The
reference to DivX was too. And I appreciate the fallbacks of MPEG1,
etc. All in all, a great job...

Comments  
Subject: Re: Learn more about .AVI files and the amount of space they can take.
From: ansare-ga on 28 Oct 2002 22:52 PST
 
I have not, as of yet, familiarized myself on this topic, although I
maybe able to prived a few resources, where answers to at least some
your questions can be found.  In response to 1.  30 seconds of AVI
seem manageable.  2. I think your assumption is true, but am not
totally certain. 3. Yes, but microsoft camcorder is a free screen
capture utility that captures in the AVI format, so that would be
fairly simple.  I have used it, and it is useful for capturing on
screen activities, such as ppt presentations.  You could also use
*.mpg formats, but these have less compression and would increase the
file size. 4. I am unable to assist you in this question.  A resource
that you may find useful: http://www.jmcgowan.com/avi.html

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy