PDA

View Full Version : Error opening Avi in Gknot


Angelus
11th September 2003, 00:18
Everytime I try to open an avi file in Gordian Knot, i get an "access violation at address 044291b8 in module 'Gordian Knot.exe'". However, seomtimes when i click on the error 4 or 5 times the avi finally opens up and i can use it. But I capture an avi file last night and now when i try to open it up i just get a blank preview window. I was hoping to use this to write the avisynth script for me :D . If anyone can help that'd be great, thanks.

jggimi
11th September 2003, 05:01
Does this thread (http://forum.doom9.org/showthread.php?s=&threadid=56841&highlight=avi+error+open+OR+opening) describe your problem?

Angelus
11th September 2003, 13:59
Yea it does but I'm afraid it doesn't fix the problem for me :angry: I re-installed gordian knot last night and ever tried deleted the registry keys to no avail. And the version of AVIFIL32.dll I have on my computer is the same as wat len0x has on his (5.1.2600.1106). It seems kind of weird but there has to be another cause for it I guess. Maybe I'll just have to learn to write avisynth scripts....

jggimi
11th September 2003, 14:13
Try this circumvention. Create the following .avs script:AviSource("your-file.avi") and try to open it. Does it fail? If so, try:DirectShowSource("your-file.avi",fps)Just set the fps to the framerate of your avi file.

Angelus
11th September 2003, 14:28
I do get the same error trying to open up the .avs script using AviSource for 4 or so times and then after clicking "ok" to these, the avi file finally opens up. So I'll see if I can do more using that method. The DirectShowSource gave me a different error:

Could not open file: no filters could be found to render the stream.

Thanks

len0x
11th September 2003, 14:36
Originally posted by Angelus
The DirectShowSource gave me a different error:
Could not open file: no filters could be found to render the stream.


That's odd. Can you try opening the file in the GSpot 2.21 and render it there. What does it say in Video & Audio path ?

Angelus
11th September 2003, 14:46
it gives me a rendering failed error when I open the avi and click render under "direct show render".

len0x
11th September 2003, 14:54
do you have full codec pack installed (i.e. including all the filters) ?

jggimi
11th September 2003, 14:58
Angelus, you mentioned this .avi is from a capture. What codec did you use, and how large is the .avi file?

If you used Vdub and segmented avi files for capture, then there is one more .avs test to make: SegmentedAviSource("base-file-name.avi")

len0x
11th September 2003, 15:01
jggimi made a good point about the codec - if it is huffyuv, then no way it can be opened in GK atm...

Angelus
11th September 2003, 15:04
Ok yea, I did capture it with huffyuv. So that must be the problem then. But when I try to open an avi file that I encoded last week with divx, it gives me the access violation error 4 or 5 times then finally opens it up. Weird, but I guess i'll have to create the .avs script my self for the capture :D

len0x
11th September 2003, 15:07
Originally posted by Angelus
But when I try to open an avi file that I encoded last week with divx, it gives me the access violation error 4 or 5 times then finally opens it up.

Can you try doing the same procedure with GSpot as with previous avi file and tell us what you get there. I'm still curious what causes access violation errors...

Angelus
11th September 2003, 15:10
Still no luck with the movie i encoded last week with Divx. When i click render in GSpot, it just gives me a rendering failed error.

len0x
11th September 2003, 15:14
What is audio codec used in the divx file?
And are you able to play that file in WMP?

Angelus
11th September 2003, 15:16
The audio is mp3 VBR, and I can play the movie fine with no problems in Media Player Classic.

jggimi
11th September 2003, 15:35
Do you have ffdshow installed?

len0x
11th September 2003, 16:00
Originally posted by Angelus
I can play the movie fine with no problems in Media Player Classic.

This one plays everything without filters I guess. What about just windows media player?

Angelus
11th September 2003, 17:16
Yea I do have ffdshow installed...And I can't get the avi to play in windows media player, it says the file type isnt supported...

len0x
11th September 2003, 17:20
now we getting somewhere :)
Try uninstalling ffdshow.

P.S. every divx & xvid that WMP can play - should be opened OK in GK...

