Search in sources :

Example 1 with ShowInfo

use of org.fagu.fmv.ffmpeg.filter.impl.ShowInfo in project fmv by f-agu.

the class FFHelper method showInfoVideoFrames.

/**
 * @param inFile
 * @throws IOException
 */
public static void showInfoVideoFrames(File inFile) throws IOException {
    FFMPEGExecutorBuilder builder = FFMPEGExecutorBuilder.create();
    builder.addMediaInputFile(inFile);
    // print
    ShowInfo showInfo = ShowInfo.build().addListener(System.out::println);
    builder.filter(showInfo);
    builder.addMediaOutput(NullMuxer.build()).overwrite();
    FFExecutor<Object> executor = builder.build();
    executor.execute();
}
Also used : FFMPEGExecutorBuilder(org.fagu.fmv.ffmpeg.executor.FFMPEGExecutorBuilder) ShowInfo(org.fagu.fmv.ffmpeg.filter.impl.ShowInfo) ChannelLayout(org.fagu.fmv.ffmpeg.utils.ChannelLayout)

Aggregations

FFMPEGExecutorBuilder (org.fagu.fmv.ffmpeg.executor.FFMPEGExecutorBuilder)1 ShowInfo (org.fagu.fmv.ffmpeg.filter.impl.ShowInfo)1 ChannelLayout (org.fagu.fmv.ffmpeg.utils.ChannelLayout)1