BOOKS AND ARTICLES Final DivX video 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:
I would like to point out that:
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:
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.
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. We immediately go to the last tab "Profiles", on which:
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:
Now the main tab "Bitrate Control":
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). 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". 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. On the "General" tab:
Bookmark "Advanced":
VBR tab:
Bookmark "Expert":
"Audio Processing" tab:
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. 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:
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.
Recording to AVI file. Menu "File" - "Save as AVI..." 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:
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 ▪ Assembly workshop for beginners See other articles Section video art. Read and write useful comments on this article. Latest news of science and technology, new electronics: Artificial leather for touch emulation
15.04.2024 Petgugu Global cat litter
15.04.2024 The attractiveness of caring men
14.04.2024
Other interesting news: ▪ Mobile phone tracked by a special signal ▪ 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 Triac power regulator. Encyclopedia of radio electronics and electrical engineering
Leave your comment on this article: All languages of this page Home page | Library | Articles | Website map | Site Reviews www.diagram.com.ua |