Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > (Auto) Gordian Knot

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th January 2004, 17:25   #1  |  Link
a2j
Registered User
 
Join Date: May 2003
Location: Russia
Posts: 29
Problem with opening avi

Hi there,

Sorry if this already being discussed here, I just do not know how to put all this in search field (my English isnot that good).

When I am trying to open avi file with Gknot, it open the "FramNo" window. But there is the problem: I just see two thirds of gray and lower third green. I cannot see video and because of that I do not know what to use for cropping and since I encode TV-footage, I need to crop invisible fields - it's just a mess - I do not need it in DivX file. Anybody can help how to about it?

Other question. When I used GK 0.27 with DivX5.0.1 it would take only 17 hours on my machine to code up 1 hour long programm. Now with GK0.28 and DivX5.1 it takes about 32 hours for the same programm. Anybody knows why?
a2j is offline   Reply With Quote
Old 15th January 2004, 18:46   #2  |  Link
jggimi
Moderator Emeritus
 
jggimi's Avatar
 
Join Date: Dec 2001
Location: The NW corner of Lake Erie
Posts: 5,552
Gknot uses Microsoft Windows AVI services to open .avifiles, and certain types of .avi files may have trouble being opened. You might create a short .avs script that uses Microsoft DirectShow, and open the .avs file instead. For example:
Quote:
DirectShowSource("file.avi",audio=false)
DivX 5.0 and DivX 5.1 use very different compression methods. If you want a speed similar to 5.0, then set your encoding method to "Standard." This issue has been discussed in great length in the DivX Encoding forum.
jggimi is offline   Reply With Quote
Old 15th January 2004, 20:49   #3  |  Link
a2j
Registered User
 
Join Date: May 2003
Location: Russia
Posts: 29
Thank you for answering. It really helped. I am not so much into AviSynth, so for me ANY help here is a HUGE help.

And about encoding - thank you, now I know where to look further.
a2j is offline   Reply With Quote
Old 16th January 2004, 21:26   #4  |  Link
a2j
Registered User
 
Join Date: May 2003
Location: Russia
Posts: 29
Well jggimi,

It works to open file, but now I have another problem - didn't have it when opening plain *.avi - If I open file through *.avs, then after first pass with DivX VirtualDub get an error saying "Access violation" - so, there is something wrong with access to the file or I should look for solution in another direction?
a2j is offline   Reply With Quote
Old 16th January 2004, 23:46   #5  |  Link
jggimi
Moderator Emeritus
 
jggimi's Avatar
 
Join Date: Dec 2001
Location: The NW corner of Lake Erie
Posts: 5,552
I don't know why the first pass would work and the second pass would not, since both are getting the same video served via AviSynth. If there were some problem with the nested .avs scripts, I would think your first pass would fail. Perhaps the first pass failed but you didn't notice?

Please post your _GKnot.log file, just in case there's something in it that might help diagnose the trouble.
jggimi is offline   Reply With Quote
Old 17th January 2004, 07:58   #6  |  Link
a2j
Registered User
 
Join Date: May 2003
Location: Russia
Posts: 29
Quote:
Originally posted by jggimi
Please post your _GKnot.log file, just in case there's something in it that might help diagnose the trouble.
The exact error message says:
========================================
Avisynth open failure:
Avisynth read error:
Avisynth: caught an access violation at 0x00f2f3c0,
attempting to read from 0x00000004
(c:\tdj-tbp-3-eng2.avs, line 19)
========================================

Using two avs's open with c:\tdj-tbp-3-eng.avs wich is simply:
========================================
DirectShowSource("tdj-tbp-3-eng.avi",audio=false,"YUY2")
========================================

