PDA

View Full Version : .AVS as DirectoShowSource in .AVS = bogus for me


Gargalash
14th April 2009, 17:09
Hello all,
I am having problems with a new thing I tried. Let me describe how I got there first.

I load a .d2v file from VOBs in my avs script. This is deinterlaced and filtered with very slow and very high quality filters and rendered to lossless Lagarith AVIs. These are then aligned in a simple avs and this becomes the source for further encodings (WMVs and MPGs). This simple avs with the lossless AVIs is also processed in VFAPI to create the "fake" avi I need to be able to load this in the Adobe Flash Video Encoder. Overall this method works just fine and gives the results I want.

Yesterday I tried something new. I created avs templates that would do the following: load as a directshowsource the avs containing the aligned lossless AVIs, resize them to the final size of the destination files (mpegs, FLV or WMV), apply a very gentle sharpening and dirt removal. With this I aimed at providing the best looking source to the various encoders. And it did provide excellent results... for what I was able to acheive!

TMPGEnc 4.0 crashes quickly and cannot finish encodes, wmv and mpg. For Adobe Flash Encoder, I had to process the final avs file into vfapi and then feed it with the result. It crashed on the first encode as well.

I guess the lesson is that I should align the lossless AVIs in the template that does the final resizing and sharpening rather than loading an AVS in an AVS.

But now I wonder: SHOULD it be working?
Also, I'm tired of having to use vfapi to load my avs in Adobe Flash Encoder. What are the alternatives that can make flv from avs?

Thanks for your help!

Gavino
14th April 2009, 21:15
Don't use DirectShowSource (or AviSource) to load another .avs file - this causes another instance of Avisynth to be loaded recursively.
Use Import (http://avisynth.org/mediawiki/Import)instead.

Gargalash
14th April 2009, 21:32
Gavino,
Thanks for your help!

Anyone has a suggestion on how to encode FLVs from AVS?

Inspector.Gadget
14th April 2009, 21:34
Even if Adobe Flash Video Encoder doesn't use VFW or Directshow to decode (and I have no idea about this sort of thing), you can always use MakeAVIs (included in ffdshow-tryouts) to create a fake AVI from your AVS script with fake raw video and use that.

Gargalash
15th April 2009, 16:20
Thank you Inspector.Gadget