Linux Command Library
commands
Commands
basic
Basic
tips
Tips

ffmpeg-scaler

FFmpeg video scaling and pixel format converter

The FFmpeg rescaler provides an high-level interface to the libswscale library image conversion utilities. In particular it allows to perform image rescaling and pixel format conversion.

The video scaler supports the following named options.

Options may be set by specifying -option value in the FFmpeg tools. For programmatic use, they can be set explicitly in the "SwsContext" options or through the libavutil/opt.h API.
sws_flags

Set the scaler flags. This is also used to set the scaling algorithm. Only a single algorithm should be selected.

It accepts the following values:
fast_bilinear

Select fast bilinear scaling algorithm.

bilinear

Select bilinear scaling algorithm.

bicubic

Select bicubic scaling algorithm.

experimental

Select experimental scaling algorithm.

neighbor

Select nearest neighbor rescaling algorithm.

area

Select averaging area rescaling algorithm.

bicubiclin

Select bicubic scaling algorithm for the luma component, bilinear for chroma components.

gauss

Select Gaussian rescaling algorithm.

sinc

Select sinc rescaling algorithm.

lanczos

Select lanczos rescaling algorithm.

spline

Select natural bicubic spline rescaling algorithm.

print_info

Enable printing/debug logging.

accurate_rnd

Enable accurate rounding.

full_chroma_int

Enable full chroma interpolation.

full_chroma_inp

Select full chroma input.

bitexact

Enable bitexact output.

srcw

Set source width.

srch

Set source height.

dstw

Set destination width.

dsth

Set destination height.

src_format

Set source pixel format (must be expressed as an integer).

dst_format

Set destination pixel format (must be expressed as an integer).

src_range

Select source range.

dst_range

Select destination range.

param0, param1

Set scaling algorithm parameters. The specified values are specific of some scaling algorithms and ignored by others. The specified values are floating point number values.

ffmpeg(1), ffplay(1), ffprobe(1), ffserver(1), libswscale(3)

The FFmpeg developers.

For details about the authorship, see the Git history of the project (git://source.ffmpeg.org/ffmpeg), e.g. by typing the command git log in the FFmpeg source directory, or browsing the online repository at <http://source.ffmpeg.org>.

Maintainers for the specific components are listed in the file MAINTAINERS in the source code tree.

play store download app store download
Imprint
Sonnenallee 29, 12047 Berlin, Germany
e-mail: sschubert89@gmail.com

Privacy policy
Successfully copied