Bino
❔ Avisynth script maker thing
var ffmpegPath = @"C:\Program Files\FFmpeg\ffmpeg.exe";
var outputPath = @"c:\Temp";
var inputPath = @"C:\EarthwormJimCartoonDVD1\VIDEO_TS\audio";
var audioFile = Path.Combine(inputPath, "$.ac3");
var videoFile = Path.Combine(inputPath, "$.mkv");
var fileName = Path.GetFileNameWithoutExtension(inputPath);
var finalFile = Path.Combine(outputPath, $"{fileName}.mkv");
Console.WriteLine("Merging the files");
ExecuteCmd(ffmpegPath, @$"-i ""{videoFile}"" -i ""{audioFile}"" -c copy ""{fileName}""");
void ExecuteCmd(string cmd, string arguments)
{
var processInfo = new ProcessStartInfo
{
FileName = cmd,
Arguments = arguments,
CreateNoWindow = true,
UseShellExecute = false
};
var process = Process.Start(processInfo);
process?.WaitForExit();
}
21 replies
❔ Avisynth script maker thing
var finalFile = Path.Combine(outputPath, $"{fileName}.mkv");
Console.WriteLine("Merging the files");
ExecuteCmd(ffmpegPath, @$"-i ""{videoFile}"" -i ""{audioFile}"" -c copy ""{fileName}""");
void ExecuteCmd(string ffmpegPath, string v)
{
throw new NotImplementedException();
}
21 replies