Log in

View Full Version : Directshowsource broken with VirtualDub Plugins ?


CruNcher
8th May 2010, 14:40
Is Directshowsource broken with LoadVirtualDubPlugin ?

if i do

LoadVirtualDubPlugin("C:\Programme\Video\virtualdub\plugins\msu_sharpen.vdf","MSUSmartSharpen", 0)
clip=directshowsource("preview_high.wmv")
clip.Spline16Resize(1280,720).ConvertToRGB32.MSUSmartSharpen(0).ConvertToYV12

nothing happens to the output it takes longer as it would do something but the result is the same as if you would do clip.Spline16Resize(1280,720).ConvertToRGB32.ConvertToYV12
only, as if the VirtualDub filter wouldn't process the frames @ all ????

this works properly

LoadVirtualDubPlugin("C:\Programme\Video\virtualdub\plugins\msu_sharpen.vdf","MSUSmartSharpen", 0)
clip=avisource("spline16resize.avi") <- created via directshowsource before :P
clip.ConvertToRGB32.MSUSmartSharpen(0).ConvertToYV12

im using SEts MT 2.5.8 build without MT here

It gets stranger it even doesn't work using directshowsource as input over TCPsource the Final result is always different (no visible sharpening)

I tried now

LoadVirtualDubPlugin("C:\Programme\Video\virtualdub\plugins\msu_sharpen.vdf","MSUSmartSharpen", 0)
clip=FFVideoSource("preview_high.wmv")
clip.Spline16Resize(1280,720).ConvertToRGB32.MSUSmartSharpen(0).ConvertToYV12

and

LoadVirtualDubPlugin("C:\Programme\Video\virtualdub\plugins\msu_sharpen.vdf","MSUSmartSharpen", 0)
clip=dss2("preview_high.wmv")
clip.Spline16Resize(1280,720).ConvertToRGB32.MSUSmartSharpen(0).ConvertToYV12

both result in the identical sharpened output as with avisource so only directshowsource() doesn't work properly here

Gavino
8th May 2010, 19:44
The problem is likely to be that the source you are using does not seek properly with DirectShowSource, which is known not to be frame-accurate with certain sources.

I don't think it is a problem with VirtualDub filters as such, just that MSUSmartSharpen requires access to several input frames to construct each output frame.

CruNcher
8th May 2010, 23:11
Yeah but im not sure anymore if this was really the issue or maybe it's a random thing in my case it seems also that the post processing filter disabled itself sometimes when encoding the spline16.avi for example very strange i used now wmvpowertoy to disable microsofts pp entirely and now i get always the same sharpened visual result even with directshowsource() but maybe it all comes together somehow (a random seek problem), but currently it works with pp entirely off, helps also to save a heavy amount of details before going into the sharpening @ all :)

Also Microsofts PP seems to be P frame only as details fluctuate heavily between frames when the PP is on autodetect, damn thing :( i was even thinking these detail differences per frame where b-frame issues and how to replace those with interpolated frames to recover the details lost, but now i can save that step because this was definitely the pp's fault :)