xxxxxxxxxx
according to my investigation cloudconvert.com has worked good and nice;
I now going to write my gernual,
bye,
Stanferd
use FFmpeg, which is a free and open-source software for handling multimedia files.
xxxxxxxxxx
using System.Diagnostics;
// ...
// Specify the input and output file paths
string inputPath = @"C:\videos\input.mp4";
string outputPath = @"C:\videos\output.mkv";
// Set the FFmpeg executable file path
string ffmpegPath = @"C:\ffmpeg\bin\ffmpeg.exe";
// Set the FFmpeg command
string command = $"-i \"{inputPath}\" -c copy \"{outputPath}\"";
// Execute the FFmpeg command using a process
Process process = new Process();
process.StartInfo.FileName = ffmpegPath;
process.StartInfo.Arguments = command;
process.StartInfo.UseShellExecute = false;
process.StartInfo.RedirectStandardOutput = true;
process.Start();
process.WaitForExit();
you need to set the input and output file paths according to your requirements. Also, you need to specify the FFmpeg executable file path in the ffmpegPath variable. The command variable contains the FFmpeg command to convert the MP4 video to an MKV video. The -i option specifies the input file path, and the -c copy option specifies to copy the video and audio streams from the input file without re-encoding them. Finally, the output file path is specified. The process object is used to execute the FFmpeg command as a separate process.
xxxxxxxxxx
# mkv-to-mp4.bat
# This will Covert all MKV to MP4 in a folder
@echo off
TITLE CONVERT ALL FILE VIDEO TO MP4
set PATH=%PATH%;C:\ffmpeg
set i = 1
for %%f in (*.mkv) do ffmpeg -i "%%f" -map 0 -vcodec copy -acodec copy "%%~nf.mp4"
pause
xxxxxxxxxx
use vlc
or cloudconvert.com if use don't have it