jggimi
11th September 2003, 17:29
ffdshow acts like a playback-only codec. You can have it installed and playback all sorts of mpeg-4 codecs without having any of those codecs installed. So it can certainly mask a codec installation problem.

Angelus
11th September 2003, 17:31
No luck, i uninstalled ffdshow and the avi of the movie i encoded still won't play in WMP.

jggimi
11th September 2003, 17:46
From the way you've described the behaviour of GSpot, I would guess that the codec is either not installed, or not installed properly.

Angelus
11th September 2003, 19:27
U think that the Divx codec isn't installed properly of ffdshow?

jggimi
11th September 2003, 19:40
Start VdubMod, select Video...Compression, and see if DivX 5.x shows in the list of codecs.

If it's there, then the codec is installed properly. But if you cannot play back a DivX .avi file with WMP, then certainly, something is seriously wrong.

Angelus
11th September 2003, 19:51
Actually DivX wasn't installed or at least wasnt under video--compression in VDubMod...but I re-installed it and then tried playing the movie again in WMP but with no luck

Angelus
11th September 2003, 20:17
I just tried opening up my capture with the huffyuv coded using that avs script I created and it gave me that error 4 times then opened. I was then able to do a compressability check on it so i'll encode the movie later tonite and see if it works!!!!

jggimi
11th September 2003, 20:20
Please capture the data from your GSpot output for us. Something is definitely out-of-kilter in your Windows environment.

Angelus
11th September 2003, 20:32
sorry but how can i upload the pictures on here? either that or i can email them to you jggimi.

jggimi
12th September 2003, 13:12
Angelus sent me his GSpot results, as well as sample clips. I ran the samples through GSpot as well. There is definitely a DirectShow problem of some kind on Angelus's workstation.

First attachment: DivX 5. His GSpot, then mine, using a sample from the same .avi that he extracted and sent me:

jggimi
12th September 2003, 13:14
Now the HuffYUV:

len0x
12th September 2003, 13:19
hm... Angelus, did you install full codec pack 1.4 ?

Angelus
12th September 2003, 19:19
The only option that I didn't install was the divx 3 codec because I dont use that anymore. On another note, I managed to encode the capture avi that wouldn't at first open in GKnot. The only problem is that besweet stopping working for me so now the movie doesnt have any audio. I searched real quickly thru tho forum and couldnt find anything about my besweet error. I was even getting this while using besweet gui too. Here's my log file:

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

Files:
VirtualDubModExe: C:\Tony\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\Tony\GORDIA~1\nandub\Nandub.exe
AviFinal: D:\Tony\playmakers test.avi
AviMovie: D:\Tony\playmakers test_Movie.avi
AviCredits: D:\Tony\playmakers test_Credits.avi
MovieFS: D:\Tony\playmakers test.avs
CreditsFS:
Log : D:\Tony\playmakers test.log
Stats: D:\Tony\playmakers test.stats
Ecf : D:\Tony\playmakers test.ecf

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

Calculator:
VideoSize: 306714 kbyte.
Audio1Size: 47128 kbyte.
Audio2Size: 0 kbyte.
Overhead: 4557 kbyte.
AviSize: 358400 kbyte (350 mbyte).
FilesSize: 0 kbyte.
TotalSize: 358400 kbyte (350 mbyte).
Interleaving: vbrmp3
Bitrate: 1041 k(=1000)Bits/s
Frames: 72303
FPS: 29.970
Duration: 040:13
Quality: 0.348 bits/(pixel*frame).
CompCheck3: 0.000 bits/(pixel*frame).
CompCheck5: 1.026 bits/(pixel*frame).
Resolution: 416 x 240

Audio 1:
Mode: wav -> mp3
SourceFile: C:\Tony\TV\playmakers.wav
WavFile: C:\Tony\TV\playmakers.wav
Mp3File: C:\Tony\TV\playmakers.mp3
Azid: -L -3db -s stereo -c normal
Lame: --alt-preset 160
Delay: 0
Interval: 1
Preload: 500
Mux: 1
Recalc: 1
DeleteWav: 1

Audio 2:
none.


7:25:16 AM: Started Transcoding Audio.

