Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
6th January 2011, 08:47 | #1 | Link |
Registered User
Join Date: Apr 2008
Posts: 1
|
mencoder resizing using -sws flag
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 ]]]]]]]]
<par> [: <par2>] (also see -sws) Set some scaling parameters depending on the scaling, which was selected with-sws.
But how do I have to use this in command-line? my regards Last edited by Nonoman; 7th January 2011 at 09:05. Reason: Edited text |
4th July 2011, 21:42 | #4 | Link |
Registered User
Join Date: Jun 2011
Posts: 35
|
Ok I figured it out for mplayer:
http://betterlogic.com/roger/2011/07/mplayer-lanczos/ basically -sws 9 -vf scale=1280:0:0:0:10# 10 is the filter length...I think so anyway, though it doesn't complain if I set it to 11. Also does anybody know if it accepts sharpen parameters, like -ssf ls=75.0 -ssf cs=75.0 ? if it works, it will display "Lanczos" in the output after a few lines. |
Tags |
command-line, lanczos, mencoder, resize, ubuntu |
Thread Tools | Search this Thread |
Display Modes | |
|
|