Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


BOOKS AND ARTICLES
Free library / Directory / video art

Final DivX video

video art

Directory / video art

Comments on the article Comments on the article

Introduction

Under the final video, we mean video that is intended only for viewing, and which will not be further processed. Typically, such a video needs to be saved with an optimal size / quality ratio.

Moreover, it is the size that plays a more significant role. For example, an AVI file will be further stored on a screw - in this case, it is better if it takes up less space. Or the video is planned to be written to a CD-R in the future, and you need to compress it in such a way that it would fit on it.

I hope you will agree that if there were no restrictions on volume (size), then there would be no quality problems! :)

Thus, depending on the desired size, or on the amount of disk space available, trimming of the final video begins. In this case, two codecs are most often used:

  • For Mpeg4 video stream (usually DivX). When compressing DivX video with a video codec, we will use two-pass compression. In this case, during the first pass, the video is only analyzed, fast and slow scenes are highlighted in it. For each scene, the second pass uses its own compression method. Thus, the codec is used more optimally, which ultimately improves the quality of the final video.
  • For Mp3 sound. When compressing audio in MP3, we will use a variable bit rate (VBR). The codec analyzes the compressed audio, and in areas where a high bitrate is not needed to achieve the required quality, it automatically reduces it. Thus, the same quality is achieved as at a constant bitrate, but with less disk space requirements.

I would like to point out that:

  • Initially, the goal was "quality at an acceptable size" and all sorts of secondary factors, such as the time spent on this processing, do not count.
  • If you know other ways, especially if they are more effective, I will listen to them with pleasure, and of course I will post them here so that other site visitors can learn about them.
  • Before proceeding, make sure you have DivX video codec version 5.0.3 or higher installed.

1. Video processing

And so, we will assume that we have an intermediate video that you captured with the least possible loss.

Using the VirtualDub program, we process the existing video, for example:

  • cut out unnecessary fragments;
  • apply filters;
  • trim uneven edges
  • decrease the resolution.

2. Video compression

With the audio track at this stage it is easier, for it we select in the menu "Audio" - "Direct stream copy" i.e. copy it unchanged. Of course, those fragments that we cut out in the video will be cut out in the sound accordingly.

In the future, we will compress audio to MP3 format with a variable bitrate (VBR), and since VirtualDub cannot work with MP3 VBR, we will do this later, with another software. In the meantime, select "Direct stream copy" for the sound.

Final DivX video Final DivX video

For the video stream, select "Video" - "Full processing mode" in the menu. complete video editing.

We are setting up the DivX video codec. Menu "Video" - "Compression...", select "DivX Pro 5.0.3 Codec" from the list, press the "Configure" button.

Final DivX video

We immediately go to the last tab "Profiles", on which:

  • Make sure "Choose your profile" is checked.
  • Choose one of the profiles:
    • Handheld if the video does not exceed 176x144x15fps;
    • Portable if the video does not exceed 352x288x25fps;
    • Home Theater if the video does not exceed 720x576x25fps;
    • High Definition if the video does not exceed 1280x720x30fps.
  • Check the box "Use Bidirectional Encoding".
  • The rest is default.

Final DivX video

We do not touch the "Manage Settings" tab now. It is designed to save DivX codec settings options. Sometimes it is useful to save DivX codec settings. Then, you can return to the saved settings at any time.

On the "General Parameters" tab:

  • Highlight "Psychovisual Enhancement", slider to "Normal".
  • Highlight "Pre Processing Source", slider to "Normal".
  • The rest is default.

Final DivX video

Now the main tab "Bitrate Control":

  • Select "Variable Bitrate mode" - "Multipass, 1st pass" (Multipass compression, first pass).
  • "Encoding Bitrate" slider - bitrate of the video stream. The higher the value, the better the quality of the video, but also the larger it is. The bitrate is usually selected experimentally. From my own experience, I can say that most often this number is in the range from 550-1150 kbps. The range of bitrate change depends on the selected profile on the "Profiles" tab. Read on to find out how to choose this value.
  • The rest is default.

Final DivX video

Click "OK" and then "OK".

