BUGFIX: Could not write to tempfile
All checks were successful
Publish Python Package to PyPI / deploy (push) Successful in 17s
All checks were successful
Publish Python Package to PyPI / deploy (push) Successful in 17s
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
[metadata]
|
[metadata]
|
||||||
name = surround-to-eac3
|
name = surround-to-eac3
|
||||||
version = 0.3.0
|
version = 0.3.1
|
||||||
author = Jonathan Rampersad
|
author = Jonathan Rampersad
|
||||||
author_email = jonathan@jono-rams.work
|
author_email = jonathan@jono-rams.work
|
||||||
description = A CLI tool to transcode 5.1 audio in video files to E-AC3.
|
description = A CLI tool to transcode 5.1 audio in video files to E-AC3.
|
||||||
|
@ -107,6 +107,12 @@ def process_file_with_ffmpeg(
|
|||||||
output_audio_stream_ffmpeg_idx += 1
|
output_audio_stream_ffmpeg_idx += 1
|
||||||
|
|
||||||
ffmpeg_cmd.extend(map_operations)
|
ffmpeg_cmd.extend(map_operations)
|
||||||
|
|
||||||
|
if final_output_filepath.lower().endswith('.mkv'):
|
||||||
|
ffmpeg_cmd.extend(['-f', 'matroska'])
|
||||||
|
elif final_output_filepath.lower().endswith('.mp4'):
|
||||||
|
ffmpeg_cmd.extend(['-f', 'mp4'])
|
||||||
|
|
||||||
ffmpeg_cmd.extend(["-y", temp_output_filepath])
|
ffmpeg_cmd.extend(["-y", temp_output_filepath])
|
||||||
|
|
||||||
logs.append(f" ⚙️ Processing: '{base_filename}' -> '{output_filename}'")
|
logs.append(f" ⚙️ Processing: '{base_filename}' -> '{output_filename}'")
|
||||||
|
Reference in New Issue
Block a user