PDA

View Full Version : problems with divx first pass


Akolite
23rd August 2002, 11:18
I cant seem to correct this error. It still gives me errors when I try and encode the movie. It fails on the first pass and therefore cant open the log file and all goes pair-shaped from there. I looked in the avs file and seems 2 fine. I will post it on monday.

I am totally stumped.

jggimi
23rd August 2002, 15:26
You may just need to re-install DivX5.

A number of people recently reported the same problem. It was determined they'd installed the Divx5 codec...then GKnot, which overlays some DivX5 files with files from DivX4.

Try removing DivX5 and/or Divx4, then re-install DivX5.

Akolite
28th August 2002, 08:49
I tried what you told me. But it didnt work. I then redid the whole thing and it still didnt work. But now with this one, the *.avs file wont open in wmplayer or in vdub. It keeps telling me that there is an unknown error in line 43. I dont know 2 much bout avs scripts, therefore i have posted it here along with my log file. Please can u have a browse through my avs file and try and explain (or fix) this error in line 43.

Shot dot.

LOG FILE

2002/08/27 09:11:21 PM: Job "Movie 1" started.

o DivX5-Single, Quality 20%: C:\lotr\lotr_Credits.avs
o DivX5-First Pass: C:\lotr\lotr.avs
o DivX5-Second Pass: C:\lotr\lotr.avs
o Append Credits.
o Delete Intermediate Files.
End of Job 1 (Movie 1).
_______________________________________________________________________________________________________________________

Gordian Knot 0.26.0.6
Encoding Job Data:

Type: EncD5_Both_CreditsSep
Number: 1
Name: Movie 1
Platform: WinXP (5.1.2600).2

Files:
VirtualDubExe: C:\PROGRA~1\GORDIA~1\virtualdub\Virtualdub.exe
NandubExe: C:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: C:\lotr\lotr.avi
AviMovie: C:\lotr\lotr_Movie.avi
AviCredits: C:\lotr\lotr_Credits.avi
MovieFS: C:\lotr\lotr.avs
CreditsFS: C:\lotr\lotr_Credits.avs
Log : C:\lotr\lotr.log
Stats: C:\lotr\lotr.stats
Ecf :

Options:
Quality/DRF: 20
CreditsStart: 245368
UseEcf: 0
CreditsIVTC: 0
CreditsAppend: 1
DeleteInterm.: 1
EnforceBitrate:0
AntiShit: 0

Calculator:
VideoSize: 1220104 kbyte.
Audio1Size: 197330 kbyte.
Audio2Size: 0 kbyte.
Overhead: 16165 kbyte.
AviSize: 1433600 kbyte (1400 mbyte).
FilesSize: 0 kbyte.
TotalSize: 1433600 kbyte (1400 mbyte).
Interleaving: vbrmp3
Bitrate: 974 k(=1000)Bits/s
Frames: 256596
FPS: 25.000
Duration: 2:51:4
Quality: 0.238 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.000 bits/(pixel*frame).
DivX5BiDirect: 0
DivX5GMC: 0
DivX5QuartPel: 0
DivX5PsyVis: 0
Resolution: 640 x 256

Audio 1:
mode: Just Mux Source File.
sourceFile: C:\lotr\lotr AC3 T01 3_2ch 448Kbps DELAY -288ms.mp3
wavFile: C:\lotr\lotr AC3 T01 3_2ch 448Kbps DELAY -288ms.wav
mp3File: C:\lotr\lotr AC3 T01 3_2ch 448Kbps DELAY -288ms_1.mp3
azid: ""
lame: ""
delay: -288
interval: 2
preload: 500
mux: 1
recalc: 1
deleteWav: 1

Audio 2:
none.

09:11:21 PM: Audio 1, determined: 197330 kb
09:11:21 PM: Audio 1, calc: 197330 kb
09:11:21 PM: New Bitrate for Movie = 974 k(=1000)Bits/s

