1 # Force Emacs Perl Mode
6 ################################################################################
7 # This is a perl module included by the perl scripts for this application.
8 # You must modify these values to match your system configuration.
9 # Create a new file called "organize_videos.conf.local" in the same dir as "organize_videos.conf"
10 # and only put in it the variables you wish to override.
11 # This will prevent your localized settings from being overwritten by future code updates.
12 ################################################################################
14 # Path to look for videos to move from
15 $srcpathname = "/naspool/pictures/New Photos";
17 # Path to move the videos to
18 $dstpathname = "/naspool/videos/HomeVideos";
20 # Path to merge_videos_by_day script
21 $merge_videos_by_day = "/naspool/videos/bin/merge_videos_by_day";
23 # Path to the make_mkv script
24 $make_mkv = "/naspool/videos/bin/make_mkv";
26 # mkvmerge path/command name
27 $mkvmerge = 'mkvmerge';
29 # ffmpeg path/command name
32 # handbrake path/command name
33 $handbrake = 'HandBrakeCLI';
35 # The pid file to use to indicate organize_videos is running
36 $pid_file = "/tmp/organize_videos.pid";
38 # The owner of the files after they are moved
41 # The group of the files after they are moved
44 # The mode to set on each file after they are moved
47 # The extension to use when creating playlist files
48 $playlist_extension = "pls";
50 # What number to start with when adding an incrementing suffix to the end of the final video clip to avoid name collisions
51 $video_suffix = "000";
53 # Which movie file extensions should be considered for merging
54 # NOTE: Script does not support merging multiple mkv files into a single mkv file
55 $movie_file_ext = "-iregex \".*\.mov\" -o -iregex \".*\.3gp\" -o -iregex \".*\.mp4\" -o -iregex \".*\.mts\" -o -iregex \".*\.m4v\"";
57 # Video file creation dates must not have changed in the last X minutes to process any of the video files
58 # This is done to ensure that all videos from a given upload from a camera have completed prior to looking for videos to merge
61 # What command should be used to find files that have changed (are at least $minage old)
62 $find_changed_cmd = "find \"$srcpathname/\" -not -cmin $minage -a \\( $movie_file_ext \\)";
64 # What command should be used to find all movie files
65 $find_cmd = "find \"$srcpathname/\" $movie_file_ext";
66 $find_cmd_with_mkv = "find \"$srcpathname/\" $movie_file_ext -o -iregex \".*\.mkv\"";
68 # Set the tmpfile to use
69 $tmpfile = `tempfile`; chomp($tmpfile);
71 # Set the timezone to use
72 $timezone = `cat /etc/timezone`; chomp($timezone);
74 # handbrake options used when re-encoding the videos
75 $handbrake_options='--strict-anamorphic --crop 0:0:0:0 -E ac3';
77 # tmp chapter file used by handbrake when creating mkv
78 $chapter_file = $tmpfile;
80 # handbrake input file options
81 $input_file_options = "-S";
83 # handbrake output file options
84 $output_file_options = "--chapters $chapter_file --compression -1:none";
86 # handbrake quantization levels
87 $interlaced_requantize_quality=0.85;
88 $progressive_requantize_quality=0.75;
90 # Remote compute host to farm handbrake encode job off to (I need this since this script is run from a virtual machine)
91 $compute_host = "pippin.pippins.net";
93 # Set to 1 to use a remote compute host to run the mkvmerge command. Set to 0 to use the local host to run it.
94 $use_compute_host = 1;
96 # This will dramatically decrease the size of the video with minimal compute processing requirements.
97 $requantize_input_video=1;
99 # What text to put on the front of the title for the merged video being created
100 $video_title_prefix = "HomeVideos:";
102 ####################################################################################################