File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ class QcTarget
123123 diff_prior = ( ratio - @sample_ratios [ i - 1 ] ) . abs
124124 diff_post = ( ratio - @sample_ratios [ i + 1 ] ) . abs
125125 if diff_prior > 15 && diff_post > 15
126+ # I think there is something wonky with how ffmpeg splits to frames vs samples - this math for finding time needs to be looked at
126127 @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 )
127128 end
128129 end
@@ -166,9 +167,10 @@ class QcTarget
166167 if ! @dual_count . nil? && ! @stereo_count . nil?
167168 if @dual_count > 0
168169 phase_limit = Configurations [ 'dualmono_audio_phase_limit' ]
169- elsif
170- @stereo_count > 1
170+ elsif @stereo_count > 1
171171 phase_limit = Configurations [ 'stereo_audio_phase_limit' ]
172+ else
173+ phase_limit = Configurations [ 'generic_audio_phase_limit' ]
172174 end
173175 else
174176 phase_limit = Configurations [ 'generic_audio_phase_limit' ]
304306if file_inputs . empty?
305307 puts 'No targets found!'
306308 exit
309+ else
310+ file_inputs . sort!
307311end
308312
309313file_inputs . each do |fileinput |
You can’t perform that action at this time.
0 commit comments