Search in sources :

Example 1 with NameColumn

use of org.fagu.fmv.mymedia.movie.list.column.NameColumn in project fmv by f-agu.

the class Bootstrap method populateDefaultColumns.

// ****************************************************
/**
 */
private void populateDefaultColumns() {
    columns.add(new NameColumn());
    columns.add(new VideoHDColumn());
    columns.add(new VideoSizeColumn());
    columns.add(new VideoSizeNameColumn());
    columns.add(new VideoSizeWidthColumn());
    columns.add(new VideoSizeHeightColumn());
    columns.add(new VideoRatioColumn());
    columns.add(new VideoRatioFloatColumn());
    columns.add(new VideoPixelsColumn());
    columns.add(new VideoDurationColumn());
    columns.add(new VideoCodecNameColumn());
    columns.add(new VideoCodecLongNameColumn());
    columns.add(new CategoryColumn(0));
    columns.add(new CategoryColumn(1));
    columns.add(new CategoryColumn(2));
    columns.add(new SizeBytesColumn());
    columns.add(new LastModifiedDateColumn());
    columns.add(new AudioColumn());
    columns.add(new AudioCodecNameColumn());
    columns.add(new AudioCodecLongNameColumn());
    columns.add(new VideoSubtitleColumn());
    for (Type type : Type.values()) {
        columns.add(new StreamTypeCountColumn(type));
    }
    columns.add(new FMVTreatedColumn());
    columns.add(new PathColumn());
}
Also used : VideoRatioColumn(org.fagu.fmv.mymedia.movie.list.column.VideoRatioColumn) VideoRatioFloatColumn(org.fagu.fmv.mymedia.movie.list.column.VideoRatioFloatColumn) AudioCodecLongNameColumn(org.fagu.fmv.mymedia.movie.list.column.AudioCodecLongNameColumn) AudioCodecNameColumn(org.fagu.fmv.mymedia.movie.list.column.AudioCodecNameColumn) VideoCodecNameColumn(org.fagu.fmv.mymedia.movie.list.column.VideoCodecNameColumn) AudioCodecLongNameColumn(org.fagu.fmv.mymedia.movie.list.column.AudioCodecLongNameColumn) NameColumn(org.fagu.fmv.mymedia.movie.list.column.NameColumn) VideoSizeNameColumn(org.fagu.fmv.mymedia.movie.list.column.VideoSizeNameColumn) VideoCodecLongNameColumn(org.fagu.fmv.mymedia.movie.list.column.VideoCodecLongNameColumn) VideoSizeHeightColumn(org.fagu.fmv.mymedia.movie.list.column.VideoSizeHeightColumn) LastModifiedDateColumn(org.fagu.fmv.mymedia.movie.list.column.LastModifiedDateColumn) VideoPixelsColumn(org.fagu.fmv.mymedia.movie.list.column.VideoPixelsColumn) VideoCodecNameColumn(org.fagu.fmv.mymedia.movie.list.column.VideoCodecNameColumn) VideoSizeWidthColumn(org.fagu.fmv.mymedia.movie.list.column.VideoSizeWidthColumn) VideoSubtitleColumn(org.fagu.fmv.mymedia.movie.list.column.VideoSubtitleColumn) CategoryColumn(org.fagu.fmv.mymedia.movie.list.column.CategoryColumn) StreamTypeCountColumn(org.fagu.fmv.mymedia.movie.list.column.StreamTypeCountColumn) PathColumn(org.fagu.fmv.mymedia.movie.list.column.PathColumn) VideoHDColumn(org.fagu.fmv.mymedia.movie.list.column.VideoHDColumn) Type(org.fagu.fmv.ffmpeg.operation.Type) VideoSizeNameColumn(org.fagu.fmv.mymedia.movie.list.column.VideoSizeNameColumn) AudioCodecNameColumn(org.fagu.fmv.mymedia.movie.list.column.AudioCodecNameColumn) VideoSizeColumn(org.fagu.fmv.mymedia.movie.list.column.VideoSizeColumn) FMVTreatedColumn(org.fagu.fmv.mymedia.movie.list.column.FMVTreatedColumn) SizeBytesColumn(org.fagu.fmv.mymedia.movie.list.column.SizeBytesColumn) VideoCodecLongNameColumn(org.fagu.fmv.mymedia.movie.list.column.VideoCodecLongNameColumn) AudioColumn(org.fagu.fmv.mymedia.movie.list.column.AudioColumn) VideoDurationColumn(org.fagu.fmv.mymedia.movie.list.column.VideoDurationColumn)

