Search in sources :

Example 1 with InfoOperation

use of org.fagu.fmv.ffmpeg.operation.InfoOperation in project fmv by f-agu.

the class FFHelper method videoMetadatas.

/**
 * @param inFile
 * @return
 * @throws IOException
 */
public static MovieMetadatas videoMetadatas(File inFile) throws IOException {
    MediaInput input = new FileMediaInput(inFile);
    InfoOperation infoOperation = new InfoOperation(input);
    FFExecutor<MovieMetadatas> executor = new FFExecutor<>(infoOperation);
    Executed<MovieMetadatas> execute = executor.execute();
    return execute.getResult();
}
Also used : MovieMetadatas(org.fagu.fmv.ffmpeg.metadatas.MovieMetadatas) FFExecutor(org.fagu.fmv.ffmpeg.executor.FFExecutor) FileMediaInput(org.fagu.fmv.ffmpeg.ioe.FileMediaInput) FileMediaInput(org.fagu.fmv.ffmpeg.ioe.FileMediaInput) MediaInput(org.fagu.fmv.ffmpeg.operation.MediaInput) InfoOperation(org.fagu.fmv.ffmpeg.operation.InfoOperation)

Aggregations

FFExecutor (org.fagu.fmv.ffmpeg.executor.FFExecutor)1 FileMediaInput (org.fagu.fmv.ffmpeg.ioe.FileMediaInput)1 MovieMetadatas (org.fagu.fmv.ffmpeg.metadatas.MovieMetadatas)1 InfoOperation (org.fagu.fmv.ffmpeg.operation.InfoOperation)1 MediaInput (org.fagu.fmv.ffmpeg.operation.MediaInput)1