Bino
Bino
CC#
Created by Bino on 3/29/2023 in #help
❔ Avisynth script maker thing
Never got around to trying
21 replies
CC#
Created by Bino on 3/29/2023 in #help
❔ Avisynth script maker thing
Thx
21 replies
CC#
Created by Bino on 3/29/2023 in #help
❔ Avisynth script maker thing
Will give that a go
21 replies
CC#
Created by Bino on 3/29/2023 in #help
❔ Avisynth script maker thing
full code rn
21 replies
CC#
Created by Bino on 3/29/2023 in #help
❔ 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
CC#
Created by Bino on 3/29/2023 in #help
❔ Avisynth script maker thing
gives me an error saying not implemented
21 replies
CC#
Created by Bino on 3/29/2023 in #help
❔ Avisynth script maker thing
trying to mux files using ffmpeg
21 replies
CC#
Created by Bino on 3/29/2023 in #help
❔ 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
CC#
Created by Bino on 3/29/2023 in #help
❔ Avisynth script maker thing
var templatePath = "Jim.avs";
var inputDirectory = @"H:\Cartoons, Anime und co\Jim der Regenwurm";
var outputDirectory = @"C:\Temp";
var templateText = File.ReadAllText(templatePath);
foreach (var filePath in Directory.GetFiles(inputDirectory))
{
var fileName = Path.GetFileNameWithoutExtension(filePath);
var newFileText = templateText.Replace("[CLIP]", filePath);
var outputFilePath = Path.Combine(outputDirectory, $"{fileName}.avs");
File.WriteAllText(outputFilePath, newFileText);
}
var templatePath = "Jim.avs";
var inputDirectory = @"H:\Cartoons, Anime und co\Jim der Regenwurm";
var outputDirectory = @"C:\Temp";
var templateText = File.ReadAllText(templatePath);
foreach (var filePath in Directory.GetFiles(inputDirectory))
{
var fileName = Path.GetFileNameWithoutExtension(filePath);
var newFileText = templateText.Replace("[CLIP]", filePath);
var outputFilePath = Path.Combine(outputDirectory, $"{fileName}.avs");
File.WriteAllText(outputFilePath, newFileText);
}
21 replies
CC#
Created by Bino on 3/29/2023 in #help
❔ Avisynth script maker thing
Thx for the help but i actually got my buddy to help, he made a nice thing
21 replies