瀏覽代碼

Add a shortcut for greyscale handling

Zachary Kotlarek 11 年之前
父節點
當前提交
8c8515a45f
共有 1 個文件被更改,包括 5 次插入 和 0 次删除
  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'}) {