Log in

View Full Version : DirectShowSource (avi.NET)


The Scientist
14th January 2007, 17:16
I had a few days spare, well, not quite spare should be revising, but anyway I went back to avi.NET and took the indexing out of the preview so you could just load in a file and have it display pretty much straight away. Everything seemed to be going fine until I started using lots of different sources.

My problem seems to be DirectShowSource.....

Originally, avi.NET would 'index' the whole file before displaying, and this worked well, and in conjunction with MPEG2Source, all was fine thatnks to DGIndex's seemingly perfect ability to get the correct movie details and audio information e.t.c.

As the preview in avi.NET is mainly there to allow people to see the correct aspect ratio, or slightly change it in 'real-time' or even see the effect of a filter, again in 'real-time', I thought why not drop the 'indexing' for the preview and use 'DirectShowSource' instead, that way, I can 'index' during the conversion and just preview using 'DirectShowSource' saving the user a lot of time waiting around for the file to load/preview.

Now this is where I need some help.....

Why does this not seem to work as I thought?

I first noticed a problem with some HDTV samples, even ones of the same format, then a similar problem with ceratin VOB files from a DVD rip. Can someone tell me a way around this? I've searched and read lots of information concerning DirectShowSource problems around this forum, what puzzles me is all these files (VOB/MPEG) that I am testing all play fine when clicked directly and played using WMP or CLASSIC but not when using a simple one line:

DirectShowSource("file.VOB")
or
DirectShowSource("file.VOB", audio=false)

Some work, some don't. I'm not worried about audio playing, just previewing the video, anyone know how I can preview an MPEG2 file directly?

Thanks.

Guest
14th January 2007, 18:00
anyone know how I can preview an MPEG2 file directly? DGIndex allows preview without indexing. You just decode the MPEG2.

The Scientist
14th January 2007, 23:44
Hi, I meant from within avi.NET, on my own preview screen.

Guest
15th January 2007, 03:01
I understand that. I'm suggesting that your program can do the same thing.

The Scientist
15th January 2007, 03:49
I understand that. I'm suggesting that your program can do the same thing.I don't know how.... :scared:

I may have been slightly incorrectly with the above statement, just to clear things up I mean, play the MPEG2 directly via an AVS script, without indexing.

Guest
15th January 2007, 04:36
There's a Nic tool called MpegDecoder() that you can find here:

http://www.avisynth.org/warpenterprises/

If that or DirectShow() source can't meet your needs, you'll have to go pedal to the metal and implement your own decoding.