X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=doc%2Ffilters.texi;h=4c85d71be32b4ce9003cf888b95ecf7e84973c4e;hb=bb29ee62e9ef30c26988f386e7c3be7affe836f9;hp=461391738da511fe99d9768f45ee5d62156bf582;hpb=02b3ac87f81a614120c492b9df2b294d1c54755e;p=ffmpeg diff --git a/doc/filters.texi b/doc/filters.texi index 461391738da..4c85d71be32 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -3352,8 +3352,48 @@ If a parameter is omitted, it is kept at its current value. @section idet -Interlaceing detect filter. This filter tries to detect if the input is -interlaced or progressive. Top or bottom field first. +Detect video interlacing type. + +This filter tries to detect if the input is interlaced or progressive, +top or bottom field first. + +@section il + +Deinterleave or interleave fields. + +This filter allows to process interlaced images fields without +deinterlacing them. Deinterleaving splits the input frame into 2 +fields (so called half pictures). Odd lines are moved to the top +half of the output image, even lines to the bottom half. +You can process (filter) them independently and then re-interleave them. + +It accepts a list of options in the form of @var{key}=@var{value} pairs +separated by ":". A description of the accepted options follows. + +@table @option +@item luma_mode, l +@item chroma_mode, s +@item alpha_mode, a +Available values for @var{luma_mode}, @var{chroma_mode} and +@var{alpha_mode} are: + +@table @samp +@item none +Do nothing. + +@item deinterleave, d +Deinterleave fields, placing one above the other. + +@item interleave, i +Interleave fields. Reverse the effect of deinterleaving. +@end table +Default value is @code{none}. + +@item luma_swap, ls +@item chroma_swap, cs +@item alpha_swap, as +Swap luma/chroma/alpha fields. Exchange even & odd lines. Default value is @code{0}. +@end table @section kerndeint @@ -3581,7 +3621,6 @@ The list of the currently supported filters follows: @item dint @item divtc @item down3dright -@item dsize @item eq2 @item eq @item fil @@ -3591,7 +3630,6 @@ The list of the currently supported filters follows: @item ivtc @item kerndeint @item mcdeint -@item noise @item ow @item perspective @item phase @@ -3600,7 +3638,6 @@ The list of the currently supported filters follows: @item qp @item sab @item softpulldown -@item softskip @item spp @item telecine @item tinterlace @@ -3619,12 +3656,6 @@ Adjust gamma, brightness, contrast: @example mp=eq2=1.0:2:0.5 @end example - -@item -Add temporal noise to input video: -@example -mp=noise=20t -@end example @end itemize See also mplayer(1), @url{http://www.mplayerhq.hu/}. @@ -3654,6 +3685,57 @@ noformat=yuv420p,vflip noformat=yuv420p:yuv444p:yuv410p @end example +@section noise + +Add noise on video input frame. + +This filter accepts a list of options in the form of @var{key}=@var{value} +pairs separated by ":". A description of the accepted options follows. + +@table @option +@item all_seed +@item c0_seed +@item c1_seed +@item c2_seed +@item c3_seed +Set noise seed for specific pixel component or all pixel components in case +of @var{all_seed}. Default value is @code{123457}. + +@item all_strength, as +@item c0_strength, c0s +@item c1_strength, c1s +@item c2_strength, c2s +@item c3_strength, c3s +Set noise strength for specific pixel component or all pixel components in case +@var{all_strength}. Default value is @code{0}. Allowed range is [0, 100]. + +@item all_flags, af +@item c0_flags, c0f +@item c1_flags, c1f +@item c2_flags, c2f +@item c3_flags, c3f +Set pixel component flags or set flags for all components if @var{all_flags}. +Available values for component flags are: +@table @samp +@item a +averaged temporal noise (smoother) +@item p +mix random noise with a (semi)regular pattern +@item q +higher quality (slightly better looking, slightly slower) +@item t +temporal noise (noise pattern changes between frames) +@item u +uniform noise (gaussian otherwise) +@end table +@end table + +Some examples follow: +@example +Add temporal and uniform noise to input video: +noise=alls=20:allf=t+u +@end example + @section null Pass the video source unchanged to the output. @@ -4647,43 +4729,6 @@ Useful for enlarging pixel art images without reducing sharpness. @section swapuv Swap U & V plane. -@section il -Deinterleave or interleave fields. - -This filter allows to process interlaced images fields without -deinterlacing them. Deinterleaving splits the input frame into 2 -fields (so called half pictures). Odd lines are moved to the top -half of the output image, even lines to the bottom half. -You can process (filter) them independently and then re-interleave them. - -It accepts a list of options in the form of @var{key}=@var{value} pairs -separated by ":". A description of the accepted options follows. - -@table @option -@item luma_mode, l -@item chroma_mode, s -@item alpha_mode, a -Available values for @var{luma_mode}, @var{chroma_mode} and -@var{alpha_mode} are: - -@table @samp -@item none -Do nothing. - -@item deinterleave, d -Deinterleave fields, placing one above the other. - -@item interleave, i -Interleave fields. Reversing effect of deinterleave. -@end table -Default value is @code{none}. - -@item luma_swap, ls -@item chroma_swap, cs -@item alpha_swap, as -Swap luma/chroma/alpha fields. Exchange even & odd lines. Default value is @code{0}. -@end table - @section thumbnail Select the most representative frame in a given sequence of consecutive frames. @@ -4913,51 +4958,52 @@ transpose=1:portrait Sharpen or blur the input video. -It accepts the following parameters: +This filter accepts parameters as a list of @var{key}=@var{value} pairs, +separated by ":". + +If the key of the first options is omitted, the arguments are +interpreted according to the syntax: @var{luma_msize_x}:@var{luma_msize_y}:@var{luma_amount}:@var{chroma_msize_x}:@var{chroma_msize_y}:@var{chroma_amount} -Negative values for the amount will blur the input video, while positive -values will sharpen. All parameters are optional and default to the -equivalent of the string '5:5:1.0:5:5:0.0'. +A description of the accepted options follows. @table @option +@item luma_msize_x, lx +@item chroma_msize_x, cx +Set the luma/chroma matrix horizontal size. It can be an integer +between 3 and 63, default value is 5. -@item luma_msize_x -Set the luma matrix horizontal size. It can be an integer between 3 -and 13, default value is 5. - -@item luma_msize_y -Set the luma matrix vertical size. It can be an integer between 3 -and 13, default value is 5. - -@item luma_amount -Set the luma effect strength. It can be a float number between -2.0 -and 5.0, default value is 1.0. +@item luma_msize_y, ly +@item chroma_msize_y, cy +Set the luma/chroma matrix vertical size. It can be an integer between +3 and 63, default value is 5. -@item chroma_msize_x -Set the chroma matrix horizontal size. It can be an integer between 3 -and 13, default value is 5. +@item luma_amount, la +@item chroma_amount, ca +Set the luma/chroma effect strength. It can be a float number, +reasonable values lay between -1.5 and 1.5. -@item chroma_msize_y -Set the chroma matrix vertical size. It can be an integer between 3 -and 13, default value is 5. - -@item chroma_amount -Set the chroma effect strength. It can be a float number between -2.0 -and 5.0, default value is 0.0. +Negative values will blur the input video, while positive values will +sharpen it, a value of zero will disable the effect. +Default value is 1.0 for @option{luma_amount}, 0.0 for +@option{chroma_amount}. @end table +Some examples follow: +@itemize +@item +Apply strong luma sharpen effect: @example -# Strong luma sharpen effect parameters unsharp=7:7:2.5 +@end example -# Strong blur of both luma and chroma parameters +@item +Apply strong blur of both luma and chroma parameters: +@example unsharp=7:7:-2:7:7:-2 - -# Use the default values with @command{ffmpeg} -ffmpeg -i in.avi -vf "unsharp" out.mp4 @end example +@end itemize @section vflip