Adding this script to C:\PROGRA~1\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 Single Pass"
// $input "C:\lotr\lotr_Credits.avs"
// $output "C:\lotr\lotr_Credits.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\lotr\\lotr_Credits.avs",0,0);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,0,0,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.SetCompData(308,"GAEAAACgDwDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAQAAAMgAAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAGVtcHR5AGM6XHRlc3QuZGl2eABlbXB0eS5tdgBt");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\lotr\\lotr_Credits.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

09:11:21 PM: Started DivX5-Single, Quality 20%: C:\lotr\lotr_Credits.avs
09:11:23 PM: Finished DivX5-Single, Quality 20%. Duration: 2 seconds.
09:11:23 PM: Assumed: Main Movie has 245368 Frames.
09:11:23 PM: Assumed: Credits Part has 11228 Frames.
09:11:23 PM: Credits Size = 0Kb
09:11:23 PM: New Bitrate for Movie = 1019 k(=1000)Bits/s

Adding this script to C:\PROGRA~1\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 First Pass"
// $input "C:\lotr\lotr.avs"
// $output "C:\lotr\lotr_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\lotr\\lotr.avs",0,0);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,0,0,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.SetCompData(326,"GAEAAHiMDwDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAgAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEM6XGxvdHJcbG90ci5sb2cAYzpcdGVzdC5kaXZ4AEM6XGxvdHJcbG90ci5tdgBt");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\lotr\\lotr_Movie.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

09:11:23 PM: Started DivX5-First Pass: C:\lotr\lotr.avs
09:11:25 PM: Finished DivX5-First Pass. Duration: 1 second.
09:11:25 PM: Trying to open Log-file.
09:11:25 PM: Error: Could not open C:\lotr\lotr.log
09:11:25 PM: Error: Could not count encoded Frames.
09:11:25 PM: Speed: 0.000 Frames per Second.
09:11:25 PM: WARNING: Number of counted frames differs from settings!
09:11:25 PM: WARNING: Settings: 245368
09:11:25 PM: WARNING: Counted: 0
09:11:25 PM: WARNING: Difference: 245368
09:11:25 PM: Correcting Bitrate...
09:11:25 PM: Original Bitrate = 1019 k(=1000)Bits/s
09:11:25 PM: ERROR: Correction impossible.
09:11:25 PM: Now encoding at 1019 k(=1000)Bits/s

Adding this script to C:\PROGRA~1\GORDIA~1\virtualdub\VirtualDub.jobs:

// $job "DivX4 Second Pass"
// $input "C:\lotr\lotr.avs"
// $output "C:\lotr\lotr_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\lotr\\lotr.avs",0,0);
VirtualDub.audio.SetSource(0);
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,0,0,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.SetCompData(326,"GAEAAHiMDwDQBwAACgAAABQAAAAsAQAADAAAAAIAAAAFAAAAAwAAAJABAAAAAAAAAAAAAB4AAABkAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAyAAAAAAAAAAAQAACamZmZmZnJP5qZmZmZmck/QAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAEAAAD/////BAAAAEM6XGxvdHJcbG90ci5sb2cAYzpcdGVzdC5kaXZ4AEM6XGxvdHJcbG90ci5tdgBt");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\lotr\\lotr_Movie.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

09:11:25 PM: Started DivX5-Second Pass: C:\lotr\lotr.avs
09:11:26 PM: Finished DivX5-Second Pass. Duration: 1 second.
09:11:26 PM: Speed: 0.000 Frames per Second.

Adding this script to C:\PROGRA~1\GORDIA~1\nandub\VirtualDub.jobs:

