my $srcpathname = $opt_s;
####################################################################################################
my $srcpathname = $opt_s;
####################################################################################################
my $video_title_prefix = "HomeVideos:"; # What text to put on the front of the title for the merged video being created
my $find_cmd = "find \"$srcpathname/\" -iregex \".*\.mov\" -o -iregex \".*\.3gp\" -o -iregex \".*\.mp4\" -o -iregex \".*\.mts\"";
my $handbrake='HandBrakeCLI';
my $video_title_prefix = "HomeVideos:"; # What text to put on the front of the title for the merged video being created
my $find_cmd = "find \"$srcpathname/\" -iregex \".*\.mov\" -o -iregex \".*\.3gp\" -o -iregex \".*\.mp4\" -o -iregex \".*\.mts\"";
my $handbrake='HandBrakeCLI';
my $interlaced_requantize_quality=0.85;
my $progressive_requantize_quality=0.7;
####################################################################################################
my $interlaced_requantize_quality=0.85;
my $progressive_requantize_quality=0.7;
####################################################################################################
print " -h <compute host> specify the remote compute host to submit the mkvmerge job to\n";
print " -v verbose mode; print extra information about what is being found/merged\n";
print " -t test mode; print what will happen, but don't do anything\n";
print " -h <compute host> specify the remote compute host to submit the mkvmerge job to\n";
print " -v verbose mode; print extra information about what is being found/merged\n";
print " -t test mode; print what will happen, but don't do anything\n";
print " Re-quantizing input video content: $video\n";
my $handbrake_cmd = "";
if($use_compute_host) { $handbrake_cmd .= "ssh $compute_host 'cd \"$pwd\";"; }
print " Re-quantizing input video content: $video\n";
my $handbrake_cmd = "";
if($use_compute_host) { $handbrake_cmd .= "ssh $compute_host 'cd \"$pwd\";"; }
die "-E- handbrake encountered some errors with exit code $errno\n";
} else {
# Remove the original srcvideo since we created a new version of it that we are going to keep instead
die "-E- handbrake encountered some errors with exit code $errno\n";
} else {
# Remove the original srcvideo since we created a new version of it that we are going to keep instead
system("chgrp $group \"$video\"");
system("chmod $mode \"$video\"");
# Remove the individual video files
system("chgrp $group \"$video\"");
system("chmod $mode \"$video\"");
# Remove the individual video files