Then I do all neccesary settings in GK and save as another avs with name c:\tdj-tbp-3-eng2.avs which is here:
========================================
#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
LoadPlugin("C:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\undot.dll")
#
# SOURCE
avisource("C:\tdj-tbp-3-eng.avs")
#
# CROPPING
crop(12,6,688,562)
#
#
# RESIZING
LanczosResize(640,528)
#
Undot()
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
SelectRangeEvery(280,14)
#
======================================== (I've deleted the blocks that are not used at all)

So, in result I have two _GKnot.log files
This is first one:
========================================
17.01.2004 9:01:04: Job " 1" started.

o DivX5-First Pass: C:\tdj-tbp-3-eng2.avs
o DivX5 - Pass 2: C:\tdj-tbp-3-eng2.avs
o Mux Audio.
End of Job 1 ( 1).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

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

Files:
VirtualDubModExe: C:\PROGRA~1\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: C:\tdj-tbp-3-eng2.avi
AviMovie: C:\tdj-tbp-3-eng2_Movie.avi
AviCredits: C:\tdj-tbp-3-eng2_Credits.avi
MovieFS: C:\tdj-tbp-3-eng2.avs
CreditsFS:
Log : C:\tdj-tbp-3-eng2.log
Stats: C:\tdj-tbp-3-eng2.stats
Ecf : C:\tdj-tbp-3-eng2.ecf

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

Calculator:
VideoSize: 658160 kbyte.
Audio1Size: 48812 kbyte.
Audio2Size: 0 kbyte.
Overhead: 3682 kbyte.
AviSize: 710656 kbyte (694 mbyte).
FilesSize: 0 kbyte.
TotalSize: 710656 kbyte (694 mbyte).
Interleaving: 1stream
Bitrate: 1726 k(=1000)Bits/s
Frames: 78096
FPS: 25.000
Duration: 052:4
Quality: 0.204 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.659 bits/(pixel*frame).
Resolution: 640 x 528

Audio 1:
Mode: Just Mux Source File.
SourceFile: C:\tdj-tbp-3-english.mp3
WavFile: C:\tdj-tbp-3-english.wav
Mp3File: C:\tdj-tbp-3-english_1.mp3
Azid:
Lame:
Delay: 0
Interval: 1
Preload: 500
Mux: 1
Recalc: 1
DeleteWav: 1

Audio 2:
none.

9:01:04: Audio 1, determined: 48810 kb
9:01:04: Audio 1, calc: 48812 kb
9:01:04: New Bitrate for Movie = 1726 k(=1000)Bits/s

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-First Pass"
// $input "C:\tdj-tbp-3-eng2.avs"
// $output "C:\tdj-tbp-3-eng2_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\tdj-tbp-3-eng2.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\tdj-tbp-3-eng2_Movie.avi");
VirtualDub.Close();

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

9:01:04: Started DivX5-First Pass: C:\tdj-tbp-3-eng2.avs
9:01:34: Finished DivX5-First Pass: Duration: 29 seconds.
9:01:34: Trying to open Log-file.
9:01:34: Success: Log-file open.
9:01:34: Encoded: 78096 Frames.
9:01:34: Speed: 2645.349 Frames per Second.

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-Second Pass"
// $input "C:\tdj-tbp-3-eng2.avs"
// $output "C:\tdj-tbp-3-eng2_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\tdj-tbp-3-eng2.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\tdj-tbp-3-eng2_Movie.avi");
VirtualDub.Close();

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

9:01:34: Started DivX5 - Pass: 2: C:\tdj-tbp-3-eng2.avs
9:01:37: Finished DivX5 - Pass: 2: Duration: 2 seconds.
9:01:37: Speed: 30106.400 Frames per Second.

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5 Append"
// $input "C:\tdj-tbp-3-eng2_Movie.avi"
// $output "C:\tdj-tbp-3-eng2.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\tdj-tbp-3-eng2_Movie.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("C:\\tdj-tbp-3-english.mp3",0x00000202,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,0);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetVolume();
VirtualDub.stream[0].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:\\tdj-tbp-3-eng2.avi");
VirtualDub.Close();

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

9:01:37: Started Muxing Audio.: C:\tdj-tbp-3-eng2_Movie.avi
9:01:38: Finished Muxing Audio.: Duration: 1 second.

9:01:38: Done.
9:01:38: Movie = C:\tdj-tbp-3-eng2.avi
Total Encoding Time: 33 seconds.
17.01.2004 9:01:38: Job " 1" finished.
_______________________________________________________________________________________________________________________
========================================

And second one with name tdj-tbp-3-eng2_GKnot_1.log, so I post it too:
========================================
17.01.2004 9:02:55: Job " 1" started.

o DivX5-First Pass: C:\tdj-tbp-3-eng2.avs
o DivX5 - Pass 2: C:\tdj-tbp-3-eng2.avs
o Mux Audio.
End of Job 1 ( 1).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

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

Files:
VirtualDubModExe: C:\PROGRA~1\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\PROGRA~1\GORDIA~1\nandub\Nandub.exe
AviFinal: C:\tdj-tbp-3-eng2.avi
AviMovie: C:\tdj-tbp-3-eng2_Movie.avi
AviCredits: C:\tdj-tbp-3-eng2_Credits.avi
MovieFS: C:\tdj-tbp-3-eng2.avs
CreditsFS:
Log : C:\tdj-tbp-3-eng2.log
Stats: C:\tdj-tbp-3-eng2.stats
Ecf : C:\tdj-tbp-3-eng2.ecf

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

Calculator:
VideoSize: 658160 kbyte.
Audio1Size: 48812 kbyte.
Audio2Size: 0 kbyte.
Overhead: 3682 kbyte.
AviSize: 710656 kbyte (694 mbyte).
FilesSize: 0 kbyte.
TotalSize: 710656 kbyte (694 mbyte).
Interleaving: 1stream
Bitrate: 1726 k(=1000)Bits/s
Frames: 78096
FPS: 25.000
Duration: 052:4
Quality: 0.204 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 0.659 bits/(pixel*frame).
Resolution: 640 x 528

Audio 1:
Mode: Just Mux Source File.
SourceFile: C:\tdj-tbp-3-english.mp3
WavFile: C:\tdj-tbp-3-english.wav
Mp3File: C:\tdj-tbp-3-english_1.mp3
Azid:
Lame:
Delay: 0
Interval: 1
Preload: 500
Mux: 1
Recalc: 1
DeleteWav: 1

Audio 2:
none.

9:02:55: Audio 1, determined: 48810 kb
9:02:55: Audio 1, calc: 48812 kb
9:02:55: New Bitrate for Movie = 1726 k(=1000)Bits/s

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-First Pass"
// $input "C:\tdj-tbp-3-eng2.avs"
// $output "C:\tdj-tbp-3-eng2_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\tdj-tbp-3-eng2.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\tdj-tbp-3-eng2_Movie.avi");
VirtualDub.Close();

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

9:02:55: Started DivX5-First Pass: C:\tdj-tbp-3-eng2.avs
9:42:35: Finished DivX5-First Pass: Duration: 39 minutes, 39 seconds.
9:42:35: Trying to open Log-file.
9:42:35: Success: Log-file open.
9:42:35: Encoded: 3906 Frames.
9:42:35: Speed: 1.642 Frames per Second.
9:42:35: WARNING: Number of counted frames differs from settings!
9:42:35: WARNING: Settings: 78096
9:42:35: WARNING: Counted: 3906
9:42:35: WARNING: Difference: 74190
9:42:35: Correcting Bitrate...
9:42:35: Original Bitrate = 1726 k(=1000)Bits/s
9:42:35: Error: Correction impossible.
9:42:35: Now encoding at 1726 k(=1000)Bits/s

Adding this script to C:\PROGRA~1\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5-Second Pass"
// $input "C:\tdj-tbp-3-eng2.avs"
// $output "C:\tdj-tbp-3-eng2_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\tdj-tbp-3-eng2.avs",0,0);
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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\tdj-tbp-3-eng2_Movie.avi");
VirtualDub.Close();

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

9:42:35: Started DivX5 - Pass: 2: C:\tdj-tbp-3-eng2.avs
=======================================

It gets stuck after Compressibility check. If I turn it off, then it gives error message after first pass starting second pass. It seems like Avisynth doesn't release the original file yet when second pass is trying to work with it, but may be I just do not understand.

I would be really thankfull if you would help me unscrumble all this - i am not guru on these technologies, but have to have those files encoded one two times a month. Thanks.

Last edited by a2j; 17th January 2004 at 08:04.
a2j is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:52.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.