Package tv.hd3g.fflauncher.acm
Class AudioChannelManipulationSetup
- java.lang.Object
-
- tv.hd3g.fflauncher.acm.AudioChannelManipulationSetup
-
public class AudioChannelManipulationSetup extends Object
-
-
Constructor Summary
Constructors Constructor Description AudioChannelManipulationSetup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OutputAudioStream>getAllOutputStreamList(List<FFprobeJAXB> sourcesAnalysis)List<String>getChannelMap()SourceNotFoundPolicygetNotFound()List<Integer>getOutputFileIndexes()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.
-
-
-
Method Detail
-
setChannelMap
public void setChannelMap(List<String> channelMap)
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)")
-
getNotFound
public SourceNotFoundPolicy getNotFound()
-
setNotFound
public void setNotFound(SourceNotFoundPolicy notFound)
-
setOutputFileIndexes
public void setOutputFileIndexes(List<Integer> outputFileIndexes)
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
public List<OutputAudioStream> getAllOutputStreamList(List<FFprobeJAXB> sourcesAnalysis)
-
-