We start encoding, menu "File" - "Save as AVI ...", set the location and name of the AVI file, click "Save".

Encoding process started (first pass).

Upon completion of the first pass, the resulting AVI file will not be large at all - this is not a video file yet, but only its information, which we will then delete.

Go back to the video codec settings. Menu "Video" - "Compression...", select "DivX Pro 5.0.3 Codec" from the list, press the "Configure" button. On the first tab "Bitrate Control", select "Variable Bitrate mode" - "Multipass, nth pass" (Multipass compression, Nth pass).

Final DivX video

Click "OK" and then "OK".

Note! No more settings can be changed! This applies to the codec settings, and even more so to the video processing settings in VirtulDub. If you change something, you will have to redo the first pass.

We start encoding, menu "File" - "Save as AVI ...", set the location and name of the AVI file, click "Save".

Encoding process started (second pass). The time spent on the second pass is the same as that spent on the first.

This time, upon completion, we will get a ready-made video. Which you can view and evaluate the resulting image quality.

The resulting AVI file is large enough, because. we didn't use compression for audio...

3. Sound processing

Open the resulting AVI file after the second pass in VirtualDub.

We save the audio track in a separate WAV file, for this we select "File" - "Save WAV ..." in the menu. Specify the location and name of the WAV file, click "Save".

Final DivX video

After that, VirtualDub can be closed, we no longer need it.

At this stage, if desired, the resulting WAV file can be processed with filters, in any sound editor. For example, in order to remove noise or increase the overall sound level.

And so we have uncompressed sound in the form of a WAV file... To compress it into MP3, we will use the Lame codec (for convenience, we will work with it through the RazorLame shell). You can download the codec immediately with the shell here.

Unpack the archive into a temporary directory and run RazorLame.exe

Click the "Add" button, open the resulting WAV file.

Click the "Lame" button.

Final DivX video

On the "General" tab:

  • Bitrate slider set to 96 kbit - lower bitrate value.
  • "Mode" - "Mono" or "Stereo" - depending on what kind of sound you have.

Final DivX video

Bookmark "Advanced":

  • "Optimization" - "Quality".
  • The rest of the checkboxes are not selected.

Final DivX video

VBR tab:

  • Select the "Enable Variable Bitrate (VBR)" checkbox.
  • The slider "Maximum VBR Bitrate" to the position 192 kbit - the upper value of the bitrate.
  • The "Quality" value is set to 2.
  • The rest of the checkboxes are not selected.

Final DivX video

Bookmark "Expert":

  • The checkboxes are not selected.
  • All by default.

Final DivX video

"Audio Processing" tab:

  • "Output sampling frequency" - "default" - required. I do not recommend changing the frequency here. If there is such a need, then it is better to do this beforehand, in any sound editor.
  • The rest of the checkboxes are not selected.

Final DivX video

RazorLame settings data can be saved to be used again in the future, to do this, click the "Save options ..." button.

Click "OK".

Everything is ready, start encoding, press the "Encode" button. After a while, we get an MP3 file with the same name as the WAV.

Final DivX video

If you subtract the size of the WAV file from the size of the AVI file. Get the size of the video without sound. This will help if you need to fit the final video, let's say on a CD. By varying the maximum and minimum bitrates for MP3 encoding, you can ensure that the size of the received MP3 file + the size of the video without sound = the size of the disk (700MB).

4. Consolidate compressed video and audio into one AVI file

Let me remind you that at the moment we have:

  • AVI file with compressed video and uncompressed audio.
  • Audio compressed in MP3 (MP3 file).

In order to combine them into one whole, we will use the NanDub program.

Open the AVI file in it. Menu "File" - "Open Video File...".

Connect MP3 sound. Menu "Audio" - "(VBR) MP3 audio...". Open the previously received MP3 file.

For video and sound, select "Direct stream copy" in the respective menus. Thus, we only copy the streams into one final AVI file without doing any processing.

Final DivX video Final DivX video

Recording to AVI file. Menu "File" - "Save as AVI..."

Final DivX video

That's it.

5. About how to choose the right bitrate when compressing video

In principle, the value of the bitrate is easily calculated. But I, no matter what you finally hammer your head, I will recommend using a special program Bearson's Bitrate Calculator.

