SET F1=force_original_aspect_ratio=decrease
SET F2=-q:v 2
aa=ffmpeg -i "%1" -vf scale=w=1680:h=1050:%F1% %F2% out1.jpg <------- no filter or default filter
bb=ffmpeg -i "%1" -vf scale=w=1680:h=1050:%F1% %F2% -sws_flags lanczos out2.jpg
cc=ffmpeg -i "%1" -vf scale=w=1680:h=1050:%F1% %F2% -sws_flags bicubic out3.jpg
did i apply the filter syntax as in "-sws_flags bicubic" right in bb= and cc=
the results were all the same in aa= bb= cc=, that is
the same file sizes
out1.jpg (251780)
out2.jpg (251780)
out3.jpg (251780)
even the best jpg quality setting is not good in FFMPEG, compared to other softwares.
i hope someone could explain this
+ Reply to Thread
Results 1 to 4 of 4
-
-
Include it in the -vf scale
e.g.
Code:-vf scale=w=1000:h=1000:sws_flags=lanczos -vf scale=w=1000:h=1000:sws_flags=bicubic
bicubic.png 966kb
even the best jpg quality setting is not good in FFMPEG, compared to other softwares.
But I agree ffmpeg's jpeg encoder isn't the greatest. For free / open source, you might get better results with imagemagick -
SET F1=force_original_aspect_ratio=decrease
SET F2=-q:v 2
AA=ffmpeg -i QQ1.JPG -vf scale=w=1680:h=1050:%F1% %F2% out1.jpg <------- no filter or default filter
BB=ffmpeg -i QQ1.JPG -vf scale=w=1680:h=1050:%F1% %F2% -sws_flags lanczos out2.jpg
CC=ffmpeg -i QQ1.JPG -vf scale=w=1680:h=1050:%F1% %F2% -sws_flags bicubic out3.jpg
out1.jpg (251780)
out2.jpg (251780)
out3.jpg (251780)
with your certainty that worked, i found that the chosen QQ1.JPG did not respond to the filters, QQ1.jpg decided not to change by themselves. so the file sizes were the same, so it made me think as a syntax error
----------------------------------------------------------------
AA=ffmpeg -i QQ2.JPG -vf scale=w=1680:h=1050:%F1% %F2% out1.jpg <------- no filter or default filter
BB=ffmpeg -i QQ2.JPG -vf scale=w=1680:h=1050:%F1% %F2% -sws_flags lanczos out2.jpg
CC=ffmpeg -i QQ2.JPG -vf scale=w=1680:h=1050:%F1% %F2% -sws_flags bicubic out3.jpg
out1.jpg (489056)
out2.jpg (503575)
out3.jpg (489056)
QQ2.jpg responded under same syntax, now they have the different file sizes.
----------------------------------------------------------------
now i have to be careful with the JPG i choose to test
DD=-vf scale=w=1000:h=1000:force_original_aspect_ratio=de crease: sws_flags=bicubic
EE=-vf scale=w=1000:h=1000:force_original_aspect_ratio=de crease -sws_flags bicubic
i learned the newway to put DD= and EE=, DD= and EE= were the same.
thanks
and lastly what other filter would you recommend or what is your favorite filter?Last edited by sommers; 25th Jun 2017 at 21:06.
-
Bicubic is default, unless otherwise specified. Thus you would expect 1 and 3 to be the same, which they are
and lastly what other filter would you recommend or what is your favorite filter?
There are pros/cons to each of them. It depends on what your goals are and what the scenario is
For example , if source is sharp and clean, and you're downscaling, you might choose a neutral or softer resizer. But if source was "blurry" you might choose a sharper one. There are varying degrees of sharpness vs. blurring vs. haloing vs. artifacting. You can read up on scaling algorithm discussions in other threads and boards, some are 100's of pages long. Lots of academic research and papers in that area as well
Similar Threads
-
VirtualDub: "AVI Import Filter error: (Unknown) 80040154"
By Xavier in forum Newbie / General discussionsReplies: 11Last Post: 15th Dec 2021, 17:49 -
FFMpeg : Use the "volume" filter for Preamp Equalizer setting ?
By alexander121 in forum AudioReplies: 0Last Post: 25th Jul 2015, 07:38 -
[SOLVED] "--ipratio" "--pbratio"+"--scenecut" "--minkeyint" / "--keyint
By Kdmeizk in forum Video ConversionReplies: 14Last Post: 21st Jun 2015, 07:21 -
A little confused on ffmpeg syntax with regards to the "-q" parameter.
By Iced Coffee in forum Video ConversionReplies: 4Last Post: 21st Jan 2013, 01:04 -
Sony Vegas 12 "Apply to FX" masking
By lindenkron in forum EditingReplies: 10Last Post: 2nd Jan 2013, 16:56