logo Sign In

Post #472842

Author
Pagz
Parent topic
Issues with AVI from M2V
Link to post in topic
https://originaltrilogy.com/post/id/472842/action/topic#472842
Date created
11-Feb-2011, 7:44 PM

How does one use AVIsynth with DGindex? I've created my avisynth script as per the instructions in adigitalman's guide, but I don't truly understand what to do with that script. Which program do I use? The guide says to check the video in virtualdubmod, what video? The M2V I want to turn into an AVI? or the AVI that i'm supposed to make using that avisynth script?

If I load the video I want to encode into virtualdubmod I don't get an option to use the script to make an AVI, so what's the difference in watching the preview before or after I made the script this program doesn't use? TMPGenc will take the AVIsynth script, but it's going to give me a M2V file. Why would I need an M2V file when I'm trying to turn the M2V file I already have into an AVI? I'm thoroughly confused.

Step 3 (if needed): Converting 4x3 interlaced video to 16x9 anamorphic video.
Gordian Knot installs several utilities with AVISynth that help you perform some basic video conversion functions. Essentially we will take the M2V/MPV files you have fixed, create a script based on their basic info for AVISynth, modify that script, generate and uncompressed AVI of the manipulation, then re-encode back to M2V. It's a tedious process, but one well worth it.

* Under the Gordian Knot suite of additional apps, launch DGIndex.
* Open the M2V file. Open only one at a time if you're doing multiple videos.
* Save this D2V project with a unique name.
* Launch Gordian Knot and open the .D2V file you just created
* This will launch a second window, with the video actually in it.
* Click "Save & Encode." This will open another window.
* Just click "Save" in this window. No need to encode yet. This will create an AVS file (just a text script). Give it a unique name. I usually choose the same name as the D2V file and the M2V file to keep them grouped together.
* Open the AVS file in notepad or other text editor of choice.
* Note that the "#" character is used to comment (i.e. render inactive) a particular line.
* If the video is telecined (if it shows scan lines for 2 out of every 5 frames) we need to do an inverse telecine. Uncomment the line: LoadPlugin("C:\PROGRA~1\GORDIA~1\AviSynthPlugins\decomb.dll") and uncomment the line Telecide(order=1,guide=1).Decimate() by removing the # character at the start of each of those lines.
* Assuming you're editing NTSC and not PAL:
* Change the cropping command to read: crop(0,60,720,360). This will remove 60 pixels from the top and from the bottom. (PAL should be (0,38,720,404)
* Change the resizing command to read: LanczosResize(720,480). This will stretch the image to anamorphic proportions.
* Uncomment the line: Undot()
* Save the file

* Under the Gordian Knot suite of additional apps, launch VirtualDubMod and preview the video to make sure it looks right.
* Launch TMPGEnc
* Start a project with the setting DVD NTSC 16:9 (or PAL if appropriate).
* In the next window drag your AVS Script into the video source.
* Click next until you get to the Bitrate setting window.
* Make sure the bitrate setting has the average video bitrate setting at 8000. This is the maximum number allowed and will ensure the best possible video quality.
* Click Next and name the output file. The default name may conflict with the original source. Be certain that it doesn't so you don't have to rip from scratch if something goes wrong. I suggest renaming the source file, since most of your work is based off the "fix" file.
* You can check to run the job in batch if you have multiple files.
* Set the conversion to run, go run a marathon and read War and Peace. Take a vacation. Solve world hunger. After all of that, your new M2V files should be ready.