In the program you specify:

  • The duration of the compressed video, in minutes.
  • The desired size, in the number of disks of 650 MB or directly in MB.
  • Sound quality. Unfortunately, the program does not assume that the sound can be mono. But even if you have a mono sound, it is quite possible to navigate by the magnitude of the stream (kb / sec).

We enter the resulting bitrate in the DivX codec settings. Of course, the number can be rounded up a bit.

PS: Usually such a calculation justifies itself and the size of the resulting file is very close to the calculated one. But even if you do not quite meet the expected size. There is always an opportunity to correct it due to the sound. As I already said, this can be done by varying the maximum and minimum bitrates for MP3 compression.

Author: Dmitry Kornev; Publication: pctuner.ru

 We recommend interesting articles Section video art:

▪ Lighting: basic concepts and practical recommendations

▪ Free music for legal use

▪ Assembly workshop for beginners

See other articles Section video art.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Artificial leather for touch emulation 15.04.2024

In a modern technology world where distance is becoming increasingly commonplace, maintaining connection and a sense of closeness is important. Recent developments in artificial skin by German scientists from Saarland University represent a new era in virtual interactions. German researchers from Saarland University have developed ultra-thin films that can transmit the sensation of touch over a distance. This cutting-edge technology provides new opportunities for virtual communication, especially for those who find themselves far from their loved ones. The ultra-thin films developed by the researchers, just 50 micrometers thick, can be integrated into textiles and worn like a second skin. These films act as sensors that recognize tactile signals from mom or dad, and as actuators that transmit these movements to the baby. Parents' touch to the fabric activates sensors that react to pressure and deform the ultra-thin film. This ... >>

Petgugu Global cat litter 15.04.2024

Taking care of pets can often be a challenge, especially when it comes to keeping your home clean. A new interesting solution from the Petgugu Global startup has been presented, which will make life easier for cat owners and help them keep their home perfectly clean and tidy. Startup Petgugu Global has unveiled a unique cat toilet that can automatically flush feces, keeping your home clean and fresh. This innovative device is equipped with various smart sensors that monitor your pet's toilet activity and activate to automatically clean after use. The device connects to the sewer system and ensures efficient waste removal without the need for intervention from the owner. Additionally, the toilet has a large flushable storage capacity, making it ideal for multi-cat households. The Petgugu cat litter bowl is designed for use with water-soluble litters and offers a range of additional ... >>

The attractiveness of caring men 14.04.2024

The stereotype that women prefer "bad boys" has long been widespread. However, recent research conducted by British scientists from Monash University offers a new perspective on this issue. They looked at how women responded to men's emotional responsibility and willingness to help others. The study's findings could change our understanding of what makes men attractive to women. A study conducted by scientists from Monash University leads to new findings about men's attractiveness to women. In the experiment, women were shown photographs of men with brief stories about their behavior in various situations, including their reaction to an encounter with a homeless person. Some of the men ignored the homeless man, while others helped him, such as buying him food. A study found that men who showed empathy and kindness were more attractive to women compared to men who showed empathy and kindness. ... >>

Random news from the Archive

robot 14.12.2000

The robot, created by IBM, can make faces. With the help of a television camera, he catches the facial expression of the person standing in front of him, and accordingly changes the position of his pupils, eyebrows and lips.

So far, this is only a toy, but it was created to demonstrate and debug the principle of operation of household appliances of the near future, which will be able to obey the movement of the eyebrows and eyes of their owner. This method of control will be especially convenient for the disabled.

Other interesting news:

▪ Mobile phone tracked by a special signal

▪ Spy set-top box

▪ SMS will save a stolen car

▪ Velcro threatens the nature of Antarctica

▪ Super-maneuverable Tsubame satellite

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site For a beginner radio amateur. Article selection

▪ article From all diseases, the sun, air and water are more useful to us. Popular expression

▪ article Have people always lived in families? Detailed answer

▪ Delphinium article. Legends, cultivation, methods of application

▪ article Maintenance of coolant temperature. Encyclopedia of radio electronics and electrical engineering

▪ article Triac power regulator. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024