Explorar o código

Add a shortcut for greyscale handling

Zachary Kotlarek %!s(int64=11) %!d(string=hai) anos
pai
achega
8c8515a45f
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      encode.pl

+ 5 - 0
encode.pl

@@ -120,6 +120,11 @@ if ($ENV{'NO_CROP'}) {
 	$NO_CROP = 1;
 }
 
+# Enable greyscale mode
+if ($ENV{'GREYSCALE'}) {
+	push(@video_params, '--grayscale');
+}
+
 # Additional arguments for HandBrake, to allow options not supported directly by this script
 # Split on spaces; if you need spaces you'll have to work out something else
 if ($ENV{'HANDBRAKE_ARGS'}) {