Workaround mesa (amd and intel driver issue): use hevc when mkv is used since mesa doesn't support global headers for h264

This commit is contained in:
dec05eba
2023-11-30 18:27:39 +01:00
parent 31e54bdc85
commit 72d75d0f4a
2 changed files with 11 additions and 6 deletions

2
TODO
View File

@@ -106,3 +106,5 @@ Support I915_FORMAT_MOD_Y_TILED_CCS (and other power saving modifiers, see https
Test if p2 state can be worked around by using pure nvenc api and overwriting cuInit/cuCtxCreate* to not do anything. Cuda might be loaded when using nvenc but it might not be used, with certain record options? (such as h264 p5).
nvenc uses cuda when using b frames and rgb->yuv conversion, so convert the image ourselves instead.-
Mesa doesn't support global headers (AV_CODEC_FLAG_GLOBAL_HEADER) with h264... which also breaks mkv since mkv requires global header.