Search in sources :

Example 1 with Format

use of org.fagu.fmv.ffmpeg.metadatas.Format 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);
    }
}
Also used : InfoBase(org.fagu.fmv.ffmpeg.metadatas.InfoBase) Format(org.fagu.fmv.ffmpeg.metadatas.Format) Stream(org.fagu.fmv.ffmpeg.metadatas.Stream)

Aggregations

Format (org.fagu.fmv.ffmpeg.metadatas.Format)1 InfoBase (org.fagu.fmv.ffmpeg.metadatas.InfoBase)1 Stream (org.fagu.fmv.ffmpeg.metadatas.Stream)1