From 52856d9dd93b13f40c8578533da70a3ac558b845 Mon Sep 17 00:00:00 2001 From: unclshura Date: Thu, 14 May 2026 22:44:41 +0100 Subject: [PATCH] Use src folder + Splitter as default output folder. --- CommandLine.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/CommandLine.cs b/CommandLine.cs index 133e0b6..1e42b08 100644 --- a/CommandLine.cs +++ b/CommandLine.cs @@ -80,8 +80,8 @@ public sealed class CommandLine if (args.Length < 1) { - Console.WriteLine("Missing required parameters."); PrintHelp(); + Console.WriteLine("[ERROR]: Missing required parameters."); return; } @@ -202,16 +202,16 @@ public sealed class CommandLine if ( Jobs.Length == 0) { - Console.WriteLine("No valid input files found."); PrintHelp(); + Console.WriteLine("[ERROR]:No valid input files found."); return; } if (string.IsNullOrWhiteSpace(Master.OutputFolder)) { - Console.WriteLine("No output folder specified."); - PrintHelp(); - return; + var firstInput = Jobs[0].InputFile; + Master.OutputFolder = Path.Combine(Path.GetDirectoryName(Path.GetFullPath(firstInput))!, "Splitter"); + Console.WriteLine($"Using default output folder: {Master.OutputFolder}"); } } @@ -330,6 +330,9 @@ Usage: splitter [ ...] [options] [--] Options: + --out= Output folder for segments. + Default: same folder as input video + ""Splitter"". + --file= Input names or file masks (e.g. ""videos/*.mp4""). If not specified, the first non-option argument is used as input. @@ -349,7 +352,7 @@ Options: --duration=45 Without --force: - Segments are equalized so all have same length. + Default: maximum of 58 seconds, but segments are equalized so all have same length. --force Use fixed segment duration exactly as given. Last segment may be shorter. @@ -394,7 +397,7 @@ Passthrough: input.mp4 can be a file mask, e.g. ""videos/*.mp4"". Output files will be named based on the input filename and the --mask pattern if provided. Examples: - splitter vertical-video.mp4 --out=out/ + splitter vertical-video.mp4 splitter vertical-video.mp4 --duration=90s splitter vertical-video.mp4 --duration=2m30s --mask=""[NAME]_[NNNN].mp4"" splitter vertical-video.mp4 --estimate