Quote:
So I tried to use AI tools to do this
- Albeit that AI like ChatGPT etc . is a great tool to use, it is just that, a tool. You cannot believe or copy/paste as-is code and expect it to work straight from the bat, it will point you in the right direction but you need to know what the code is doing and when.
Quote:
suggested me using NAudio and SharpAvi libraries to do so
- Your first step should then be to read and study the documentation for these 2 libraries to understand where you need to change the code for it to work properly -
This contains the documentation to naudio - NAudio[
^] This contains the documentation to
SharpAVI[
^] Note that both is a few years old and there might be better and/or newer solutions...
pdoxtader suggested the correct route, why re-invent the wheel if it has been offered for free and as a plug-in.