VideoHelp Forum


Try StreamFab All-in-One and rip streaming video! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. RayPasco pascor's Avatar
    Join Date
    Dec 2016
    Location
    Philadelphis, PA, USA
    Search PM
    Environment: Windows 8.1, ffmpeg v4.4 on command line

    By trial and error I've found that two video scaling filters can be chained/serialized, in this case the unsharp filter:
    SET Unsharp=luma_msize_x=5:luma_msize_y=5:luma_amount= 2.0

    ... -vf scale=1920:-2:flags=lanczos,unsharp=%Unsharp% -vf scale=-1:-1:flags=lanczos,unsharp=%Unsharp%,eq=brightness=-0.05aturation=1.05 ...

    In the second filter 'scale=-1:-1' does prevent rescale processing from happening.
    Adding a third '-vf scale=-1:-1:f ...' filter to separate out the brightness/saturation filter causes the first two scale filters to be completely ignored.

    1- Can multiple video filters be combined into a single -vf statement ?
    2- Can any kinds of video filters be combined ?

    The complete CMD script has been attached - remove the '.TXT' extension to use.
    Image Attached Files
    Last edited by pascor; 11th Jun 2021 at 11:26. Reason: removed unwanted emoticon
    Quote Quote  
  2. You can't chain multiple -vf. You have to chain the individual filters in one -vf.

    won't work: -vf filter -vf nextfilter -vf anotherfilter -- (only the last -vf will be applied)

    will work: -vf filter,nextfilter,anotherfilter
    Last edited by jagabo; 11th Jun 2021 at 12:38.
    Quote Quote  
  3. RayPasco pascor's Avatar
    Join Date
    Dec 2016
    Location
    Philadelphis, PA, USA
    Search PM
    That's the ticket. Thanks !

    SET Unsharp=luma_msize_x=5:luma_msize_y=5:luma_amount= 2.0
    -vf scale=1920:-2:flags=lanczos,unsharp=%Unsharp%,unsharp=%Unsharp %,eq=brightness=-0.05:saturation=1.05
    Last edited by pascor; 12th Jun 2021 at 02:06.
    Quote Quote  
  4. Originally Posted by pascor View Post
    (A "Befuddled" emoticon is automatically substituted for the 'colon,lowercase-s' immediately after '-0.05'.)
    When you're editing a post there's a option below the edit box: Disable Smilies In Text. You might have to press the Go Advanced button to get it.

    Code:
    -vf scale=1920:-2:flags=lanczos,unsharp=%Unsharp%,unsharp=%Unsharp %,eq=brightness=-0.05:Saturation=1.05
    Quote Quote  
  5. as a side note: either put your "-vf"-call options inside quotes (") or make sure you don't have white spaces in them,... otherwise you will probably run into issues,..
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  



Similar Threads