input
Path input
me.tamkungz.codecmedia.model.ProbeResult
public record ProbeResult( Path input, String mimeType, String extension, MediaType mediaType, Long durationMillis, List<StreamInfo> streams, Map<String, String> tags )
Path input
String mimeType
String extension
MediaType mediaType
Long durationMillis
List<StreamInfo> streams
Map<String, String> tags
public Optional<String> primaryCodec()
Returns the codec of the first stream, when available. <p>This helper avoids direct {@code streams().get(0)} access for callers and safely handles cases where probe results contain no streams.