hls steram for web

Hello! I encountered a configuration problem, I am running a test

ffmpeg \
-f lavfi -i color=size=1920x1080:rate=25:color=black \
-f lavfi -i anullsrc=cl=mono:r=44100 \
-pix_fmt yuv420p \
-c:v h264_nvenc -profile:v main -preset p1 -g 50 -b:v 5M \
-c:a aac -b:a 16k -ar 44100 -ac 1 \
-map 0:v -map 1:a \
-f hls -hls_time 1 -hls_list_size 10 \
-hls_flags delete_segments+append_list+omit_endlist \
test.m3u8

works as expected well

my config logs

[2025-06-30 16:19:52.567] [info]    ############################################################################
[2025-06-30 16:19:52.567] [info]    CasparCG Server is distributed by the Swedish Broadcasting Corporation (SVT)
[2025-06-30 16:19:52.567] [info]    under the GNU General Public License GPLv3 or higher.
[2025-06-30 16:19:52.567] [info]    Please see LICENSE.TXT for details.
[2025-06-30 16:19:52.567] [info]    http://www.casparcg.com/
[2025-06-30 16:19:52.567] [info]    ############################################################################
[2025-06-30 16:19:52.567] [info]    Starting CasparCG Video and Graphics Playout Server 2.4.3 N/A Stable
[2025-06-30 16:19:52.567] [info]    "/opt/conf.config":
[2025-06-30 16:19:52.567] [info]    -----------------------------------------
[2025-06-30 16:19:52.567] [info]    <?xml version="1.0" encoding="utf-8"?>
[2025-06-30 16:19:52.567] [info]    <configuration>
[2025-06-30 16:19:52.567] [info]       <paths>
[2025-06-30 16:19:52.567] [info]          <media-path>/opt/casparcg/media</media-path>
[2025-06-30 16:19:52.567] [info]          <log-path>/opt/casparcg/log/</log-path>
[2025-06-30 16:19:52.567] [info]          <data-path>/opt/casparcg/data/</data-path>
[2025-06-30 16:19:52.567] [info]          <template-path>/opt/casparcg/template/</template-path>
[2025-06-30 16:19:52.567] [info]       </paths>
[2025-06-30 16:19:52.567] [info]       <channels>
[2025-06-30 16:19:52.567] [info]          <channel>
[2025-06-30 16:19:52.567] [info]             <video-mode>720p5000</video-mode>
[2025-06-30 16:19:52.567] [info]             <consumers>
[2025-06-30 16:19:52.567] [info]                <screen/>
[2025-06-30 16:19:52.567] [info]                <ffmpeg>
[2025-06-30 16:19:52.567] [info]                   <path>/opt/casparcg/output/test.m3u8</path>
[2025-06-30 16:19:52.567] [info]                   <args>-f lavfi -i anullsrc=cl=mono:r=44100 -pix_fmt yuv420p -c:v h264_nvenc -profile:v main -preset p1 -g 50 -b:v 5M -c:a aac -b:a 16k -ar 44100 -ac 1 -map 0:v -map 1:a -f hls -hls_time 1 -hls_list_size 10 -hls_flags delete_segments+append_list+omit_endlist</args>
[2025-06-30 16:19:52.567] [info]                </ffmpeg>
[2025-06-30 16:19:52.567] [info]             </consumers>
[2025-06-30 16:19:52.567] [info]          </channel>
[2025-06-30 16:19:52.567] [info]       </channels>
[2025-06-30 16:19:52.567] [info]       <controllers>
[2025-06-30 16:19:52.567] [info]          <tcp>
[2025-06-30 16:19:52.567] [info]             <port>5250</port>
[2025-06-30 16:19:52.567] [info]             <protocol>AMCP</protocol>
[2025-06-30 16:19:52.567] [info]          </tcp>
[2025-06-30 16:19:52.567] [info]       </controllers>
[2025-06-30 16:19:52.567] [info]    </configuration>
[2025-06-30 16:19:52.567] [info]    -----------------------------------------
[2025-06-30 16:19:52.567] [info]    Initialized video modes.
[2025-06-30 16:19:52.725] [info]    Initializing OpenGL Device.
[2025-06-30 16:19:52.727] [info]    Initialized OpenGL 4.5.0 NVIDIA 570.133.07 NVIDIA Corporation
[2025-06-30 16:19:52.759] [info]    Initialized OpenGL Accelerated GPU Image Mixer for channel 1
[2025-06-30 16:19:52.759] [info]    video_channel[1|720p5000] Successfully Initialized.
[2025-06-30 16:19:52.759] [info]    Initialized channels.
[2025-06-30 16:19:52.759] [info]    Initialized command repository.
[2025-06-30 16:19:52.759] [info]    Initialized image module.
[2025-06-30 16:19:52.759] [info]    Initialized ffmpeg module.
[2025-06-30 16:19:52.759] [info]    Initialized oal module.
[2025-06-30 16:19:52.759] [info]    Initialized decklink module.
[2025-06-30 16:19:52.759] [info]    Initialized screen module.
[2025-06-30 16:19:52.759] [info]    Initialized newtek module.
[2025-06-30 16:19:52.759] [info]    Initialized artnet module.
[2025-06-30 16:19:52.877] [info]    Initialized html module.
[2025-06-30 16:19:52.877] [info]    Initialized modules.
[2025-06-30 16:19:52.877] [info]    Screen consumer [1|720p5000] Initialized.
[2025-06-30 16:19:52.877] [info]    ffmpeg[/opt/casparcg/output/test.m3u8] Initialized.
[2025-06-30 16:19:52.877] [info]    Initialized startup producers.
[2025-06-30 16:19:52.878] [info]    Initialized controllers.
[2025-06-30 16:19:52.878] [info]    Initialized osc.
[2025-06-30 16:19:52.880] [error]   [ffmpeg] [libx264 @ 0x795df8110500] Error setting profile main.
[2025-06-30 16:19:52.880] [error]   
[2025-06-30 16:19:52.880] [info]    [ffmpeg] [libx264 @ 0x795df8110500] Possible profiles:
[2025-06-30 16:19:52.880] [info]    [ffmpeg]  baseline
[2025-06-30 16:19:52.880] [info]    [ffmpeg]  main
[2025-06-30 16:19:52.880] [info]    [ffmpeg]  high
[2025-06-30 16:19:52.880] [info]    [ffmpeg]  high10
[2025-06-30 16:19:52.880] [info]    [ffmpeg]  high422
[2025-06-30 16:19:52.880] [info]    [ffmpeg]  high444
[2025-06-30 16:19:52.880] [info]    [ffmpeg] 
[2025-06-30 16:19:52.880] [info]    
[2025-06-30 16:19:52.895] [error]   Exception: ./src/modules/ffmpeg/consumer/ffmpeg_consumer.cpp(325): Throw in function caspar::ffmpeg::Stream::Stream(AVFormatContext*, std::string, AVCodecID, const caspar::core::video_format_desc&, bool, std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&)::<lambda()>
[2025-06-30 16:19:52.895] [error]   Dynamic exception type: boost::wrapexcept<caspar::ffmpeg::ffmpeg_error_t>
[2025-06-30 16:19:52.895] [error]   [caspar::tag_stacktrace_info*] =  0# 0x00005907BE74E35F in /usr/bin/casparcg-server-2.4
[2025-06-30 16:19:52.895] [error]    1# 0x00005907BE897DDA in /usr/bin/casparcg-server-2.4
[2025-06-30 16:19:52.895] [error]    2# 0x00005907BE89BD82 in /usr/bin/casparcg-server-2.4
[2025-06-30 16:19:52.895] [error]    3# 0x0000795E8F4ECDB4 in /lib/x86_64-linux-gnu/libstdc++.so.6
[2025-06-30 16:19:52.895] [error]    4# 0x0000795E8F09CAA4 in /lib/x86_64-linux-gnu/libc.so.6
[2025-06-30 16:19:52.895] [error]    5# 0x0000795E8F129C3C in /lib/x86_64-linux-gnu/libc.so.6
[2025-06-30 16:19:52.895] [error]   
[2025-06-30 16:19:52.895] [error]   [caspar::ffmpeg::tag_ffmpeg_errn_info*] = -22
[2025-06-30 16:19:52.895] [error]   [boost::errinfo_errno_*] = 22, "Invalid argument"
[2025-06-30 16:19:52.895] [error]   [boost::errinfo_api_function_*] = avcodec_open2(enc.get(), codec, &dict)
[2025-06-30 16:19:52.895] [error]   
[2025-06-30 16:19:52.895] [error]    0# 0x00005907BE6CA148 in /usr/bin/casparcg-server-2.4
[2025-06-30 16:19:52.895] [error]    1# 0x00005907BE6EB4AC in /usr/bin/casparcg-server-2.4
[2025-06-30 16:19:52.895] [error]    2# 0x00005907BE7C4293 in /usr/bin/casparcg-server-2.4
[2025-06-30 16:19:52.895] [error]    3# 0x00005907BE80137E in /usr/bin/casparcg-server-2.4
[2025-06-30 16:19:52.895] [error]    4# 0x0000795E8F4ECDB4 in /lib/x86_64-linux-gnu/libstdc++.so.6
[2025-06-30 16:19:52.895] [error]    5# 0x0000795E8F09CAA4 in /lib/x86_64-linux-gnu/libc.so.6
[2025-06-30 16:19:52.895] [error]    6# 0x0000795E8F129C3C in /lib/x86_64-linux-gnu/libc.so.6
[2025-06-30 16:19:52.895] [error]   
[2025-06-30 16:19:52.895] [info]    ffmpeg[/opt/casparcg/output/test.m3u8] Uninitialized.

where is my mistake? Thank you!