Meaning of -color_range 2 ?
Hi, 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? -Ulf
Am 01.10.23 um 12:02 schrieb Ulf Zibis:
Hi,
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=7ca71b79f2b3256a0eef1a... -Ulf
On 10/1/23, Ulf Zibis <Ulf.Zibis@cosoco.de> wrote:
Am 01.10.23 um 12:02 schrieb Ulf Zibis:
Hi,
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=7ca71b79f2b3256a0eef1a...
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.
-Ulf
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Am 01.10.23 um 14:05 schrieb Paul B Mahol:
On 10/1/23, Ulf Zibis <Ulf.Zibis@cosoco.de> wrote:
And how can I know, in which version of FFMPEG this patch was released?
https://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=7ca71b79f2b3256a0eef1a...
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.
So the patch is from August 2021, FFmpeg 4.4 is from April 2021 and FFmpeg 5.0 is from January 2022. As I can't see any branch information, can I assume, the patch was commited to master? And so the patch was released with FFmpeg 5.0 ? -Ulf
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=7ca71b79f2b3256a0eef1a...
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
Am 01.10.23 um 12:02 schrieb Ulf Zibis:
Hi,
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?
My question is because of this suggestion: https://trac.ffmpeg.org/wiki/Capture/Desktop#LosslessRecording If "-color_range 2" means "-color_range limited", then ffmpeg would take the input from the desktop screen as limited RGB range, which probably is not wanted, as I assume a normal desktop would use the full RGB range, and so the resulting video would have corrupted colors.
participants (3)
-
Moritz Barsnick -
Paul B Mahol -
Ulf Zibis