Skip to content

Conversation

@mstoeckl
Copy link
Contributor

@mstoeckl mstoeckl commented Mar 11, 2023

This change will, if the codec cannot directly handle the input format, make wf-recorder choose the best matching format according to the ranking provided by av_find_best_pix_fmt_of_2, instead of falling back to yuv420p or the first listed codec format.

Note that wf-recorder currently defaults to the libvpx (VP8) recorder, which only supports (yuv420p yuva420p). For testing, I'd recommend using either --codec libx264 or --codec libvpx-vp9, since both of those support a much wider range of input formats.

Use the most closely matching codec pixel format when the input
format is not available. For example, with input bgr0, this will
automatically prefer yuv444p over yuv420p when the codec supports
it, leading to more accurate recording of colored text and other
features with pixel-scale color variation.
Copy link
Owner

@ammen99 ammen99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know about the existence of this function, thanks!

@ammen99 ammen99 merged commit 84281e6 into ammen99:master Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants