[FFmpeg-trac] #5972(undetermined:new): Zscale st_2084 transfer function from ZIMG
FFmpeg
trac at avcodec.org
Tue Nov 22 00:18:54 EET 2016
#5972: Zscale st_2084 transfer function from ZIMG
-------------------------------------+-------------------------------------
Reporter: muxketeer | Type: defect
Status: new | Priority: important
Component: | Version:
undetermined | unspecified
Keywords: HDR zscale | Blocked By:
smpte2084_transfer_function | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
When compiling ffmpeg with the latest version of ZIMG and then using the
'zscale' video filter, unable to make use of the latest transfer
functions/primatries/matrix available in ZIMG via zscale video filter.
Zscale allows one to specify input/output color: primaries, transfer
function, matrix, and do the transformations in a proper manner.
A couple of months back, ZIMG added the ability to specify ’st_2084’ (the
SMPTE 2084 color transfer function for HDR) as a transfer function. When
compiling ffmpeg with the latest version of ZIMG, expected result was the
ability to specify these new values to arguments in zscale , such as
‘transfer.’
Does zscale need to be made aware of new transfer functions in ZIMG when
they appear?
How to reproduce:
{{{
./ffmpeg -loglevel debug -y -start_number 86400 -f image2 -r 23.976 -i
/path/to/my/422-RGB/tiffSequence%5d.tiff -t 2 -sws_flags
lanczos+accurate_rnd+print_info+full_chroma_int -vf
showinfo,zscale=rangein=full:primariesin=2020:transferin=st_2084:matrixin=2020_ncl:range=full:primaries=2020:transfer=st_2084:matrix=2020_ncl,format=yuv420p10
-c:v rawvideo /path/to/raw/output.yuv
ffmpeg version: N-82492-g605f308 Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --prefix=/root/ffmpeg_build --pkg-config-flags=--static
--extra-cflags=-I/root/ffmpeg_build/include --extra-
ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-
libzimg --enable-nonfree
libavutil 55. 40.100 / 55. 40.100
libavcodec 57. 66.103 / 57. 66.103
libavformat 57. 57.100 / 57. 57.100
libavdevice 57. 2.100 / 57. 2.100
libavfilter 6. 67.100 / 6. 67.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
libpostproc 54. 2.100 / 54. 2.100
}}}
compiled a local version of zimg before compiling ffmpeg. then compiled
ffmpeg
grabbed latest zimg from: https://github.com/sekrit-twc/zimg.git (latest
as of 18NOV2016)
built on … clean image of Ubuntu 14.04.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5972>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list