Log in

View Full Version : Avisynth Script for Phone video


scilli
4th April 2006, 07:20
I've currently been messing around with creating video's for my new phone. I've been using Super which alows me to input an avs script and output a 3gp file. So I got to thinking why not come up with a script to combat noise and sharpen the image, as these tend to be the main problems when I play a video back on my phone. I'm curious as to what filters people think I should use because, truth be told, I'm not very avisynth savy.

Mug Funky
4th April 2006, 07:58
i imagine a very strong temporal filter would do it. would help with the moving blur-blocky chunkness you get with that kind of super-low bitrate video.

try fft3dfilter(bw=8,bh=8,ow=4,oh=4,bt=0,sigma=1.5,plane=4)

this will smooth quite a bit, so you might want to reduce "sigma" (or increase it if your source is very noisy).

also, apply it after resizing rather than before. it'll be faster and hopefully fit better with your codec.

[edit] just in case you hadn't guessed, you'll need to install fft3dfilter by fizick. search the forum for it :)

Chainmax
4th April 2006, 13:00
Aren't the recommended values for bw and bh in the 32-64 range?

scilli
4th April 2006, 20:34
I tried fft3dfilter at Mug Funky's settings and the results were not bad. What exactly do the bw and bh vaules do? Also, I understand that there is also a sharpen function within fft3dfilter, should I use this as I would like my phone videos to be a little sharper, and if so do I need to adjust the denoising values?

Mug Funky
6th April 2006, 10:52
@ chainmax:

for whatever reason, i like them to be the same size as DCT blocks. fft3d can ring a bit on sharp edges with grain, and my theory is having 16x16 fft blocks with 50% overlap (effectively splitting the frame into 8x8 blocks) will allow some of this ringing to be cancelled by both the overlap and (maybe) the encoder.

also the idea of block alignment appeals to me, and the results are pretty nice anyway. but i use fft3d at such mild settings that it's really a trivial matter.

i chose 8 and 4 for size and overlap because i'm guessing the 3gp video is AVC-like. may be wrong on that though.

@ scilli:
bw = block width
bh = block height

ow = overlap width
oh = overlap height

scilli
7th April 2006, 09:40
3gp is just the container. I'm using xvid h.263 at 176x144 at 75-85kbps, does that change anything?