Package tv.hd3g.fflauncher.acm
Class AudioChannelManipulationSetup
java.lang.Object
tv.hd3g.fflauncher.acm.AudioChannelManipulationSetup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllOutputStreamList(List<FFprobeJAXB> sourcesAnalysis) voidsetChannelMap(List<String> channelMap) 0 is always the first channel/stream.voidsetNotFound(SourceNotFoundPolicy notFound) voidsetOutputFileIndexes(List<Integer> outputFileIndexes) By default, all is mapped to the first (0) output file.
-
Constructor Details
-
AudioChannelManipulationSetup
public AudioChannelManipulationSetup()
-
-
Method Details
-
setChannelMap
0 is always the first channel/stream. One entry = one output stream. "+" separate channels in stream. Spaces will be ignored. Each stream can set a ffmpeg channel layout (mono, stereo, 5.1, ...) in parentheses "(" and ")" like: - "0+1(stereo)" - "0+1+2+3+4+5(5.1)" You MUST set a channel layout if the channel count is different from 1 (mono), 2 (stereo), 6 (5.1).- Parameters:
channelMap- entry like: - "0+1" absolute source channel selection. Shuffle like "1+1"/"1+0". Each number point to an absolute source channel, ordered by files and streams. - "0:1:0+0:1:1" Specific source channel, with "A:B:C": A = source file index B = source stream index in selected file A (0 is the first audio stream, ignore video/data streams) C = source channel index in selected stream B - "0:1" take the full stream for simple mapping. No channel operations here. With "A:B" like just above. - "0:1(5.1(side))" take the full stream for mapping with layout change (here set to "5.1(side)")
-
getChannelMap
-
getNotFound
-
setNotFound
-
getOutputFileIndexes
-
setOutputFileIndexes
By default, all is mapped to the first (0) output file. outputFileIndexes miss some channelMap ref, the mapped output file will be the last set.- Parameters:
outputFileIndexes- ["Absolute stream0" mapped to # output file, "Absolute stream1" mapped to # output file, ...]
-
getAllOutputStreamList
-