PDA

View Full Version : SPP Deblocking during encoding with AviSynth


themostestultimategenius
1st June 2007, 15:16
Hello

I've been trying to use SPP deblocking during encoding because SmoothD, DeBlock and MDeblock don't give me the results I want but SPP does.

I found this thread after searching.
http://forum.doom9.org/showthread.php?t=102812


avisource("f:\video.avi")

tomsmocomp(0,5,1)
ffdshow("default")

lanczosResize(512,384)


works for me...
"default" uses the same settings you currently have enabled in your ffdshow config

I tried that but it said there wasn't any function called ffdshow.
I'm using FFDShow Rev 1220 20070529.

When I added loadcplugin as the documentation said to do so, I got an error saying

http://xs216.xs.to/xs216/07225/65645df.PNG

If I use loadplugin I get some weird error.

http://img177.imageshack.us/img177/8886/435645dsfdsfdsxf5.png

This is my script if it helps,
loadCplugin("D:\programs\avisynth\plugins\ffavisynth.dll") #What am I supposed to change this to? :confused:
MPEG2Source("C:\Documents and Settings\Matthew the Genius\Desktop\Encode\[2004.12.29]BoA - My Name + Spark (SBS)\[2004.12.29]BoA - My Name + Spark (SBS).d2v")
ffdshow("default")


It'd be great if anyone could help.
:thanks:

Leak
1st June 2007, 16:02
Hello
I've been trying to use SPP deblocking during encoding because SmoothD, DeBlock and MDeblock don't give me the results I want but SPP does.
Ummm... the way you're trying to use it it won't work well either (even if you could get your method to work) since using SPP as a separate filter instead of in the decoder means the deblocker can't get the quantizer information it needs, since that info isn't stored in a simple video frame but is only available to the codec itself.

Just set up ffdshow's VfW decoder (there's an extra icon in the start menu called "VfW configuration", just run that and go to the "Decoder" tab) with the options you want, make sure ffdshow is set to decode your video format in it's VfW setup (on the "Codecs" page there - that one is separate from the usual DirectShow codecs setup page) and open your file using AVISource. The deblocking should happen automatically when ffdshow decodes the video for AVISource; just open the AVI file in VirtualDub or some other VfW app first to check...

np: Håkan Lidbo - Peepoo (Dunka Dunka)

themostestultimategenius
1st June 2007, 16:27
^ Well, the problem is that I'm trying to process a 1080 video.
My computer isn't fast enough to do that realtime. I get around 1FPS during playback with it enabled.

Leak
1st June 2007, 16:35
^ Well, the problem is that I'm trying to process a 1080 video.
My computer isn't fast enough to do that realtime. I get around 1FPS during playback with it enabled.
Sorry, I still don't see the problem.

Nobody said the video had to play back in realtime for this to work while encoding.

Just set up the VfW decoder so the image comes out as you want it in VirtualDub or a similar app, then use those settings in AviSynth by just using AviSource to open the same file you opened in VirtualDub.

If it runs at 1FPS - well, noone said that SPP was fast, and your encoding app won't care either. If you want more speed then try dragging the (for this purpose quite incorrectly named) "presets" slider to the left in ffdshow as that more or less controls the number of iterations SPP will do on the video.

np: Håkan Lidbo - Baksug (Dunka Dunka)

themostestultimategenius
1st June 2007, 17:03
Oooh. Sorry. Misunderstood what you wrote =\

What about if I'm trying to encode a HD file. In .TP format?
MPEG2Source doesn't work.

Sorry for being such a noob.

foxyshadis
2nd June 2007, 05:50
ffdshow's post-processing is disabled for VFW, we never came to a consensus on whether it'd be a good idea or not so it stayed that way. The only way to get SPP working properly is DirectShowSource - normally not a particularly good idea, but when you need it....

Or consider mencoder with -vf spp, output to huffyuv/ljpeg, and load that in with avisource. mencoder has none of directshowsource's reliability and seek issues.