Repository navigation
Improvements to avfilter interface and color handling - #1992
Conversation
|
I forgot to mention, eliminates cropscale.c by using avfilter. |
|
Initial read looks good. Very promising! |
|
I've tested this on macOS 10.13 with some different video files. I found there is an issue with movies which are from UHD Blu-Rays (4k, HDR10). If I convert one of those into 10-bit HEVC, the resulting video is just green (I know, it doesn't make sense to convert 10-bit HEVC into 10-bit HEVC, but this was just a test). Source file: Output file: No issue with current master. |
|
Any chance you could clip a few seconds of the source and supply a sample? I can't think how the output would be different than current master since in theory nothing has changed aside from passing the color information through the pipeline. |
|
I found some HDR10 samples online. I'll try those once they are downloaded. And some HDR10 calibration patterns |
|
I've reproduced the issue, thanks for doing some testing and pointing this out. |
|
Fixed |
|
You've invented a new planar format! 😸 |
Yes, seems fixed. :-) |
Use this interface in decavcodec. Remove cropscale.c and use avfilter for crop and scale. Improve log output of filters that are aliases for avfilter.
Propagates pix_fmt, range, primaries, transfer, and matrix everywhere. Everything that passes or creates video frames tags the frames with their color matrix info. All filters know the expected color matrix info of input frames.
Reserve VideoColorMatrixCode for doing color conversion. VideoColorMatrixCodeOverride sets color flags without transforming video frame colors.
Splits the initialization of pad, cropscale, deinterlace, rotate, and colorspace into their own files. Also splits internal avfilter API into it's own file.
It appears some color prim/tran/matrix settings result in high bit depth output of the scale filter.
Simplifies the internal API to avfilter.
Reworks how avfilter based hb filters are initialized.
Improves logging of avfilter based hb filters.
Adds colorspace conversion filter (currently unused and untested)
Propagate colorspace information everywhere that it might be needed.