Przeglądaj źródła

Add a shortcut for greyscale handling

Zachary Kotlarek 11 lat temu
rodzic
commit
8c8515a45f
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      encode.pl

+ 5 - 0
encode.pl

@@ -120,6 +120,11 @@ if ($ENV{'NO_CROP'}) {
 	$NO_CROP = 1;
 	$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
 # 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
 # Split on spaces; if you need spaces you'll have to work out something else
 if ($ENV{'HANDBRAKE_ARGS'}) {
 if ($ENV{'HANDBRAKE_ARGS'}) {