[FFmpeg-user] Meaning of -color_range 2 ?

Moritz Barsnick barsnick at gmx.net
Mon Oct 2 11:32:14 EEST 2023


On Sun, Oct 01, 2023 at 14:05:38 +0200, Paul B Mahol wrote:
> >> I guess it stands for "-color_range limited", but even that I don't
> >> understand what it means.
> >> Where does the calculation "MPEG (219*2^(n-8))" come from?
> > And how can I know, in which version of FFMPEG this patch was released?
> >
> > https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=7ca71b79f2b3256a0eef1a099b857ac9e4017e36
> >
>
> By searching for that commit log in git log of branch you use currently.
> By searching the source code of branch you use currently to have that
> added/changed lines from such commit log.
> By looking at date of commit and comparing to date of release of
> FFmpeg version currently used.

This also gives a quick overview:

$ git tag --contains 7ca71b79f2b3256a0eef1a099b857ac9e4017e36
n5.0
n5.0.1
n5.0.2
n5.0.3
n5.1
n5.1-dev
n5.1.1
n5.1.2
n5.1.3
n5.2-dev
n6.0
n6.1-dev

Means the first release it was integrated into was 5.0.

(When the patch is backported to old branches, it gets a different
hash, though. There, you really need to check manually. Usually, the
commit logs then say "cherry-picked from
7ca71b79f2b3256a0eef1a099b857ac9e4017e36".)

Moritz


More information about the ffmpeg-user mailing list