Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions audioqc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ class QcTarget
diff_prior = (ratio - @sample_ratios[i - 1]).abs
diff_post = (ratio - @sample_ratios[i + 1]).abs
if diff_prior > 15 && diff_post > 15
# I think there is something wonky with how ffmpeg splits to frames vs samples - this math for finding time needs to be looked at
@possible_drops << normalize_time(i * @ffprobe_out['frames'][0]['tags']['lavfi.astats.Overall.Number_of_samples'].to_f / @mediainfo_out['media']['track'][1]['SamplingRate'].to_f)
end
end
Expand Down Expand Up @@ -166,9 +167,10 @@ class QcTarget
if ! @dual_count.nil? && ! @stereo_count.nil?
if @dual_count > 0
phase_limit = Configurations['dualmono_audio_phase_limit']
elsif
@stereo_count > 1
elsif @stereo_count > 1
phase_limit = Configurations['stereo_audio_phase_limit']
else
phase_limit = Configurations['generic_audio_phase_limit']
end
else
phase_limit = Configurations['generic_audio_phase_limit']
Expand Down Expand Up @@ -304,6 +306,8 @@ end
if file_inputs.empty?
puts 'No targets found!'
exit
else
file_inputs.sort!
end

file_inputs.each do |fileinput|
Expand Down