Fix audio range in restore audio
This commit is contained in:
@@ -160,7 +160,7 @@ def restore_audio(target_path : str, output_path : str, trim_frame_start : int,
|
|||||||
output_audio_encoder = state_manager.get_item('output_audio_encoder')
|
output_audio_encoder = state_manager.get_item('output_audio_encoder')
|
||||||
output_audio_quality = state_manager.get_item('output_audio_quality')
|
output_audio_quality = state_manager.get_item('output_audio_quality')
|
||||||
output_audio_volume = state_manager.get_item('output_audio_volume')
|
output_audio_volume = state_manager.get_item('output_audio_volume')
|
||||||
target_video_fps = detect_video_fps(state_manager.get_item('target_path'))
|
target_video_fps = detect_video_fps(target_path)
|
||||||
temp_file_path = get_temp_file_path(target_path)
|
temp_file_path = get_temp_file_path(target_path)
|
||||||
temp_video_duration = detect_video_duration(temp_file_path)
|
temp_video_duration = detect_video_duration(temp_file_path)
|
||||||
|
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ def test_restore_audio() -> None:
|
|||||||
create_temp_directory(target_path)
|
create_temp_directory(target_path)
|
||||||
copy_file(target_path, get_temp_file_path(target_path))
|
copy_file(target_path, get_temp_file_path(target_path))
|
||||||
|
|
||||||
assert restore_audio(target_path, output_path, 30, 0, 270) is True
|
assert restore_audio(target_path, output_path, 0, 270) is True
|
||||||
|
|
||||||
clear_temp_directory(target_path)
|
clear_temp_directory(target_path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user