Package net.bramp.ffmpeg.builder
Class StreamSpecifier
- java.lang.Object
-
- net.bramp.ffmpeg.builder.StreamSpecifier
-
public class StreamSpecifier extends Object
https://ffmpeg.org/ffmpeg.html#Stream-specifiers
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StreamSpecifierid(int stream_id)Match the stream by stream id (e.g.static StreamSpecifierprogram(int program_id)Matches all streams in the program.static StreamSpecifierprogram(int program_id, int stream_index)Matches the stream with number stream_index in the program with the id program_id.Stringspec()static StreamSpecifierstream(int index)Matches the stream with this index.static StreamSpecifierstream(StreamSpecifierType type)Matches all streams of this type.static StreamSpecifierstream(StreamSpecifierType type, int index)Matches the stream number stream_index of this type.static StreamSpecifiertag(String key)Matches all streams with the given metadata tag.static StreamSpecifiertag(String key, String value)Matches streams with the metadata tag key having the specified value.static StreamSpecifierusable()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 Detail
-
stream
public static StreamSpecifier stream(int index)
Matches the stream with this index.- Parameters:
index- The stream index- Returns:
- A new StreamSpecifier
-
stream
public static StreamSpecifier stream(StreamSpecifierType type)
Matches all streams of this type.- Parameters:
type- The stream type- Returns:
- A new StreamSpecifier
-
stream
public static StreamSpecifier stream(StreamSpecifierType type, int index)
Matches the stream number stream_index of this type.- Parameters:
type- The stream typeindex- The stream index- Returns:
- A new StreamSpecifier
-
program
public static StreamSpecifier program(int program_id)
Matches all streams in the program.- Parameters:
program_id- The program id- Returns:
- A new StreamSpecifier
-
program
public static StreamSpecifier program(int program_id, int stream_index)
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
public static StreamSpecifier id(int stream_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
public static StreamSpecifier tag(String key)
Matches all streams with the given metadata tag.- Parameters:
key- The metadata tag- Returns:
- A new StreamSpecifier
-
tag
public static StreamSpecifier tag(String key, String value)
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
public 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.- Returns:
- A new StreamSpecifier
-
-