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.
+ Reply to Thread
Results 1 to 5 of 5
-
Last edited by pascor; 11th Jun 2021 at 11:26. Reason: removed unwanted emoticon
-
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,anotherfilterLast edited by jagabo; 11th Jun 2021 at 12:38.
-
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.05Last edited by pascor; 12th Jun 2021 at 02:06.
-
-
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, marcorocchini
Similar Threads
-
Recommendations about FFmpeg filters to enhance video quality or fixes
By mapg in forum Newbie / General discussionsReplies: 4Last Post: 1st Jun 2021, 15:33 -
Question on order of video inputs when using ffmpeg and complex filters
By AspiringVideoProcessor in forum Video ConversionReplies: 1Last Post: 16th May 2021, 10:50 -
ffmpeg - How to batch screen grab from multiple video files?
By Gameshow Host in forum Newbie / General discussionsReplies: 4Last Post: 2nd May 2019, 07:04 -
Chaining calls to ColorKeyMask in Avisynth...
By pippas in forum EditingReplies: 20Last Post: 28th Oct 2016, 16:19 -
Does daisy chaining multiple devices degrade video signal?
By Bassquake in forum Capturing and VCRReplies: 5Last Post: 12th Jun 2016, 17:34