diff --git a/create.pl b/create.pl index 0fbdc8b..0048e4b 100755 --- a/create.pl +++ b/create.pl @@ -23,7 +23,7 @@ GetOptions( "quantization|qp=i" => \(my $qp = 27), "framerate|fps=i" => \(my $fps = 30), "intra-period|intra=i" => \(my $period = 64), - "preset=s" => \(my $preset = "medium"), + "preset|pre=s" => \(my $preset = "medium"), "help" => \(my $help = 0) ) or die "failed to parse command line!\n"; @@ -44,5 +44,9 @@ my $height = $2; system "make test_file_creation"; # run file creation -system ("./test_file_creation $filename $width $height $qp $fps $period $preset"); +my $exit_code = system ("./test_file_creation $filename $width $height $qp $fps $period $preset"); +if($exit_code!=0) +{ + die "Failed to run file creator.\n"; +} diff --git a/util/test_file_creation.cc b/util/test_file_creation.cc index 5140a36..4a3087b 100644 --- a/util/test_file_creation.cc +++ b/util/test_file_creation.cc @@ -139,7 +139,7 @@ int kvazaar_encode(const std::string& input, const std::string& output, if (chunks_out == NULL && img_in == NULL) { // We are done since there is no more input and output left. cleanup(inputFile, outputFile); - std::cout << "Finished creating the HEVC benchmark file" << std::endl; + std::cout << "Finished creating the HEVC benchmark file to " << output << std::endl; return EXIT_SUCCESS; } @@ -164,7 +164,7 @@ int kvazaar_encode(const std::string& input, const std::string& output, } } - std::cout << "Finished creating the HEVC benchmark file" << std::endl; + std::cout << "Finished creating the HEVC benchmark file to " << output << std::endl; cleanup(inputFile, outputFile);