Package net.bramp.ffmpeg.builder
Class StreamSpecifier
java.lang.Object
net.bramp.ffmpeg.builder.StreamSpecifier
https://ffmpeg.org/ffmpeg.html#Stream-specifiers
-
Method Summary
Modifier and TypeMethodDescriptionstatic StreamSpecifier
id
(int stream_id) Match the stream by stream id (e.g.static StreamSpecifier
program
(int program_id) Matches all streams in the program.static StreamSpecifier
program
(int program_id, int stream_index) Matches the stream with number stream_index in the program with the id program_id.spec()
static StreamSpecifier
stream
(int index) Matches the stream with this index.static StreamSpecifier
stream
(StreamSpecifierType type) Matches all streams of this type.static StreamSpecifier
stream
(StreamSpecifierType type, int index) Matches the stream number stream_index of this type.static StreamSpecifier
Matches all streams with the given metadata tag.static StreamSpecifier
Matches streams with the metadata tag key having the specified value.static StreamSpecifier
usable()
Matches streams with usable configuration, the codec must be defined and the essential information such as video dimension or audio sample rate must be present.
-
Method Details
-
spec
-
stream
Matches the stream with this index.- Parameters:
index
- The stream index- Returns:
- A new StreamSpecifier
-
stream
Matches all streams of this type.- Parameters:
type
- The stream type- Returns:
- A new StreamSpecifier
-
stream
Matches the stream number stream_index of this type.- Parameters:
type
- The stream typeindex
- The stream index- Returns:
- A new StreamSpecifier
-
program
Matches all streams in the program.- Parameters:
program_id
- The program id- Returns:
- A new StreamSpecifier
-
program
Matches the stream with number stream_index in the program with the id program_id.- Parameters:
program_id
- The program idstream_index
- The stream index- Returns:
- A new StreamSpecifier
-
id
Match the stream by stream id (e.g. PID in MPEG-TS container).- Parameters:
stream_id
- The stream id- Returns:
- A new StreamSpecifier
-
tag
Matches all streams with the given metadata tag.- Parameters:
key
- The metadata tag- Returns:
- A new StreamSpecifier
-
tag
Matches streams with the metadata tag key having the specified value.- Parameters:
key
- The metadata tagvalue
- The metatdata's value- Returns:
- A new StreamSpecifier
-
usable
Matches streams with usable configuration, the codec must be defined and the essential information such as video dimension or audio sample rate must be present.- Returns:
- A new StreamSpecifier
-