diff --git a/.github/workflows/Build&Release.yml b/.github/workflows/Build&Release.yml index 47a5aa0..72f6aab 100644 --- a/.github/workflows/Build&Release.yml +++ b/.github/workflows/Build&Release.yml @@ -1,9 +1,6 @@ name: Build with PyInstaller and Create Release on: - push: - branches: - - master pull_request: branches: - master diff --git a/Smelt.py b/Smelt.py index e34b034..963c680 100644 --- a/Smelt.py +++ b/Smelt.py @@ -836,7 +836,10 @@ def handle_audio_operations(self): Handle audio processing operations. """ self.construct_audio_commands() - self.execute_ffmpeg_commands(['ffmpeg_lossless_audio_cmd', 'ffmpeg_audio_cmd']) + if self.mezzaninfilCheckBox.isChecked(): + self.execute_ffmpeg_commands(['ffmpeg_lossless_audio_cmd', 'ffmpeg_audio_cmd']) + else: + self.execute_ffmpeg_commands(['ffmpeg_audio_cmd']) def construct_dpx_commands(self): """ @@ -885,6 +888,9 @@ def construct_dpx_commands(self): """ base_filename = os.path.basename(self.images_path) prefix = re.match(r'^\D*', base_filename).group() + + start_number = extract_number(self.images_path) + ffmpeg_input_pattern = os.path.join(self.folder_path, '{}%06d.dpx'.format(prefix)) self.ffmpeg_base = [ @@ -897,7 +903,7 @@ def construct_dpx_commands(self): '-f', 'image2', '-vsync', '0', '-framerate', self.fps, - '-start_number', '0', + '-start_number', str(start_number), '-i', ffmpeg_input_pattern, ]