Skip to content

Commit 1afd091

Browse files
committed
change loop
1 parent ba74643 commit 1afd091

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

audioqc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@ class QcTarget
203203
else
204204
channel_one_vol << frame['tags']['lavfi.astats.1.Peak_level'].to_f
205205
channel_two_vol << frame['tags']['lavfi.astats.2.Peak_level'].to_f
206-
@channel_one_max = channel_one_vol.max
207-
@channel_two_max = channel_two_vol.max
208-
channel_dif = (channel_one_vol.max - channel_two_vol.max).abs.to_s
209-
if channel_two_vol.max < channel_one_vol.max
210-
@volume_command = ' -filter_complex "[0:a]channelsplit[a][b],[b]volume=volume=' + channel_dif + 'dB:precision=fixed[c],[a][c]amerge[out1]" -map [out1] '
211-
else
212-
@volume_command = ' -filter_complex "[0:a]channelsplit[a][b],[a]volume=volume=' + channel_dif + 'dB:precision=fixed[c],[c][b]amerge[out1]" -map [out1] '
213-
end
206+
end
207+
@channel_one_max = channel_one_vol.max
208+
@channel_two_max = channel_two_vol.max
209+
channel_dif = (channel_one_vol.max - channel_two_vol.max).abs.to_s
210+
if channel_two_vol.max < channel_one_vol.max
211+
@volume_command = ' -filter_complex "[0:a]channelsplit[a][b],[b]volume=volume=' + channel_dif + 'dB:precision=fixed[c],[a][c]amerge[out1]" -map [out1] '
212+
else
213+
@volume_command = ' -filter_complex "[0:a]channelsplit[a][b],[a]volume=volume=' + channel_dif + 'dB:precision=fixed[c],[c][b]amerge[out1]" -map [out1] '
214214
end
215215
end
216216
get_ffprobe_phase_normalized(@volume_command)

0 commit comments

Comments
 (0)