PDA

View Full Version : Cannot ivtc - help!


snake-boy
6th June 2002, 22:39
Hi all,

Ok, having HUGE problems getting this to work. I am following the guides for Gknot+ DiVX 3.11. Everythings going perfectly along, until I get to the final stage on the "Save and Encode" options.

I enable the Inverse Telecine, but as soon as the audio is finished muxing and Nandub fires up to start the actual video encoding, I get this error:

Avisynth read error:
Avisynth caught an access violation at 0x011fbbbf,attempting to read from 0x057d8000

It then skips to the 2nd pass, and gives the same error again.

This only happens if I select Inverse Telecine. Disabling it, it encodes fine (but looks crap/interlaced).

I tried using the decomb as described in the guide here: http://www.doom9.org/gknot-decomb.htm, but I get the same results. I have completely run out of ideas, could someone with more experience please advise me as to what it causing this.

Note that the results of a compressibility test give the following:
Bits/Pixel*Frame
0.224
Load: 55.6% of 0.403 (According to the guide, this is acceptable.)

I have tried increasing my resolution, as well as making the audio 192 instead of 128. I am aiming for a 340meg file (1 episode anime), I tried increasing AND decreasing this value, but get the same results still.

Please, anyone who has any idea's, please help me out.

Thanks

-snake

PS, I get the following from Gknot's log file:

04:26:46 AM: Started DivX3-First Pass: F:\temp\esca_1.avs
04:26:49 AM: Finished DivX3-First Pass. Duration: 3 seconds.
04:26:49 AM: Speed: 0.926 Frames per Second.
04:26:49 AM: ERROR: Calculation impossible! Desired Video Size is bigger than First Pass (= maximum divx-size for this filter-combination). To solve this you can: 1) lower your Total Size. 2) lower your Video Size (e.g. add bigger audio). 3) do another first pass at a higher resolution or with other filters.
04:26:49 AM: ERROR: Please read the included How-To to understand better what happened!
04:26:49 AM: WARNING: Encoding continued anyway.
04:26:49 AM: WARNING: Filesize will be approximately 324405 kb lower than desired (but best possible quality for this filter combination).
04:26:49 AM: WARNING: Thats an average bitrate of 0 k(=1024)bit/sec (=the highest possible bitrate)
04:26:49 AM: WARNING: instead of 1856 k(=1024)Bits/s (=your desired bitrate).
04:26:49 AM: Created new stats-file: F:\temp\esca_1_9_0_kbps.stats
04:26:49 AM: Created ecf: F:\temp\esca_1_9.ecf
04:26:49 AM: WARNING: Number of counted frames differs from settings!
04:26:49 AM: WARNING: Settings: 33518
04:26:49 AM: WARNING: Counted: 3
04:26:49 AM: WARNING: Difference: 33515
04:26:49 AM: Correcting Bitrate...
04:26:49 AM: Original Bitrate = 1856 k(=1024)Bits/s
04:26:49 AM: ERROR: Correction impossible.
04:26:49 AM: Now encoding at 1856 k(=1024)Bits/s

manono
6th June 2002, 23:11
Hi-

You'll have to post the .avs for us to get an idea of what went wrong. You can leave out the lines with the "#" in front.

snake-boy
6th June 2002, 23:18
(All lines starting with "#" ommitted.)


