Skip to content

Commit 365afee

Browse files
fix for opus -> other formats
1 parent 68c433c commit 365afee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bulktranscode_core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def process_file(input_file, output_file, mode, target_codec):
5151
if mode == "transcode":
5252
if target_codec == "opus":
5353
subprocess.run(["opusenc",input_file,output_file])
54+
elif input_file[-4:] == "opus":
55+
subprocess.run(["ffmpeg","-i",input_file,"-map_metadata","0:s:a:0",output_file], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
5456
else:
5557
subprocess.run([
5658
'ffmpeg', '-i', input_file,

0 commit comments

Comments
 (0)