View Full Version :
how to open avi in gknot
Darrell
18th December 2001, 16:31
Someone once posted a way to open an avi file in Gknot by frameserving. Something to do with making a dummy dvd2avi file(.d2v) Could you be so kind as to repost the way you did it? I'm not the brightest crayon in the box but I can follow instructions reasonably well.
Corrado
18th December 2001, 17:50
I would also be glad to know this method :)
If this can help you, for AVI files I do as follows:
1-Use GKnot as bitrate/size calculator
2-Write an aviscript file manually with the required calls (DirectShowSource, Crop, BicubisResize, GreedyHMA...)
3-Open the .avs in the batch control section of GKnot and let it run (2 passes, audio, etc...)
Corrado
Darrell
19th December 2001, 16:06
I found it!..It was posted by DARKSOUL71
http://rilanparty.com/vbb/showthread.php?s=&threadid=9463
1st of all:
Wef doesn´t have to implement "full AVI support". All it needs is
a button to open up the AVISynth dialogue that can be reached via
the DVD2AVI window inside GKnot. I think that we all are able to
enter the few datas (source res, length, etc) by hand instead of
having GKnot to enter them automaticly.
How I currently do it:
1) Opening up my captured material in VDub. Cutting out all unwanted
stuff (commercials, etc) in VDub.
2) Saving the sound of the cut movie to wave. Doing some denoising and
normalizing to the wave file in Cooledit 2k.
3) Encoding the wave file to VBR MP3 by using LAME and the AZID/LAME
GUI.
4) Starting up a VDub frameserver (video to streamcopy and no audio).
5) Opening up some D2V file (you can easily use some short MPEG2 file
for that) and bringing the AVISynth Script File Dialog to front.
5) Entering all settings (filesize, movie duration, source res, etc)
to GKnot. You have to overwrite the duration / source res settings of
the fake DVD2AVI project.
6) Using GKnot the way I´m used to (adjusting res according to the bits/... stuff).
7) Saving the GKnot AVS and changing the MPEG source line to AVI Source using my VDub frameserver file. (You can even do a quick recompress at this point in order to check if your choosen res was ok).
8) Continue with Nandub and all the stats file stuff as I´m used to.
(Recalculating Stats File after first pass, checking compression
ratio, etc).
9) Enjoying my 2pass DivX on Screen
To Wef: AFAIK GKnot is written in Delphi.
So adding a "Make AVISynth" button for us AVI source encoders is only
two minutes work and saves us all from the hassle I´ve discribed above.
BTW: I´m offering you my help on the AVI stuff in Delphi if you haven´t got the MSDN CDs. I can send you docs on the AVIFile interface and my sources of AVSGen where I open up AVI files and read the res of the file.
TheWEF
19th December 2001, 17:10
why there is still no avi support in gknot:
my brother has been trying for quite a while to fully use avisynth functionality in gknot. the goal is to get a real preview of all possible avisynth-filters. e.g. detecting changing framerate when using ivtc, or directly see what a noise-filter does.
our approach is to open every possible video-file via avisynth.dll
well, it works fine, but at some point it alway ends up in a crash and we still can't figure out why :(
actually i'm about to give up on this and add a simple avi support.
if you would like to contribute and send working delphi code all i can say is: great, go ahead!
wef.
Darksoul71
20th December 2001, 17:01
Dear wef !
As I already told you in my latest e-mail I suspect AVISynth to be the reason for this behaviour.
AVISynth often enough proved to be "instable" when you use combination of filters like resize, crop and
then resize again. Bang: VDub shows acess violation
Using your denoise combination (the one included in GKnot) after resizing.
Bang: Access violation.
To me it makes honestly no sense to provide full filtered preview support with such an instable DLL. AVISynth works fine for many reason but is still somewhat unstable under certain conditions (read: filter combinations).
As I said before in my last posting:
Just add an OPEN AVI button followed by opening your AVS dialog and we all are happy (and you or your brother don´t have to worry about bugs that are a pain in the a.. to track down).
People can care for opening up different AVI Sources themselve and serve them to GKnot as ONE file either via VDub frameserver or via AVISynth using AVSGen.
BTW: One idea that comes to my mind: Have you tried to open the "preview" AVS file with the TMediaplayer component
of Delphi ? At least this could work. Unfortunately I have neither the time nor the knowledge to write a
mpeg2dec.dll equivalent for AVI sources. What I would try:
-Using the TMediaplayer for opening the AVI source and then searching for a frame.
-copying this frame to the clipboard and paste to a TImage Component.
-Applying all resize and crop settings to this picture
-Setting up another AVS file with these crop & resize (+filter) settings
-Showing this AVS again using the TMediaplayer component.
But I know: Theory is always easier than practise :)
Keep up your good work,
-D$
TheWEF
21st December 2001, 00:00
hey darksoul!
i didn't get mail from you lately, did i?
wef.
Darksoul71
21st December 2001, 08:17
Hi wef !
Well, I´ve send you a mail some weeks ago. It contained a small code snippet on how to read the resolutions of AVI files. May be GMX messed it up ?
I´ll resend it ASAP.
-D$
TheWEF
21st December 2001, 18:49
i messed up. :rolleyes:
thank you!
wef.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.