Error exporting with h264_amf codec

Error exporting h264_amf (hevc_amf ok)
9800X3D 7900XTX
26.4.30 shortcut portable
windows 11 24H2
h264_amf log
mlt_repository_init: skip plugin D:\Portable\media\Shotcut\lib\mlt/libmltopenfx.dll
Failed to open file (null) for yaml parsing!
[h264_amf @ 0000027cf9960040] The “dc” option is deprecated: deprecated; use intra_dc_precision for MPEG-2 instead
[h264_amf @ 0000027cf9960040] [Eval @ 0000009d07bfecb0] Undefined constant or missing ‘(’ in ‘medium’
[h264_amf @ 0000027cf9960040] Unable to parse “preset” option value “medium”
[h264_amf @ 0000027cf9960040] [Eval @ 0000009d07bfecb0] Undefined constant or missing ‘(’ in ‘main10’
[h264_amf @ 0000027cf9960040] Unable to parse “profile” option value “main10”
[h264_amf @ 0000027cf9988780] [Eval @ 0000009d07bff180] Undefined constant or missing ‘(’ in ‘medium’
[h264_amf @ 0000027cf9988780] Unable to parse “preset” option value “medium”
[h264_amf @ 0000027cf9988780] [Eval @ 0000009d07bff180] Undefined constant or missing ‘(’ in ‘main10’
[h264_amf @ 0000027cf9988780] Unable to parse “profile” option value “main10”
[matroska,webm @ 0000027cf9963b00] parser not found for codec pcm_s16le, packets or times may be invalid.
[matroska,webm @ 0000027cf9963b00] parser not found for codec pcm_s16le, packets or times may be invalid.
[matroska,webm @ 0000027cf9ab2680] parser not found for codec pcm_s16le, packets or times may be invalid.
[matroska,webm @ 0000027cf9ab2680] parser not found for codec pcm_s16le, packets or times may be invalid.
[matroska,webm @ 0000027cf9b19d40] parser not found for codec pcm_s16le, packets or times may be invalid.
[matroska,webm @ 0000027cf9b19d40] parser not found for codec pcm_s16le, packets or times may be invalid.
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[AVIOContext @ 0000027cf9963dc0] Statistics: 449458 bytes read, 3 seeks
[D3D11VA @ 0000027cf9970080] Selecting d3d11va adapter 0
[D3D11VA @ 0000027cf9970080] Using device 1002:744c (AMD Radeon RX 7900 XTX).
[AMF @ 0000027cf996f280] AMF initialisation succeeded via D3D11.
[h264_amf @ 0000027cf9988780] 10-bit input video is not supported by AMF H264 encoder
[chain avformat-novalidate] D:/Upload/ws N.mkv
hwaccel d3d11 av_hwdevice_ctx_create() success
[chain avformat-novalidate] D:/Upload/ws N.mkv
checking VFR: pkt.duration 16
[link swresample] 2(independent) s16 48000Hz → 2(stereo) f32le 48000Hz
[hevc @ 0000027cf9963b00] Decoder GUIDs reported as supported:
[hevc @ 0000027cf9963b00] {c58b9a06-7e89-11e1-bb00-70b34824019b} 103
[hevc @ 0000027cf9963b00] {1b81be68-a0c7-11d3-b984-00c04f2e73c5} 103
[hevc @ 0000027cf9963b00] {4245f676-2bbc-4166-a0bb-54e7b849c380} 103
[hevc @ 0000027cf9963b00] {9901ccd3-ca12-4b7e-867a-e2223d9255c3} 103
[hevc @ 0000027cf9963b00] {d79be8da-0cf1-4c81-b82a-69a4e236f43d} 103
[hevc @ 0000027cf9963b00] {f9aaccbb-c2b6-4cfc-8779-5707b1760552} 103
[hevc @ 0000027cf9963b00] {d1c20509-ae7b-4e72-ae3b-49f88d58992f} 103 107
[hevc @ 0000027cf9963b00] {5b11d51b-2f4c-4452-bcc3-09f2a1160cc0} 103
[hevc @ 0000027cf9963b00] {ea72396a-67ec-4781-bede-56f498f04ef2} 103
[hevc @ 0000027cf9963b00] {c152ca8f-738c-461b-ad89-fc292cf8f162} 103
[hevc @ 0000027cf9963b00] {514a356c-7027-4aff-8a60-afd2c1f672f1} 103
[hevc @ 0000027cf9963b00] {107af0e0-ef1a-4d19-aba8-67a163073d13} 103 104
[hevc @ 0000027cf9963b00] {65d1fa41-58af-453a-9cab-5d981156da9f} 103 104
[hevc @ 0000027cf9963b00] {2db154b6-dbb2-4079-a3ff-60d7a898a6ab} 103 104
[hevc @ 0000027cf9963b00] {c74a3fd0-d713-4581-a02e-8edfb112ace3} 103 104
[hevc @ 0000027cf9963b00] {463707f8-a1d0-4585-876d-83aa6d60b89e} 103
[hevc @ 0000027cf9963b00] {a4c749ef-6ecf-48aa-8448-50a7a1165ff7} 103 104
[hevc @ 0000027cf9963b00] {2d80bed6-9cac-4835-9e91-327bbc4f9ee8} 105
[hevc @ 0000027cf9963b00] {b8be4ccb-cf53-46ba-8d59-d6b8a6da5d2a} 103 104
[hevc @ 0000027cf9963b00] {603a4756-a864-4f91-bb62-2c935b7a1391} 103
[hevc @ 0000027cf9963b00] {84ad67f6-4c21-419a-9f0b-24f0578906c1} 103
[mp4 @ 0000027cff6f2940] Tag hvc1 incompatible with output codec id ‘27’ (avc1)
[consumer avformat] Could not write header ‘D:/Upload/3.mp4’
[aac @ 0000027cf99607c0] Qavg: nan
[AVIOContext @ 0000027cf9b7db40] Statistics: 0 bytes written, 0 seeks, 0 writeouts

hevc exported OK but log contains errors:

mlt_repository_init: skip plugin D:\Portable\media\Shotcut\lib\mlt/libmltopenfx.dll
Failed to open file (null) for yaml parsing!
[hevc_amf @ 00000184036f0040] The “dc” option is deprecated: deprecated; use intra_dc_precision for MPEG-2 instead
[hevc_amf @ 00000184036f0040] [Eval @ 00000002411feb70] Undefined constant or missing ‘(’ in ‘medium’
[hevc_amf @ 00000184036f0040] Unable to parse “preset” option value “medium”
[hevc_amf @ 0000018403718780] [Eval @ 00000002411ff040] Undefined constant or missing ‘(’ in ‘medium’
[hevc_amf @ 0000018403718780] Unable to parse “preset” option value “medium”
[matroska,webm @ 00000184036f3b00] parser not found for codec pcm_s16le, packets or times may be invalid.
[matroska,webm @ 00000184036f3b00] parser not found for codec pcm_s16le, packets or times may be invalid.
[matroska,webm @ 0000018403842680] parser not found for codec pcm_s16le, packets or times may be invalid.
[matroska,webm @ 0000018403842680] parser not found for codec pcm_s16le, packets or times may be invalid.
[matroska,webm @ 00000184038a9d40] parser not found for codec pcm_s16le, packets or times may be invalid.
[matroska,webm @ 00000184038a9d40] parser not found for codec pcm_s16le, packets or times may be invalid.
[producer avformat] audio: total_streams 1 max_stream 1 total_channels 2 max_channels 2
[AVIOContext @ 00000184036f3dc0] Statistics: 449458 bytes read, 3 seeks
[D3D11VA @ 00000184036ff940] Selecting d3d11va adapter 0
[D3D11VA @ 00000184036ff940] Using device 1002:744c (AMD Radeon RX 7900 XTX).
[AMF @ 0000018403700980] AMF initialisation succeeded via D3D11.
[chain avformat-novalidate] D:/Upload/ws N.mkv
hwaccel d3d11 av_hwdevice_ctx_create() success
[chain avformat-novalidate] D:/Upload/ws N.mkv
checking VFR: pkt.duration 16
[link swresample] 2(independent) s16 48000Hz → 2(stereo) f32le 48000Hz
[hevc @ 00000184037e2800] Decoder GUIDs reported as supported:
[hevc @ 00000184037e2800] {c58b9a06-7e89-11e1-bb00-70b34824019b} 103
[hevc @ 00000184037e2800] {1b81be68-a0c7-11d3-b984-00c04f2e73c5} 103
[hevc @ 00000184037e2800] {4245f676-2bbc-4166-a0bb-54e7b849c380} 103
[hevc @ 00000184037e2800] {9901ccd3-ca12-4b7e-867a-e2223d9255c3} 103
[hevc @ 00000184037e2800] {d79be8da-0cf1-4c81-b82a-69a4e236f43d} 103
[hevc @ 00000184037e2800] {f9aaccbb-c2b6-4cfc-8779-5707b1760552} 103
[hevc @ 00000184037e2800] {d1c20509-ae7b-4e72-ae3b-49f88d58992f} 103 107
[hevc @ 00000184037e2800] {5b11d51b-2f4c-4452-bcc3-09f2a1160cc0} 103
[hevc @ 00000184037e2800] {ea72396a-67ec-4781-bede-56f498f04ef2} 103
[hevc @ 00000184037e2800] {c152ca8f-738c-461b-ad89-fc292cf8f162} 103
[hevc @ 00000184037e2800] {514a356c-7027-4aff-8a60-afd2c1f672f1} 103
[hevc @ 00000184037e2800] {107af0e0-ef1a-4d19-aba8-67a163073d13} 103 104
[hevc @ 00000184037e2800] {65d1fa41-58af-453a-9cab-5d981156da9f} 103 104
[hevc @ 00000184037e2800] {2db154b6-dbb2-4079-a3ff-60d7a898a6ab} 103 104
[hevc @ 00000184037e2800] {c74a3fd0-d713-4581-a02e-8edfb112ace3} 103 104
[hevc @ 00000184037e2800] {463707f8-a1d0-4585-876d-83aa6d60b89e} 103
[hevc @ 00000184037e2800] {a4c749ef-6ecf-48aa-8448-50a7a1165ff7} 103 104
[hevc @ 00000184037e2800] {2d80bed6-9cac-4835-9e91-327bbc4f9ee8} 105
[hevc @ 00000184037e2800] {b8be4ccb-cf53-46ba-8d59-d6b8a6da5d2a} 103 104
[hevc @ 00000184037e2800] {603a4756-a864-4f91-bb62-2c935b7a1391} 103
[hevc @ 00000184037e2800] {84ad67f6-4c21-419a-9f0b-24f0578906c1} 103
Current Frame: 305 68

[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7388], current_position=[7387], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7389], current_position=[7388], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7390], current_position=[7389], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7391], current_position=[7390], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7392], current_position=[7391], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7393], current_position=[7392], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7394], current_position=[7393], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7395], current_position=[7394], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7396], current_position=[7395], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7397], current_position=[7396], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7398], current_position=[7397], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7399], current_position=[7398], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7400], current_position=[7399], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7401], current_position=[7400], int_position=[0], pts=[-9223372036854775808]
[chain avformat-novalidate] D:/Upload/ws N.mkv
WILD TIMESTAMP: pkt.pts=[-9223372036854775808], pkt.dts=[-9223372036854775808], req_position=[7402], current_position=[7401], int_position=[0], pts=[-9223372036854775808]
[link swresample] 2(independent) s16 48000Hz → 2(stereo) f32le 48000Hz
[link swresample] 2(independent) s16 48000Hz → 2(stereo) f32le 48000Hz
[link swresample] 2(independent) s16 48000Hz → 2(stereo) f32le 48000Hz

[mp4 @ 00000183f2e12940] Starting second pass: moving the moov atom to the beginning of the file
[AVIOContext @ 00000184799d22c0] Statistics: 468852924 bytes read, 0 seeks
[aac @ 00000184036f07c0] Qavg: 3448.061
[AVIOContext @ 00000184036f3ec0] Statistics: 937816660 bytes written, 4 seeks, 3581 writeouts
[link swresample] 2(independent) s16 48000Hz → 2(stereo) f32le 48000Hz
Completed successfully in 00:01:53

You either are using a 10-bit processing mode in Settings and/or clicked a ten_bit export preset. 10-bit processing modes now select 10-bit export by default, and it prefers to use HEVC for export as that is more compatible. However, if you changed processing mode after Shotcut already started and set its export default you need to be aware of that. Maybe I can add a rule that you cannot using the combination of 10-bit, H.264 & hardware encoder since that is a common fail point. Instead, it would fall back to using software x264. But then some people will either report it is not using the hardware encoder even though that is checked on, or that their 10-bit H.264 is not playing somewhere.

I implemented that for the next version 26.6 to fix that easy pitfall that requires a good technical understand and fails under the simplicity of using a preset and a checkbox (hardware encoder).