LoadPlugin("F:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
LoadPlugin("F:\PROGRA~1\GORDIA~1\decomb.dll")
LoadPlugin("C:\WINDOWS\SYSTEM\vobsub.dll")
mpeg2source("F:\temp\esca_29fps.d2v")
Telecide()
Decimate(cycle=5)
crop(4,3,709,475)
VobSub("F:\temp\vts_06_0")
BicubicResize(608,448,0,0.5)

-snake

Awatef
7th June 2002, 00:03
Change the crop line to following:

crop(4,4,708,474)

And your resizing is correct, but better go down to 576x432 for perfect 4:3 aspect ratio (you'll also get slightly better quality at cost of unnoticable sharpness loss)

snake-boy
7th June 2002, 00:17
Hiya,

OK, tried your settings on the crop, but still I get the error message as shown above.

I now dropped the size to 576x432 as recommended, and still, I get the same damn error.?

Yet, as soon as I leave out decomb or "inverse telecine", it works.
Man, this is frustrating, I wish I knew what I was doing wrong!?

-snake

Here's the .avs file from the 576x432 version:

LoadPlugin("F:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
LoadPlugin("F:\PROGRA~1\GORDIA~1\decomb.dll")
LoadPlugin("C:\WINDOWS\SYSTEM\vobsub.dll")
mpeg2source("F:\temp\esca_29fps.d2v")
Telecide()
Decimate(cycle=5)
crop(10,3,697,475)
VobSub("F:\temp\vts_06_0")
BicubicResize(576,432,0,0.5)

Awatef
7th June 2002, 00:26
Are you sure you leaved Forced Film in DVD2AVI unchecked?

If that doesn't help, try using another ivtc plugin.
Download the IVTC 2.2 plugin from the doom9 download page and change your avs script to the following:

LoadPlugin("F:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
LoadPlugin("F:\your_path\ivtc.dll")
LoadPlugin("C:\WINDOWS\SYSTEM\vobsub.dll")
mpeg2source("F:\temp\esca_29fps.d2v")
ivtc(44,11,110)
crop(10,4,696,474)
VobSub("F:\temp\vts_06_0")
BicubicResize(576,432,0,0.5)

As for the crop line, always use values divisible by 2 for 100% safety.

snake-boy
7th June 2002, 00:58
Hi again,

Okay, firstly, THANKS for the help :)

I am 100% certain that I did not use Force Film, in fact I even re-ripped it just to be safe ;) I d/l IVTC 2.2 Plugin as you suggested, and am about to give this a try, but I have a question:

You suggested I use the lines in addition to the current file, but where do you get the values for "ivtc(44,11,110)" ?

LoadPlugin("F:\your_path\ivtc.dll")
ivtc(44,11,110)

And lastly, when on the "save and encode screen", I assume that when you have a plugin inserted in the avs file that you do NOT need to tick the box "Field Operations - Inverce Telecine" ? Correct?

When would you ever use this option if ivtc is to be handled by a plugin?

-snake

manono
7th June 2002, 08:31
Hi-

In the original .avs you had two problems, and Awatef was on the money with one of them. When you IVTC, the horizontal crop must be divisible by four. Or to put it another way, Left Crop plus Right Crop must be a multiple of four. So, crop(10,3,697,475) is still wrong. It's always a good idea to do it that way anyway. Other things, such as SimpleResize require that as well. It's a good idea to have the vertical crops as even numbers as well.

Another possible problem is one that I've noticed sometimes also. It's not an IVTC problem, but a VobSub Problem. Put VobSub after the Resize (the subs will be smaller also doing it the way you had it) and the crashes should go away.

So, if changing the crop doesn't fix it (and it probably will), then give this a try:

LoadPlugin("F:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
LoadPlugin("F:\PROGRA~1\GORDIA~1\decomb.dll")
LoadPlugin("C:\WINDOWS\SYSTEM\vobsub.dll")
mpeg2source("F:\temp\esca_29fps.d2v")
Telecide(Guide=1,Gthresh=50,Chroma=true,threshold=30)
Decimate(cycle=5)
crop(10,4,696,474)
BicubicResize(576,432,0,0.5)VobSub("F:\temp\vts_06_0")
VobSub("F:\temp\vts_06_0")

When you use the Field Operations-Inverse Telecine in GKnot, it's opening the Decomb.dll and adding Telecide()-Decimate() by default. If you do it manually by editing the .avs, or add the other IVTC manually, then of course you don't need to push the Inverse Telecine button in GKnot.

snake-boy
7th June 2002, 14:28
Hi,

THanks to all who have helped me out here. I followed Awatef's idea and used another ivtc plugin (as specified in his post), and it appears to have worked fine. (Well, it didn't crash with the original error I was getting that was mentioned in my 1st post.)

I have yet to watch through the finished version to see if there are still any traces of interlacing there.

But could someone PLEASE tell me were Awatef gets the values:

LoadPlugin("F:\your_path\ivtc.dll")
ivtc(44,11,110)

I don't understand the relevance of the "44,11,110"..? Where does this come from?

I mean it's great that it works, but I need to know how you arrived at those specific values so that I can apply this knowledge to future attempts. Is "44,11,110" a generic thing?

-snake

Awatef
7th June 2002, 16:13
@ snake-boy
Well, in the help file (32,8,15) is recommended.
As I work almost every day on a different Anime DVD, I tweaked the settings every time I got a "bitchy DVD" :D
(44,11,110) works very well for all DVDs I got, it doesn't work perfect, since there is no perfect IVTC plugin, but it should give you in 99% of the cases a clean smooth output.

For badly mastered DVDs (DVD-image seems to be interlaced almost all the time) but that are for sure 24fps, one got to write the following:

...
LoadPlugin("...\ivtc.dll")
LoadPlugin("...\decomb.dll")
...
ivtc(44,11,110)
FieldDeinterlace()
...

This will give in 80 to 90% of the video smooth clean output. The other 10 to 20% will be blended through FieldDeinterlace and may be not that smooth, but this is already the best one can get unless one tries to IVTC manually, which can take a lot a lot of time, especially with Anime, which pattern changes very often!