From c7b8da308e1faf18b80ab83ae9706b2510fe8fa4 Mon Sep 17 00:00:00 2001 From: Tasha Upchurch Date: Wed, 2 Oct 2024 21:53:30 -0600 Subject: [PATCH] fix for incorrect audio order on linux. --- video.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/video.py b/video.py index 6b552f5..db4f7be 100644 --- a/video.py +++ b/video.py @@ -1390,7 +1390,6 @@ def create_video_from_images(folder_path, output_file, fps, codec, q, pix_fmt): raise RuntimeError(f"ffmpeg failed with error: {error_message}\nFull Traceback:\n{full_traceback}") - class ImageStackToVideoFile(metaclass=ABCWidgetMetaclass): """Really just saves the image stack to a video file""" @@ -2336,7 +2335,7 @@ class AudioDefinitionProvider(metaclass=ABCWidgetMetaclass): def get_all_audio_files(self, audio_folder): import os audio_files = os.listdir(audio_folder) - audio_files = [os.path.join(audio_folder, x) for x in audio_files if "audio_" in x] + audio_files = sorted([os.path.join(audio_folder, x) for x in audio_files if "audio_" in x]) return audio_files def audio_definition_provider(self, **kwargs):