7:25:16 AM: Using "BeSweet" to transcode C:\Tony\TV\playmakers.wav
CommandLine: C:\Tony\GORDIA~1\BeSweet.exe -core( -input "C:\Tony\TV\playmakers.wav" -output "C:\Tony\TV\playmakers.mp3" -logfile "C:\Tony\TV\playmakers.log" ) -ota( -hybridgain ) -azid( -L -3db -s stereo -c normal ) -lame( --alt-preset 160 ) -profile( Gordian Knot 0.28 )
7:25:21 AM: Finished. Duration: 4 seconds.

7:25:21 AM: Audio Done.
7:25:21 AM: Error: MP3-File-Size is zero! Transcoding failed.
7:25:21 AM: Error: Will not recalculate bitrate! - Maybe you can add audio later...
7:25:21 AM: Audio 1, determined: 0 kb
7:25:21 AM: Audio 1, calc: 47128 kb

And this is the error log directly from besweet:

BeSweet v1.5b18 by DSPguru.
--------------------------
Error 58: Error : Unknown Input-File Format : "C:\Tony\TV\playmakers.wav".
Quiting...
[00:00:00:000] Conversion Completed !

Logging ends : 09/12/03 , 07:25:21.

Sorry for all the hassle guys!! :D

Jeffster
13th September 2003, 06:22
Hi guys,

I get an identical error also every time I try to open an avi file in GK, you can see the message here (http://homepages.ihug.co.nz/~jefx/doom9/gk-error.jpg).

This happens for both DV avi files and DivX files and regardless of the filesize. All codecs are installed and GSpot is able to render the avi files.

I don't have any problem working with avi files in any other application, and going back to GK 0.27 it opens them okay also, it is only the 0.28 version of GK that has this problem.

Sometimes after clicking OK 4 or 5 times the file would open in the preview window, like Angelus states, but other times I will get continuous error messages and my only option is to "End task" in Task Manager.

Very weird, but glad to now know I'm not the only one.
:confused:

Regards
Jeff

len0x
13th September 2003, 17:07
I was getting really frustrated buy not being able to duplicate the problem on my PC and hence solve it, so I did some research over the web I have some ideas what to try. I need a volunteer who is not being able to open AVI files on his PC to test something. Please PM me with email where I can send you a test version of GK.

len0x
16th September 2003, 16:35
Well, after doing some tests which did not succeed I'm pretty much at the dead end with this problem:

1) I know that 0.27 GPL as it was released by TheWef doesn't have this problem.
2) Current version of GK does have this problem only on some PCs.
3) I can't reproduce and hence debug the error on my PC.
4) For some weird reason I cannot checkout version of GK for the particular day - SF has some issues... (otherwise I would compile test version for ppl to try and finally could locate the day when code was affected)
5) I myself didn't touch the code for opening AVIs, altough there were some changes by aquaplaning and tHe Glouch which imho couldn't affect anything.

To sum up: :(

len0x
18th September 2003, 13:39
I finally managed to reproduce the problem: the error occurs on XP only when XP scheme (not classic one) is used! (big thanks for Jeffster for that). When using classic - nothing wrong happens (given that you are able to render those avi files properly on your system).

The error was introduced in 0.28.4 with internalization code. Very probably it has nothing to do with avi itself. It just the error occurs only when a call to a system dll is made and probably the error itself happened before that.

I need some help from tHe gLouCh on this.

Angelus
18th September 2003, 13:49
Good work, it works on my system now too! How you figured that out I dunno but good job again :D .

Angelus

len0x
18th September 2003, 13:53
Originally posted by Angelus
Good work, it works on my system now too! How you figured that out I dunno but good job again :D .


I guess that was just a coincidence which Jeffster came across :)
It was a lucky day for us yesterday :cool:

But it still needs to be fixed for XP scheme though...

Jeffster
18th September 2003, 14:40
Yep it was very much a coincidence, and at first I didn't believe my eyes :cool:

Glad you were finally able to reproduce the problem, and thanks for being conscientious in chasing it down. :)

Regards
Jeff

len0x
19th September 2003, 15:26
I have sorted out this very annoying problem (Jeffster is the witness :) ), so I'll be publishing new beta version of GK in the development forum in the next few days and if everybody's happy with it will do big rippack update (probably will be called 0.28.6).