Skip to content

Commit

Permalink
QualityScaler 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Djdefrag authored Aug 13, 2024
1 parent 93cbeca commit 5ff3a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions QualityScaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ def extract_video_frames_and_audio(
with VideoFileClip(video_path) as video_file_clip:
try:
write_process_status(processing_queue, f"{file_number}. Extracting video audio")
audio_path = f"{target_directory}{os_separator}audio.mp3"
audio_path = f"{target_directory}{os_separator}audio.wav"
video_file_clip.audio.write_audiofile(audio_path, verbose = False, logger = None)
except:
pass
Expand Down Expand Up @@ -1720,6 +1720,7 @@ def upscale_video(
target_directory = prepare_output_video_frames_directory_name(video_path, selected_output_path, selected_AI_model, resize_factor, selected_interpolation_factor)
video_output_path = prepare_output_video_filename(video_path, selected_output_path, selected_AI_model, resize_factor, selected_video_extension, selected_interpolation_factor)
video_upscale_continue = check_video_upscaling_resume(target_directory, selected_AI_model)
video_audio_path = f"{target_directory}{os_separator}audio.wav"

if video_upscale_continue:
print(f"Resume upscaling")
Expand Down Expand Up @@ -1757,7 +1758,6 @@ def upscale_video(
check_forgotten_video_frames(processing_queue, file_number, AI_instance, frame_list_paths, upscaled_frame_list_paths, selected_interpolation_factor)

write_process_status(processing_queue, f"{file_number}. Processing upscaled video")
video_audio_path = f"{target_directory}{os_separator}audio.mp3"
video_reconstruction_by_frames(video_path, video_audio_path, video_output_path, upscaled_frame_list_paths, cpu_number, selected_video_extension)
copy_file_metadata(video_path, video_output_path)

Expand Down

0 comments on commit 5ff3a85

Please sign in to comment.