Closed jwoldan closed 2 years ago
@jwoldan Thanks for the patch! I actually fixed this bug some time ago but real life got in the way and I forgot to check in the code.
Your change will work but only for bt470bg
. A complete fix should also handle bt470m
which would map to gamma22
.
So, I will try to check in my change later tonight.
Makes sense, I saw the gamma22 <-> bt470m mapping in the options but didn't have a video to test with. That said, I'm open to updating my change if that's easier.
@jwoldan My apologies for both missing your last comment and taking so long to respond. I actually just checked in the fix for this that I made some time ago.
Thanks!
ffmpeg does not support a passing a
bt470bg
value forcolor_trc
. Based on https://ffmpeg.org/ffmpeg-codecs.html, the equivalent value isgamma28
. This update maps thebt470bg
value togamma28
when settingcolor_trc
.There may be other similar values that need to be mapped but this is the only one I've encountered in my own testing.
I encountered this issue when transcoding some older videos.