// $job "DivX3 Append"
// $input "C:\lotr\lotr_Movie.avi"
// $output "C:\lotr\lotr.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\lotr\\lotr_Movie.avi",0,0);
VirtualDub.Append("C:\\lotr\\lotr_Credits.avi");
VirtualDub.audio.SetSource("C:\\lotr\\lotr AC3 T01 3_2ch 448Kbps DELAY -288ms.mp3");
VirtualDub.audio.SetMode(0);
VirtualDub.audio.SetInterleave(1,500,2,0,-288);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.audio2.SetSource(0);
VirtualDub.audio2.SetMode(0);
VirtualDub.audio2.SetInterleave(1,0,0,0,0);
VirtualDub.audio2.SetClipMode(1,1);
VirtualDub.audio2.SetConversion(0,0,0,0,0);
VirtualDub.audio2.SetVolume();
VirtualDub.audio2.SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\lotr\\lotr.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

09:11:27 PM: Started Appending Credits and Muxing Audio.: C:\lotr\lotr_Movie.avi
09:11:27 PM: Finished Appending Credits and Muxing Audio.. Duration: 0 seconds.
09:11:27 PM: Deleting Intermediate Files.
09:11:27 PM: Problem: Could not delete C:\lotr\lotr_Movie.avi
09:11:27 PM: Problem: Could not delete C:\lotr\lotr_Credits.avi

09:11:27 PM: Done.
09:11:27 PM: Movie = C:\lotr\lotr.avi
Total Encoding Time: 6 seconds.
2002/08/27 09:11:27 PM: Job "Movie 1" finished.
_______________________________________________________________________________________________________________________


AVS SCRIPT & AVS CREDITS

#
# Created with Gordian Knot
#
# http://thewef.nav.to
#
# PLUGINS
# get them from http://users.win.be/dividee
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\InverseTelecine.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\Avisynth_Spatial.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\GreedyHMA.dll")
#LoadPlugin("C:\WINDOWS\System32\vobsub.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\SimpleResize.dll")
#
# SOURCE
mpeg2source("C:\lotr\lotr.d2v")
#
# TRIM
trim(0,245367)
#
# IVTC
#Telecide()
#Decimate(cycle=5)
# or use
#InverseTelecine(40,10,15)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# DEINTERLACING
#FieldDeinterlace()
# or use
VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
# CROPPING
crop(0,78,718,418)
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
BicubicResize(640,256,0,0.5)
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#ResampleAudio(44100)

_________CREDITS_______________

#
# Created with Gordian Knot
#
# http://thewef.nav.to
#
# PLUGINS
# get them from http://users.win.be/dividee
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\InverseTelecine.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\Avisynth_Spatial.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\GreedyHMA.dll")
#LoadPlugin("C:\WINDOWS\System32\vobsub.dll")
#LoadPlugin("C:\PROGRA~1\GORDIA~1\SimpleResize.dll")
#
# SOURCE
mpeg2source("C:\lotr\lotr.d2v")
#
# TRIM
trim(245368,0)
#
# IVTC
#Telecide()
#Decimate(cycle=5)
# or use
#InverseTelecine(40,10,15)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# DEINTERLACING
#FieldDeinterlace()
# or use
VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
# CROPPING
crop(0,78,718,418)
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
BicubicResize(640,256,0,0.5)
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#ResampleAudio(44100)

hakko504
28th August 2002, 09:00
Originally posted by Akolite
AVS SCRIPT & AVS CREDITS

LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec.dll")
mpeg2source("C:\lotr\lotr.d2v")
trim(0,245367)
crop(0,78,718,418)
VerticalReduceBy2() # move this line down after the crop.
BicubicResize(640,256,0,0.5)
VerticalReduceBy2() must come after crop()! Read this thread: GKnot 0.26 and Fast Deinterlace: Bugfix available (http://forum.doom9.org/showthread.php?s=&threadid=30934)

jggimi
28th August 2002, 15:07
Hakko found it before I did -- as usual. You can either edit the .avs to correct the error, or install GKnot 0.26.1.

Akolite, had you always had Fast Deinterlace selected? If so, your .avs script should not have worked in wmp or vdub.

Akolite
29th August 2002, 08:09
Thanx dudes. It works. It really works!
Shot 4 the help Hakko and jggimi.
Onward Ho!!!


L8r