Added new feature to enable videos to be recompressed.
[videoscripts/.git] / organize_videos.conf
index 09b4a5f1524fde4960749c83e56c0da8cf652f12..d6236befbc7072af6e6cbe33ae7d8564acc5534c 100644 (file)
@@ -56,7 +56,7 @@ $movie_file_ext = "-iregex \".*\.mov\" -o -iregex \".*\.3gp\" -o -iregex \".*\.m
 
 # Video file creation dates must not have changed in the last X minutes to process any of the video files
 # This is done to ensure that all videos from a given upload from a camera have completed prior to looking for videos to merge
-$minage = "+30";
+$minage = "+15";
 
 # What command should be used to find files that have changed (are at least $minage old) 
 $find_changed_cmd = "find  \"$srcpathname/\" -not -cmin $minage -a \\( $movie_file_ext \\)";
@@ -72,10 +72,11 @@ $tmpfile = `tempfile`; chomp($tmpfile);
 $timezone = `cat /etc/timezone`; chomp($timezone);
 
 # handbrake options used when re-encoding the videos
-$handbrake_options='--strict-anamorphic --crop 0:0:0:0 -E ac3';
+$handbrake_requantize_options='--strict-anamorphic --crop 0:0:0:0 -E ac3';
+$handbrake_recompress_options='--strict-anamorphic --crop 0:0:0:0 --denoise="weak" -e x264 -q 18 -x b-adapt=2:rc-lookahead=50 -v 2 -a 1 -6 dpl2 --preset="High Profile"';
 
 # tmp chapter file used by handbrake when creating mkv
-$chapter_file = $tmpfile;
+$chapter_file = `tempfile`; chomp($chapter_file);
 
 # handbrake input file options
 $input_file_options = "-S";
@@ -94,7 +95,8 @@ $compute_host = "pippin.pippins.net";
 $use_compute_host = 1;
 
 # This will dramatically decrease the size of the video with minimal compute processing requirements.
-$requantize_input_video=1; 
+$requantize_input_video=0; 
+$recompress_input_video=1;
 
 # What text to put on the front of the title for the merged video being created
 $video_title_prefix = "HomeVideos:";