[Tech] Compression of a Video

Tutorials, general information about DAoC and useful links.
User avatar
Runental
Phoenix Knight
 
Posts: 1159
Joined: Aug 21, 2009 00:00
Location: Funkytown

Postby Runental » May 05, 2010 09:05

Hey Folks

In follow some applications relating to the quality of ONE, here gets a little tutorial on how you get your Video small but fine :)


Preliminary

1.

We make a Movie for the PC, not for the TV. It is therefore wrong to be in the video InterlaceModus to calculate. With us only one question: Progressive Scan!


2. Since our video is for the PC, please make a video for your projects "Square Pixel".

How do I calculate the video in the editing program?

The best method is certainly the uncompressed video to calculate, or with a lossless codec, such as Huffyuv (about 50% compression ratio - the thing is free, so just google and install).

This is of course only if one uses 1) NTSF file system (more than 4 GB can manage large files), and 2) has enough disk space.

Alternatively, you can code the editing program out with a lossy codec. You should then set a very high bit rate. 10000-15000 or so. The higher the better. Then you also get a nearly lossless video file that is not too large.
The first method is to have enough space on the disk to be preferred :)


Compression:

Then you should encode the finished video using VirtualDub and XVid. Both are free! Just google it and download times.

The coding should proceed as follows:

First of all the settings of the codec - the actual coding is below:
Give the five minutes time, all set to:

In VirtualDub -> Video -> Compression -> Choose Xvid -> Configure

Profile at Level --> unrestricted

Click on the MORE button behind it ->

First Tab: Profiles

Quantisation: H.263
Adaptive quantization: YES!
Interlace Encoding: NO!
Quarter Pixel: YES!
Global Motion Compensation: NO!
B-VOBs: YES!
2 - 1:50 to 1:00
Packed Bitstream: Yes!


Second Tab: Level

You can set anything here, since working as unrestricted.


Third tab: Aspect Ratio

Square! Fingers away from other settings!

Ok, we are now back in the main window, Xvid


Encoding Type:

1) the first pass Twopass - 1st Pass
2) at the second round on Twopass - 2nd Pass

Target bitrate -> something between 800-1500 (which you then have to check them out - quality / size

Important: The higher the resolution of your videos the more you have to also adjust the bit rate of the codec.

(Be careful that it not "Target size" - is if this is so, press the button, then it turns arround)


Zone Options:

Here you can set different pack rates for specific sections of the Video- you dont need it really.


Quality preset:

User defined, and then click on the button More

First Tab: Motion

Motion Search Precision -> 6 - Ultra High
VHQ mode -> 4 - wide search
Use VHQ for bframes too> - YES!
Use chroma motion -> YES!

Frame drop ratio: 0
Maximum I-frame interval: always 10 times the FPS of the video. So at 25 FPS 250, 300 at 30 FPS ect :)


Second Tab: Quantisation

All leave it
Below Trellis quantization -> yes!


Now we are back in Main Window.

At the bottom, Other Options:

Encoder:
Xvid turn on and set a hook

Decoder:
Nothing click and Brightness in the center position

Common:
Automatically detect

that is al.


A few Instructions:

First, analyze the video with Twopass - 1st Pass. So import the video to make the above settings and then "Save as AVI".

That is really fast, at least faster than the 2nd pass
In a stats file is created in which remembers Xvid more or less how it will encode the video for good.

AFTER that we shall at Xvic Codec Twopass - 2nd pass and allow the entire charge again. Now it takes longer :)

Important: All settings must remain exactly as in the first round, when 1st Pass!

Only the bit rate may be changed, so you can try out with just a 1st pass at the second pass multiple bit rates to see which setting a most promise regarding size / quality.

It is absolutely amazing with the method, which for small but high quality video files are valid, if one adjusts only 850-1250 c / sec.

Another thing to sound:

It is also extremely important to encode the sound decent. This saves lots again on the MB's. This one can also use VirtualDub.

First audio -> full processing mode
Then Audio -> Compression

Search the list of codecs, an mp3 codec and configure it:

Take the best something between 128-192 kbit / s at 44.1 KHz stereo. Better quality can only hear sound engineer and would be a waste of space. Lousy quality sounds but also normal players out. :)

Should you have no mp3 codec, where you can set these bit rates, then please search via Google on the "Radium" mp3 codec. Download and install - then it appears in the codecs in VirtualDub.

Thats all- no more WMVs please :)

Original Text from Illunaghor German

Sticky please!

greetings,

Runen :)
Image
ONE a Shaman solo Video
TWO a Shaman solo Video

User avatar
Runental
Phoenix Knight
 
Posts: 1159
Joined: Aug 21, 2009 00:00
Location: Funkytown

Postby Runental » Jul 12, 2010 11:58

Update because some Questions in Case of the 1st Pass/2nd Pass:

1. Open the uncompressed Video

2. Video->Compression->xvid->1stPass

2.1. Audio->FullProcessing->Compression->LameMP3 or other good MP3 Codec

3. Save as Avi


*wait and wait and wait.... :) you got a .pass Dat. which is useless.

4. Video->Compression->xvid->2ndPass

5. Save as Avi

wait wait wait, get a coffee, wait wait :)

6. Finished Video


greetings :)
Image
ONE a Shaman solo Video
TWO a Shaman solo Video

User avatar
Runental
Phoenix Knight
 
Posts: 1159
Joined: Aug 21, 2009 00:00
Location: Funkytown

Postby Runental » Jan 31, 2011 14:13

UPDATE:

The following update applies to the x264 codec which delivers better results than xvid.
It is faster, easier to use and especially in light / dark area better than the xvid codec.

1. Step:

Google for the x264 Codec. Be sure that you have the correct Version of x264, (Depends on your operating system 32Bit or 64Bit).

Install it.

2. Step:

Open Virtualdub.

First make the settings in x264. In Virtualdub click: VIdeo---> Compression

Image

x264 should now appear correctly. Click: Configure

Image

Settings:
All settings should be made as shown in the picture:

Image

The rendering process is the same like in xvid.

1st:

Rate Control --> Multipass- 1st pass

--> Save your Video. Wait wait wait :)

If its finish go back to the settings (Video/configure) --> Rate control --> Multi Pass- Nth pass

You can play with the Bitrate. As higher the Bitrate, as higher the Quality, but the bigger the File. As lower the Bitrate as lower the Quality, but the smaler the File. Find a good compromise between quality and size. :)

--> Save as Avi

You will get your finished Video.

greetings,

Runen
Image
ONE a Shaman solo Video
TWO a Shaman solo Video

User avatar
Pelusilla
Warder
 
Posts: 43
Joined: Nov 22, 2010 17:13
Location: Madrid (Spain)

Postby Pelusilla » Feb 06, 2011 03:05

Thanks a lot, i want make a video with my 2001-2003 sshots and didnt know how exactly do that , very useful at least for me :grin:


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests

Thursday, 18. April 2024

Artwork and screen shots Copyright © 2001-2004 Mythic Entertainment, Inc. All rights reserved. Used with permission of Mythic Entertainment. Mythic Entertainment, the Mythic Entertainment logo, "Dark Age of Camelot," "Shrouded Isles," "Foundations," "New Frontiers," "Trials of Atlantis," "Catacombs," "Darkness Rising," the Dark Age of Camelot and subsequent logos, and the stylized Celtic knot are trademarks of Mythic Entertainment, Inc.

Valid XHTML & CSS | Original Design by: LernVid.com | Modified by Uthgard Staff