Compare commits
4 Commits
2f97637b5f
...
v0.1.3
| Author | SHA1 | Date | |
|---|---|---|---|
| 90d5845755 | |||
| f0fdaf6f8e | |||
| 13cc1841d6 | |||
| 870be59ea9 |
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user