5.0 channel layout
This commit is contained in:
@@ -9,6 +9,7 @@ class AudioLayout(Enum):
|
|||||||
LAYOUT_7_1 = {"label": "7.1", "index": 4} #TODO: Does this exist?
|
LAYOUT_7_1 = {"label": "7.1", "index": 4} #TODO: Does this exist?
|
||||||
|
|
||||||
LAYOUT_6CH = {"label": "6ch", "index": 5}
|
LAYOUT_6CH = {"label": "6ch", "index": 5}
|
||||||
|
LAYOUT_5_0 = {"label": "5.0(side)", "index": 6}
|
||||||
|
|
||||||
LAYOUT_UNDEFINED = {"label": "undefined", "index": 0}
|
LAYOUT_UNDEFINED = {"label": "undefined", "index": 0}
|
||||||
|
|
||||||
|
|||||||
@@ -149,6 +149,16 @@ class FfxController():
|
|||||||
f"channelmap={FfxController.CHANNEL_MAP_5_1}",
|
f"channelmap={FfxController.CHANNEL_MAP_5_1}",
|
||||||
f"-b:a:{trackSubIndex}",
|
f"-b:a:{trackSubIndex}",
|
||||||
self.__context['bitrates']['ac3']]
|
self.__context['bitrates']['ac3']]
|
||||||
|
|
||||||
|
# -ac 5 ?
|
||||||
|
if trackAudioLayout == AudioLayout.LAYOUT_5_0:
|
||||||
|
audioTokens += [f"-c:a:{trackSubIndex}",
|
||||||
|
'libopus',
|
||||||
|
f"-filter:a:{trackSubIndex}",
|
||||||
|
'channelmap=channel_layout=5.0',
|
||||||
|
f"-b:a:{trackSubIndex}",
|
||||||
|
self.__context['bitrates']['ac3']]
|
||||||
|
|
||||||
trackSubIndex += 1
|
trackSubIndex += 1
|
||||||
return audioTokens
|
return audioTokens
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user