Back Forum Reply New

Visualizing an Avisynth script via VB

Hi,

Is it possible to load and visualize an avisynth script into a VisualBasic application?
I'm searching a method to add the largest video formats' support to my application and i'm thinking that loading the video via avisynth could be a good solution (i basically need a cute picturebox or something else showing the video whith the ability to navigate through frames), but i don't know how can i do it (nor even if can be done).Please help me   

Best regards

there are a couple of api's you can use, mci, avifile and DirectShow/COM/ActiveX. A avs file will play just like a avi file, you should be able to find a tutorial how to play a avi file

yohooo.... so there are no differences in importing an avi file or an avs script.... wow, very good, i'll find out some tutorial concerning the argument, have you any good link to start the search from?
In your opinion, which of your 3 mentioned methods (mci, avifile, dshow if i've well understood) could be faster in rendering the video file?

Thanks a lot

IIRC you can forget MCI if you want divX etc to work (probably mpeg too). I have this idea MCI is a superslow engine which only accepts MJPEG/Indeo/..that generation

I don't exactly know what you mean by avifile, but i guess if you want filters, overlay etc (filters likely with AviSynth  - DShow is the hard but right way to go

If you use DShow you can look at the source code of Mpeg2VirtualDub (VB6) for an example of how to do it.
It's in the cropping preview, I let DShow construct the filter graph, and have very basic seeking.

IIRC you can forget MCI if you want divX etc to work (probably mpeg too). I have this idea MCI is a superslow engine which only accepts MJPEG/Indeo/..that generation

nowadays it wraps DS, everything should work

I don't exactly know what you mean by avifile

library/de...ifile_2w85.asp

DShow is the hard but right way to go

he cannot access all DirectShow interfaces, he can only use COM objects like ActiveMovie/quartz.dll or media player control etc. To build custom graphs there is a wrapper dll discused in this forum. I think C++, Delphi, any .NET language or even Java would be better for this task

IIRC you can forget MCI if you want divX etc to work (probably mpeg too). I have this idea MCI is a superslow engine which only accepts MJPEG/Indeo/..that generation

nowadays it wraps DS, everything should work

I've speedly tested the MCI callbacks through VB6 and i've experienced problems in loading all avi files but the Divx3/SBC.
And as Unmei said loading videos via MCI is slow indded: the video has some non fluid periods even on my AthlonXP 1700+ (and i was hoping my program would be usable even with lesser systems).

So i'll try Dshow for loading avi files, maybe even restricted only with com object, their functions probably would suffice me, i don't have to do many things, only to properly render the file, play, stop, frame counting and jumping, no other manipulation.

Many many thanks for your suggestions and links, i'll read the msds papers the next days as well as jcsston's wonderful link (a very... very interesting application, i'll have to understand well it).

Best regards
¥
Back Forum Reply New