From f946044e534bd955381a9e8c36156dd554008f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joni=20R=C3=A4s=C3=A4nen?= Date: Thu, 18 Nov 2021 10:59:25 +0200 Subject: [PATCH] Print the final file location --- create.pl | 8 ++++++-- util/test_file_creation.cc | 4 ++-- 2 files changed, 8 insertions(+), 4 deletions(-) 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);