4 Commits

Author SHA1 Message Date
90d5845755 Merge branch 'main' of gitea.maveno.de:Javanaut/ffx 2023-10-24 15:22:12 +02:00
f0fdaf6f8e fix dict 2023-10-24 15:21:32 +02:00
13cc1841d6 Merge branch 'main' of gitea.maveno.de:Javanaut/ffx 2023-10-24 14:08:04 +02:00
870be59ea9 Add remapping für unknown 6ch audio 2023-10-24 14:07:32 +02:00

View File

@@ -116,7 +116,7 @@ audioStreams = [s for s in streamData if s['codec_type'] == 'audio']
subtitleStreams = [s for s in streamData if s['codec_type'] == 'subtitle']
for aStream in audioStreams:
if 'channel_layout' in aStream.keys():
if 'channel_layout' in aStream:
print(f"audio stream: {aStream['channel_layout']}") #channel_layout
else:
print(f"unknown audio stream with {aStream['channels']} channels") #channel_layout
@@ -169,6 +169,8 @@ for aStream in audioStreams:
if channels == 6:
audioTokens += [f"-c:a:{audioStreamIndex}",
'libopus',
f"-filter:a:{audioStreamIndex}",
"channelmap=FL-FL|FR-FR|FC-FC|LFE-LFE|SL-BL|SR-BR:5.1",
f"-b:a:{audioStreamIndex}",
ac3Bandwidth]