Content
- DVD preparation
- vStrip
- DGMPGDec
- Video processing
- What is interlace and what it is eaten with
- How to determine what we have: progressive, interlaced or telecined?
- Getting rid of ordinary interlacing (deinterlace)
- IVTC
- Squeeze and pack
What does a DVD consist of?
If you open the DVD, there you can find a bunch of files with incomprehensible extensions.
IFO.
I n fo rmation. It contains various information for navigating the disk. Heads, for example.
')
BUP.
B ack
UP . Backup copy of the previous file type.
VOB.
V ideo
OB jects. This type of file includes audio, video, subtitles and uninteresting service information. These files can be opened in a regular video player if you have the necessary decoders. In case you are watching a DVD on a computer, you probably have them. (and if not, then you must put)
DVD preparation
Before starting the coding source should be prepared. Generally speaking, you can not cook, encode right as it is, then cut, but this is not good - let us be a little bored and naughty. :)
The data we are interested in is mainly contained in VOB files. Very well, if one movie takes a whole DVD, then we can take them (VOB files) and encode them all at once (if there is no advertising and the like), but I, for example, often have to encode serials, which means that in one A VOB file can be (and usually is) the end of one series and the beginning of another. Therefore, the question arises - how to cut this thing correctly. If the DVD was created by non-noname pirates (by the way, for the most part they have already learned how to do everything well), then the disc contains a table of contents (chapters) in which this or that series lasts for a long time. In the end, we get the video of interest in one VOB file, which is very convenient.
First, there is a terrible utility whose name I forgot, but as I recall, I will definitely write here to scare you. (
allemeine suggested that this is an IFOEdit). It gives all the information you can about DVD analyzing VOB, IFO and other files. Now we need another program called vStrip. You can download it, for example,
here . Initially, this is the command-line tool, but for it there is a GUI, which greatly facilitates the work.
We select VOB files which contain information of interest to us. In other words, we need to select those files in which those series lie (or the entire film) that we want to encode. It all depends on the manufacturer of the disk. There may be several options, but it will be difficult to describe everything, so in various specific cases you may have to break your head a little. If you know what else, then I will add them here.
First, let's see how the files on the disk are named. And they are usually called like this:
VTS_01_0.IFO
VTS_01_0.VOB
VTS_01_1.VOB
...
VTS_01_n.VOB
VTS_02_0.IFO
VTS_02_0.VOB
VTS_02_1.VOB
...
VTS_02_n.VOB
VTS_m_0.IFO
VTS_m_0.VOB
VTS_m_1.VOB
...
VTS_m_n.VOB
where n and m are some integers.
Option 1.
Small m, usually 2 and large n. Then the files that we need are stored in the VTS_01 files, and in VTS_02 there is some kind of advertisement, announcements of new discs of the manufacturer’s company, etc.
Option 2.
Big m and not very big n. In this case, the data of interest to us and sometimes the advertisement are stored in the VTS_m files.
The second option is most loved (or loved, have not come across) for a long time. You can check where you are with a regular video player by opening VOB files one by one. By the way, I prefer
Media Player Classic .
Option 3. them.
khimIn this case, part of the video that regularly repeats from series to series, opening and ending, for example, is stored in a separate file, due to which space is saved and unnecessary problems are delivered to us. (see the original text in the comments). In this case, this piece should be saved separately, and then, with the help of AviSynth, connected to the main part, but more on that later. (and you can leave it this way, however, this is the business of the one who rips).
OK. You have identified which group of files contains what interests you. It's time to cut it all out. Run the vStrip GUI.

Click on the Add ... button and add VOB files. And add the whole group of files.
For example, you have the following list of files:
VTS_02_0.VOB
VTS_02_1.VOB
VTS_02_2.VOB
VTS_02_3.VOB
If the video you are interested in is stored in VTS_02_2, then add both VTS_02_1 and VTS_02_3 too. In the event that the file does not fit, for example, a video with the initial menu is stored in it (why do you need to encode the menu?), Then the program will curse and offer to exclude. So she swears:

This file is not worth adding, click on Nein. Yes, I am also amused by the reluctance of the author to do the dialogue in English. Probably a trick. :)
I got this picture:

Now go to the tab IFO. And open the IFO file corresponding to our VOB.

If you have this list of files:
VTS_02_0.VOB
VTS_02_1.VOB
VTS_02_2.VOB
VTS_02_3.VOB
then the corresponding IFO will be called VTS_02_0.IFO.
I did it like this:

After the program opens the IFO file, you will see the disk's table of contents according to how the manufacturer has compiled it. Make it quite differently. For example, they can mark the beginning, middle and end or opening, the beginning of the series, the middle of the series, the end of the series, ending for each series. In general, a lot of options, so here you have to mark empirically.
First, let's expand the tree of the table of contents:

Right click on the first leaf of the tree and click “Set Start LBA”

With this action we marked the beginning of the piece being cut. You see, on each leaf of the tree there is a chapter duration:

In mind, add these durations until they add up to the duration of the series. For example, I know that in my case the length of the series is ~ 23 minutes:

As soon as you decide on the chapter on which your series ends, then right-click on it and select “Set End LBA”:
Note: In particular for the case of them. khim Sometimes it happens that the required piece takes up exactly one leaf of the tree. In this case, use the last remaining menu item, “Set Start & End LBA”. Thus, only this piece will be “cut out”.Everything, we marked the boundaries by which vStrip will cut out our video. Go to the third tab “Output”, enter the name of the output file and click Run:

At the output, from a bunch of VOB files, you get one, which contains only what we need and only what applies to a particular series. It seems to me that it is very convenient.
Note: The exception is the case of them. khim and the like. In this case, you will have a few pieces, which we then connect using AviSynth, but in any case it is better than trying to determine the boundaries of the series by eye.In the next part - preparing the video for work in AviSynth.