Log in

View Full Version : AviSynth to get number of frames and FPS


ChrisBensch
23rd May 2006, 18:36
I'm writing an encoding GUI that takes AVS input and I'd like to use AviSynth to get the frame count and frame rate of the input script. So far I'm kinda hackin' it to work with x264 but I'd like to use AviSynth to do it right. I've poke around the MeGUI source but it's got WAY more than what I need and to be honest, it's a little confusing. I'm using C# btw.

Inc
23rd May 2006, 22:35
I'd like to use AviSynth to get the frame count and frame rate
..... I'm using C# btw.
Option a)
Do search for AVISTREAMINFO in here or msdn an youll see the approach via the avifileXXX() functions of the win avifil32 interface.

Option b)
Do look into the MeGUI Sources (c#) as there you can see how to access an avs script via the AvisynthWrapper.dll.

I've poke around the MeGUI source but it's got WAY more than what I need and to be honest, it's a little confusing. Even I dont have any clue on C# to me the Parts where that dll is accessed do seem quite organised and with a little invest of time possible to understand.
If you do use a specific Language try to invest some pain to go through sources to obtain more knowledge.
Also try to ask "Berrinham" (spelled correct?) in thisn thread here as he maybe could show you how to use the option a).

ChrisBensch
24th May 2006, 16:15
I should have said that, I understand the code, but being the first time I've seen MeGui "under the covers" I was overwhelmed with trying to get a picture of how it all fit together.

Thank you so much for pointing me in the right direction.