use of org.fagu.fmv.ffmpeg.metadatas.InfoBase in project fmv by f-agu.
the class Info method display.
// ********************************************************
/**
* @param metadatas
*/
private void display(MovieMetadatas metadatas) {
Format format = metadatas.getFormat();
display(format, DEFAULT_PADDING);
for (InfoBase infoBase : metadatas.getInfoBaseList()) {
if (infoBase == format) {
continue;
}
if (infoBase instanceof Stream) {
Stream stream = (Stream) infoBase;
println(DEFAULT_PADDING + "Stream " + stream.index() + " (" + stream.type().name().toLowerCase() + ')');
} else {
println(DEFAULT_PADDING + "?");
}
display(infoBase, DEFAULT_PADDING + DEFAULT_PADDING);
}
}