From 6e13ce070f1c652f0183c79731b845b8532667eb Mon Sep 17 00:00:00 2001 From: Jonathan Rampersad Date: Fri, 6 Jun 2025 10:54:13 -0400 Subject: [PATCH] FEATURE: Keep chapters and metadata when processing files --- setup.cfg | 2 +- src/surround_to_eac3/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 44a60ff..a0931d5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = surround-to-eac3 -version = 0.3.2 +version = 0.3.3 author = Jonathan Rampersad author_email = jonathan@jono-rams.work description = A CLI tool to transcode 5.1 audio in video files to E-AC3. diff --git a/src/surround_to_eac3/main.py b/src/surround_to_eac3/main.py index da6e6aa..81e20d4 100644 --- a/src/surround_to_eac3/main.py +++ b/src/surround_to_eac3/main.py @@ -118,7 +118,7 @@ def process_file_with_ffmpeg( base_filename = os.path.basename(input_filepath) output_filename = os.path.basename(final_output_filepath) - ffmpeg_cmd = ["ffmpeg", "-nostdin", "-i", input_filepath] + ffmpeg_cmd = ["ffmpeg", "-nostdin", "-i", input_filepath, "-map_metadata", "0"] map_operations = [] output_audio_stream_ffmpeg_idx = 0 # For -c:a:0, -c:a:1 etc.