Mark Gaiser
Mark Gaiser
> I wouldn't say that rust is making this easier 😉 I said: Rust **isn't** making that any easier But if you look at other languages then Rust does certainly...
> 1. Instead of adding BGR0 to AMF encoder's list of input formats, with the latest patches you can use amf context and hwupload: -vf 'hwupload'. With that encoder input...
With hwupload and color_range full:  And this is how i expect it to be (provided pix_format p010 and removed hwupload) 
> If you pass pix_fmt P010 to AMF HEVC encoder, it will initialize with HEVC 10-bit instead of default 8-bit. Yes, colors will be better. I guess, FFmpeg AMF encoder...
Ahh, i see what you mean! Interesting how banding (the lack thereof in fact) fooled me in this instance. It indeed has `yuv420` as output format when passing `bgr0`. I...
Ok, will do! I do have to modify more. Even to get logging. Because.. errr... ``` ❯ cppgrep "log_to_dbg" libavcodec/amfenc_hevc.c:109: { "log_to_dbg", "Enable AMF logging to debug output", OFFSET(log_to_dbg), AV_OPT_TYPE_BOOL,{...
Right, nope. This is a little more involved then just enabling one little thing.. We're now in AMF vtable and initialization magic. I'll happily apply a patch if you have...
> We would welcome you as dev :) Hah 😆 That doesn't show me much AMF logging at all.. I know how AMF logging "can" look from before this patch...
Alright, i have output for you. It's a lot... :) ```plain ffmpeg version N-118369-g959b799c8d Copyright (c) 2000-2025 the FFmpeg developers built with gcc 14.2.1 (GCC) 20240910 configuration: --prefix=/home/mark/pkgbuilds/ffmpeg/upstream/build --disable-debug --disable-static...
Ha! You use god mode? That's not documented! AMF_ASSIGN_PROPERTY_INT64(res, ctx->encoder, AMF_VIDEO_ENCODER_HEVC_OUTPUT_COLOR_PROFILE, AMF_COLOR_PRIMARIES_BT2020); Note the **primaries** in the **color profile** 😉 Anyhow, confirmed locally! Thank you for these values. Is there...