Hy there!
I want to downscale a FullHD stream to pal-dvd size 720x576 using the -sws flag.
(walking on a Ubuntu 10.04 server)
My commandline looks like this:
Code:
mencoder video-delay3,6.mpg -channels 6 -oac copy -ovc lavc -of mpeg -mpegopts format=dvd:tsaf
-vf scale=720:437,expand=720:576,harddup -sws 9 -srate 48000 -af lavcresample=48000
-lavcopts threads=256:vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=9799:
keyint=3:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=2:predia=2:cbp:mv0:vqmin=1:lmin=1:
dc=10:aspect=16/9:vstrict=0:vpsize=500:vfdct=0:idct=0 -ofps 25 -o movie.mpg
So, this is using lanczos for resizing. (-sws 9)
How do I adjust the strength of the filter?
man (manual of) mencoder tells me:
scale [= w: h [: ilaced [: chr_drop [: par [: par2 [: presize [: noup [: arnd ]]]]]]]]- Scales the image with the software (slow) and performs a color space conversion between YUV and RGB through (see the -sws).
<par> [: <par2>] (also see -sws)
Set some scaling parameters depending on the scaling, which was selected with-sws.- -sws 2 (bicubic): B (blurring) and C (Gain)
- 0.00:0.60 Standard
- 0.00:0.75 "precise bicubic" VirtualDub
- 0.00:0.50 Catmull-Rom spline
- 0.33:0.33 Mitchell-Netravali spline
- 1.00:0.00 cubic B-spline
- -sws 7 (gaussian): sharpness (0 (soft) - 100 (sharp))
- -sws 9 (Lanczos): filter length (1-10)
But how do I have to use this in command-line?
my regards