This README is a guideline for the automation tool of the windows VS2019 environment setup only

Environment requirement:
1.Windows 10 x86_64 Operation system
2.Visual Studio 2017/2019 or later installed (assume the default path C:\)
3.Microsoft Visual Studio Installer Projects extension is installed for Visual Studio 2017/2019
4.NETINT release package for FFMPEG

NOTE: this is a automation process for "APPS037 Codensity T408TM Windows VS2019 SDK build Application Note"

How to setup the environment with this automation tool:

In windows, run batch script "windows_automated_compiling_ffmpeg_nx.z.x.bat" as administrator. As for DLL
mode, run the "windows_automated_compiling_ffmpeg_nx.z.x_dll.bat".

The relative path is fixed in the ffmpeg directory, below is a tree diagram as a reference for the relative path:

release-------
              -FFMPEG-nx.x.x
              -libxcoder_logan---------------
              -tools-------------------
                                      -apiexample-----------
                                      -MSVS2019-------------
                                                           -3rd_codecs\
                                                           -3rd_libs\
                                                           -3rd_tools\
                                                           -logan--------------
                                                                             -README.txt
                                                                             -NI_MSVS2019-nx.x.x\
                                                                             -NI_MSVS2019_XCODER\
                                                                             -install_ffmpeg_headers.sh
                                                                             -win_symlink_tool.sh
                                                                             -windows_automated_compiling_ffmpeg.bat
                                                                             -windows_automated_compiling_ffmpeg_dll.bat
                                                                             -windows_automated_compiling_ffmpeg_n4.3.1.bat
                                                                             -windows_automated_compiling_ffmpeg_n4.3.1_dll.bat
                                                                             -windows_automated_compiling_ffmpegxcoder_api_example.bat
                                                                             -windows_download_and_patch_ffmpeg.bat

Let's take FFmpeg-n4.2.1 for instance. The final output directory would be C:\FFmpeg-n4.2.1\NI_MSVS2019-n4.2.1\build\
where the following output files would be included:

ffmpeg.exe
ffplay.exe
ffprobe.exe
init_rsrc_logan.exe
ni_rsrc_list_logan.exe
ni_rsrc_mon_logan.exe
ni_rsrc_update_logan.exe
SDL2.dll
setup.exe
setup.msi
test_rsrc_api.exe
xcoder.exe
zlibwapi.dll

If we would like to build as DLL mode then the output files will be as follows:

ffmpeg.exe
ffplay.exe
ffprobe.exe
init_rsrc_logan.exe
libavcodec.dll
libavdevice.dll
libavfilter.dll
libavformat.dll
libavresample.dll
libavutil.dll
libavpostproc.dll
libswresample.dll
libswscale.dll
libxcoder_logan.dll
ni_rsrc_list_logan.exe
ni_rsrc_mon_logan.exe
ni_rsrc_update_logan.exe
SDL2.dll
setup.exe
setup.msi
test_rsrc_api.exe
xcoder.exe
zlibwapi.dll

Click the setup.msi or setup.exe for installation in which the location path can be costumized. You may use
'Add or Remove programs'system setting to erase earlier installation.

As for API example build, run batch script "windows_automated_compiling_ffmpegxcoder_api_example.bat" as
administrator. Note it has to ensure that both of FFmpeg and libxcoder has been built out successfully.
Finally you can see the EXE and DLL files in C:\tools\apiexample\NI_MSVS2019_API_EXAMPLE\build\

include\
libavcodec.dll
libavdevice.dll
libavfilter.dll
libavformat.dll
libavresample.dll
libavutil.dll
libavpostproc.dll
libswresample.dll
libswscale.dll
libxcoder_logan.dll
ni_demuxing_decoding.exe
ni_encode_video.exe
ni_encode_video_dynamic_resolution.exe
ni_multi_thread_transcoding.exe
