Updated for Ubuntu 22.04. Also fixed merge videos cmin check
[videoscripts/.git] / make_home_videos.pl
index 69631756b5219137b1f669f9036f5f6c748cad6f..d0a4a44e93b22e695a7de2b2b587752d9d32c7ea 100755 (executable)
@@ -220,7 +220,7 @@ sub encode_videos {
            print "$mencoder $encode_options_pass2 -o ./$encoded_dir/$current_output_file -idx $current_file\n";
        }
        if(!$opt_s) {
-           $tempfile = `tempfile`; chomp($tempfile);
+           $tempfile = `mktemp`; chomp($tempfile);
            system("$mencoder $encode_options_pass1 -o ./$encoded_dir/$current_output_file -idx $current_file 2>$tempfile");
            system("$mencoder $encode_options_pass2 -o ./$encoded_dir/$current_output_file -idx $current_file 2>>$tempfile");
            if(! -e "./$encoded_dir/$current_output_file") {