[FFmpeg-trac] #6445(undetermined:new): Incorrect Video Levels in vf_colorspace
FFmpeg
trac at avcodec.org
Thu Jun 8 00:57:29 EEST 2017
#6445: Incorrect Video Levels in vf_colorspace
-------------------------------------+-------------------------------------
Reporter: maweber | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
trying to set the manual definition of image specs right.
video levels seem to be handled incorrectly.
i get "double" videolevels if going from "tv" to "tv", but correct if from
"tv" to "pc"
setup:
- input has video levels (manually set in davinci resolve)
- input is prores4444 (I think it's neglectable)
- ffmpeg version git-2017-06-07-1729bf3
this produces INcorrect videolevels:
{{{
# "tv" to "tv",.
"$FFBIN" -y -i "V1-0008-vlevels709.mov" -an -filter_complex
"[0:0]setfield=prog[vtmp1],[vtmp1]\
\
colorspace=ispace=bt709:itrc=gamma235:iprimaries=bt709:irange=tv:\
space=bt709:trc=gamma22:primaries=bt709:range=tv:\
format=yuv444p12:dither=fsb:wpadapt=identity\
\
[vtmp2]" -map [vtmp2] -c:v prores -profile:v 3 -pix_fmt yuv422p10le
-b:v 4000k -minrate 4000k -maxrate 4000k -bufsize 1835k -sn -strict
experimental -async 1 -threads 0 "V1-0008-vlevels709-2-io-in-cs--
tvtotv.mov"
}}}
this produces CORRECT videolevels:
{{{
# "tv" to "pc"
"$FFBIN" -y -i "V1-0008-vlevels709.mov" -an -filter_complex
"[0:0]setfield=prog[vtmp1],[vtmp1]\
\
colorspace=ispace=bt709:itrc=gamma22:iprimaries=bt709:irange=tv:\
space=bt709:trc=gamma22:primaries=bt709:range=pc:\
format=yuv444p12:dither=fsb:wpadapt=identity\
\
[vtmp2]" -map [vtmp2] -c:v prores -profile:v 3 -pix_fmt yuv422p10le
-b:v 4000k -minrate 4000k -maxrate 4000k -bufsize 1835k -sn -strict
experimental -async 1 -threads 0 "V1-0008-vlevels709-2-io-in-cs--
tvtopc.mov"
}}}
btw I also get wrong auto outputs if I set input params like
{{{
"-color_primaries bt709 -colorspace bt709 -color_range tv -color_trc
gamma22"
}}}
if "pc" basically means "100%" I would think this is misleading?
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6445>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list