summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/dcpverify.cc16
1 files changed, 13 insertions, 3 deletions
diff --git a/tools/dcpverify.cc b/tools/dcpverify.cc
index ed1b2a8c..6728bfcf 100644
--- a/tools/dcpverify.cc
+++ b/tools/dcpverify.cc
@@ -37,6 +37,9 @@
#include "filesystem.h"
#include "formatted_verify_report.h"
#include "html_formatter.h"
+#ifdef LIBDCP_HAVE_JSON
+#include "json_verify_report.h"
+#endif
#ifdef LIBDCP_HAVE_HARU
#include "pdf_formatter.h"
#endif
@@ -76,11 +79,14 @@ help (string n)
<< " --asset-hash-check-maximum-size <size-in-MB> only check hashes for assets smaller than this size (in MB)\n"
<< " --no-picture-details-check don't check details of picture assets (J2K bitstream etc.)\n"
<< " -o <filename> write report to filename "
+ " (.txt, .htm, .html"
#ifdef LIBDCP_HAVE_HARU
- " (.txt, .htm, .html or .pdf)\n"
-#else
- " (.txt, .htm or .html)\n"
+ ", .pdf"
+#endif
+#ifdef LIBDCP_HAVE_JSON
+ ", .json"
#endif
+ ")\n"
<< " -q, --quiet don't report progress\n";
}
@@ -244,6 +250,10 @@ main (int argc, char* argv[])
dcp::PDFFormatter formatter(*report_filename);
dcp::make_formatted_verify_report({ result }, formatter);
#endif
+#ifdef LIBDCP_HAVE_JSON
+ } else if (report_filename->extension() == ".json") {
+ dcp::make_json_verify_report({ result }, *report_filename);
+#endif
} else {
dcp::TextFormatter formatter(*report_filename);
dcp::make_formatted_verify_report({ result }, formatter);