Cyberia
29th November 2002, 23:24
Im using vb6 for this...
I cannot figure out how to determine the frame count, fps, and run time of an .avs script.
Neither AVIFileInfo nor AVIStreamInfo works consistently. Depending on the type of source file (mpg, avi etc) I get different results for various parameters.
Nor does it matter if the script opens the source using AVISource or DirectShowSource. (Although I really need to use DSS to open as many file types as possible)
Interestingly, the script can be loaded by wmp or vdub and all of these parameters are known, but when I load it in a mediaplayer control, some of these are missing, even though the control plays the file just fine. (but you cant seek in it when this happens)
Maybe a better question to ask them, is how wmp or vdub can determine these parameters consistently?
Thanks
Cyb
I cannot figure out how to determine the frame count, fps, and run time of an .avs script.
Neither AVIFileInfo nor AVIStreamInfo works consistently. Depending on the type of source file (mpg, avi etc) I get different results for various parameters.
Nor does it matter if the script opens the source using AVISource or DirectShowSource. (Although I really need to use DSS to open as many file types as possible)
Interestingly, the script can be loaded by wmp or vdub and all of these parameters are known, but when I load it in a mediaplayer control, some of these are missing, even though the control plays the file just fine. (but you cant seek in it when this happens)
Maybe a better question to ask them, is how wmp or vdub can determine these parameters consistently?
Thanks
Cyb