Thanks!
But now I have the following error :
[hevc_mf @ 00000223295094c0] could not find any MFT for the given media type
[hevc_mf @ 00000223295094c0] could not create MFT
[ERROR:0@0.085] global cap_ffmpeg_impl.hpp:3076 open Could not open codec hevc_mf, error: Unspecified error (-40)
[ERROR:0@0.085] global cap_ffmpeg_impl.hpp:3093 open VIDEOIO/FFMPEG: Failed to initialize VideoWriter
Error: Could not open output file for writing.
Is there anything you could recommend?