Example 2 with NameColumn

use of org.fagu.fmv.mymedia.movie.list.column.NameColumn in project fmv by f-agu.

the class Bootstrap method listName.

/**
 * @throws IOException
 */
public static void listName() throws IOException {
    File root = FileUtils.findFirstHarddriveFaguVv().orElseThrow(() -> new RuntimeException("Harddrive not found"));
    try (// 
    PrintStream printStream = new PrintStream(new File("D:\\tmp\\list-name.out"));
        Bootstrap listMovies = new Bootstrap(printStream)) {
        listMovies.addColumn(new NameColumn());
        // printStream.println("=== Dessins animés ===");
        // listMovies.list(new File(root, "Dessins animés"));
        // printStream.println("=== Dessins animés séries ===");
        // Arrays.asList(new File(root, "Dessins animés série").list()).forEach(printStream::println);
        // printStream.println("=== Films ===");
        // listMovies.list(new File(root, "Films"));
        printStream.println("=== Films HD ===");
        listMovies.list(new File(root, "Films HD"));
    // printStream.println("=== Séries ===");
    // Arrays.asList(new File(root, "Séries").list()).forEach(printStream::println);
    }
}
Also used : PrintStream(java.io.PrintStream) AudioCodecNameColumn(org.fagu.fmv.mymedia.movie.list.column.AudioCodecNameColumn) VideoCodecNameColumn(org.fagu.fmv.mymedia.movie.list.column.VideoCodecNameColumn) AudioCodecLongNameColumn(org.fagu.fmv.mymedia.movie.list.column.AudioCodecLongNameColumn) NameColumn(org.fagu.fmv.mymedia.movie.list.column.NameColumn) VideoSizeNameColumn(org.fagu.fmv.mymedia.movie.list.column.VideoSizeNameColumn) VideoCodecLongNameColumn(org.fagu.fmv.mymedia.movie.list.column.VideoCodecLongNameColumn) IniFile(org.fagu.fmv.utils.IniFile) File(java.io.File)

Aggregations

AudioCodecLongNameColumn (org.fagu.fmv.mymedia.movie.list.column.AudioCodecLongNameColumn)2 AudioCodecNameColumn (org.fagu.fmv.mymedia.movie.list.column.AudioCodecNameColumn)2 NameColumn (org.fagu.fmv.mymedia.movie.list.column.NameColumn)2 VideoCodecLongNameColumn (org.fagu.fmv.mymedia.movie.list.column.VideoCodecLongNameColumn)2 VideoCodecNameColumn (org.fagu.fmv.mymedia.movie.list.column.VideoCodecNameColumn)2 VideoSizeNameColumn (org.fagu.fmv.mymedia.movie.list.column.VideoSizeNameColumn)2 File (java.io.File)1 PrintStream (java.io.PrintStream)1 Type (org.fagu.fmv.ffmpeg.operation.Type)1 AudioColumn (org.fagu.fmv.mymedia.movie.list.column.AudioColumn)1 CategoryColumn (org.fagu.fmv.mymedia.movie.list.column.CategoryColumn)1 FMVTreatedColumn (org.fagu.fmv.mymedia.movie.list.column.FMVTreatedColumn)1 LastModifiedDateColumn (org.fagu.fmv.mymedia.movie.list.column.LastModifiedDateColumn)1 PathColumn (org.fagu.fmv.mymedia.movie.list.column.PathColumn)1 SizeBytesColumn (org.fagu.fmv.mymedia.movie.list.column.SizeBytesColumn)1 StreamTypeCountColumn (org.fagu.fmv.mymedia.movie.list.column.StreamTypeCountColumn)1 VideoDurationColumn (org.fagu.fmv.mymedia.movie.list.column.VideoDurationColumn)1 VideoHDColumn (org.fagu.fmv.mymedia.movie.list.column.VideoHDColumn)1 VideoPixelsColumn (org.fagu.fmv.mymedia.movie.list.column.VideoPixelsColumn)1 VideoRatioColumn (org.fagu.fmv.mymedia.movie.list.column.VideoRatioColumn)1