All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spikeify.ffmpeg.job.SinglePassFFmpegJob Maven / Gradle / Ivy

package com.spikeify.ffmpeg.job;

import com.google.common.base.Throwables;
import com.spikeify.ffmpeg.FFmpeg;

import java.util.List;

public class SinglePassFFmpegJob extends FFmpegJob {

	final List args;

	public SinglePassFFmpegJob(FFmpeg ffmpeg, List args) {
		super(ffmpeg);
		this.args = args;
	}

	public void run() {
		state = State.RUNNING;

		try {
			ffmpeg.run(args);
			state = State.FINISHED;

		} catch (Throwable t) {
			state = State.FAILED;
			Throwables.propagate(t);
		}
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy