File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments