From aacb9384f146e3585883251546e69c1765d7d050 Mon Sep 17 00:00:00 2001 From: weaveraj Date: Thu, 24 Feb 2022 08:43:41 -0800 Subject: [PATCH 1/2] no default dropouts --- audioqc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/audioqc b/audioqc index 390c8a6..328504a 100755 --- a/audioqc +++ b/audioqc @@ -44,7 +44,7 @@ end # If no extenstion is specified it will target the default 'wav' extension. (Not case sensitive) options = [] ARGV.options do |opts| - opts.on('-a', '--all') { options += ['meta', 'bext', 'signal', 'dropouts', 'md5'] } + opts.on('-a', '--all') { options += ['meta', 'bext', 'signal', 'md5'] } opts.on('-b', '--bext-scan') { options << 'bext' } opts.on('-c', '--checksum') { options << 'md5' } opts.on('-d', '--dropout-scan') { options << 'dropouts' } @@ -344,6 +344,7 @@ else end file_inputs.each do |fileinput| + puts "Scanning: #{fileinput}" target = QcTarget.new(File.expand_path(fileinput)) target.get_mediainfo if options.include?('meta') From e6b2a4f99a379a631c1f91f67aba054bdddbafaf Mon Sep 17 00:00:00 2001 From: weaveraj Date: Thu, 24 Feb 2022 09:08:17 -0800 Subject: [PATCH 2/2] cleanup mediaconch fail output --- audioqc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audioqc b/audioqc index 328504a..fdf9452 100755 --- a/audioqc +++ b/audioqc @@ -250,10 +250,10 @@ class QcTarget @qc_results = [] policy_path = File.path(policy) command = 'mediaconch --Policy=' + '"' + policy_path + '" ' + '"' + @input_path + '"' - media_conch_out = `#{command}` + media_conch_out = `#{command}`.gsub(@input_path, "") media_conch_out.strip! media_conch_out.split('/n').each {|qcline| @qc_results << qcline} - @qc_results = @qc_results.to_s + @qc_results = @qc_results.to_s.gsub('\n -- ', '; ') if File.exist?(policy) if @qc_results.include?('pass!') @qc_results = 'PASS'