|
|
@ -604,7 +604,6 @@ public class FFmpegKitConfig { |
|
|
|
* @param ffmpegSession FFmpeg session which includes command options/arguments |
|
|
|
* @param ffmpegSession FFmpeg session which includes command options/arguments |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void ffmpegExecute(final FFmpegSession ffmpegSession) { |
|
|
|
public static void ffmpegExecute(final FFmpegSession ffmpegSession) { |
|
|
|
addSession(ffmpegSession); |
|
|
|
|
|
|
|
ffmpegSession.startRunning(); |
|
|
|
ffmpegSession.startRunning(); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
@ -622,7 +621,6 @@ public class FFmpegKitConfig { |
|
|
|
* @param ffprobeSession FFprobe session which includes command options/arguments |
|
|
|
* @param ffprobeSession FFprobe session which includes command options/arguments |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void ffprobeExecute(final FFprobeSession ffprobeSession) { |
|
|
|
public static void ffprobeExecute(final FFprobeSession ffprobeSession) { |
|
|
|
addSession(ffprobeSession); |
|
|
|
|
|
|
|
ffprobeSession.startRunning(); |
|
|
|
ffprobeSession.startRunning(); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
@ -641,7 +639,6 @@ public class FFmpegKitConfig { |
|
|
|
* @param waitTimeout max time to wait until media information is transmitted |
|
|
|
* @param waitTimeout max time to wait until media information is transmitted |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void getMediaInformationExecute(final MediaInformationSession mediaInformationSession, final int waitTimeout) { |
|
|
|
public static void getMediaInformationExecute(final MediaInformationSession mediaInformationSession, final int waitTimeout) { |
|
|
|
addSession(mediaInformationSession); |
|
|
|
|
|
|
|
mediaInformationSession.startRunning(); |
|
|
|
mediaInformationSession.startRunning(); |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
@ -664,8 +661,6 @@ public class FFmpegKitConfig { |
|
|
|
* @param ffmpegSession FFmpeg session which includes command options/arguments |
|
|
|
* @param ffmpegSession FFmpeg session which includes command options/arguments |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void asyncFFmpegExecute(final FFmpegSession ffmpegSession) { |
|
|
|
public static void asyncFFmpegExecute(final FFmpegSession ffmpegSession) { |
|
|
|
addSession(ffmpegSession); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AsyncFFmpegExecuteTask asyncFFmpegExecuteTask = new AsyncFFmpegExecuteTask(ffmpegSession); |
|
|
|
AsyncFFmpegExecuteTask asyncFFmpegExecuteTask = new AsyncFFmpegExecuteTask(ffmpegSession); |
|
|
|
Future<?> future = asyncExecutorService.submit(asyncFFmpegExecuteTask); |
|
|
|
Future<?> future = asyncExecutorService.submit(asyncFFmpegExecuteTask); |
|
|
|
ffmpegSession.setFuture(future); |
|
|
|
ffmpegSession.setFuture(future); |
|
|
@ -678,8 +673,6 @@ public class FFmpegKitConfig { |
|
|
|
* @param executorService executor service that will be used to run this asynchronous operation |
|
|
|
* @param executorService executor service that will be used to run this asynchronous operation |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void asyncFFmpegExecute(final FFmpegSession ffmpegSession, final ExecutorService executorService) { |
|
|
|
public static void asyncFFmpegExecute(final FFmpegSession ffmpegSession, final ExecutorService executorService) { |
|
|
|
addSession(ffmpegSession); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AsyncFFmpegExecuteTask asyncFFmpegExecuteTask = new AsyncFFmpegExecuteTask(ffmpegSession); |
|
|
|
AsyncFFmpegExecuteTask asyncFFmpegExecuteTask = new AsyncFFmpegExecuteTask(ffmpegSession); |
|
|
|
Future<?> future = executorService.submit(asyncFFmpegExecuteTask); |
|
|
|
Future<?> future = executorService.submit(asyncFFmpegExecuteTask); |
|
|
|
ffmpegSession.setFuture(future); |
|
|
|
ffmpegSession.setFuture(future); |
|
|
@ -691,8 +684,6 @@ public class FFmpegKitConfig { |
|
|
|
* @param ffprobeSession FFprobe session which includes command options/arguments |
|
|
|
* @param ffprobeSession FFprobe session which includes command options/arguments |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void asyncFFprobeExecute(final FFprobeSession ffprobeSession) { |
|
|
|
public static void asyncFFprobeExecute(final FFprobeSession ffprobeSession) { |
|
|
|
addSession(ffprobeSession); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AsyncFFprobeExecuteTask asyncFFmpegExecuteTask = new AsyncFFprobeExecuteTask(ffprobeSession); |
|
|
|
AsyncFFprobeExecuteTask asyncFFmpegExecuteTask = new AsyncFFprobeExecuteTask(ffprobeSession); |
|
|
|
Future<?> future = asyncExecutorService.submit(asyncFFmpegExecuteTask); |
|
|
|
Future<?> future = asyncExecutorService.submit(asyncFFmpegExecuteTask); |
|
|
|
ffprobeSession.setFuture(future); |
|
|
|
ffprobeSession.setFuture(future); |
|
|
@ -705,8 +696,6 @@ public class FFmpegKitConfig { |
|
|
|
* @param executorService executor service that will be used to run this asynchronous operation |
|
|
|
* @param executorService executor service that will be used to run this asynchronous operation |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void asyncFFprobeExecute(final FFprobeSession ffprobeSession, final ExecutorService executorService) { |
|
|
|
public static void asyncFFprobeExecute(final FFprobeSession ffprobeSession, final ExecutorService executorService) { |
|
|
|
addSession(ffprobeSession); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AsyncFFprobeExecuteTask asyncFFmpegExecuteTask = new AsyncFFprobeExecuteTask(ffprobeSession); |
|
|
|
AsyncFFprobeExecuteTask asyncFFmpegExecuteTask = new AsyncFFprobeExecuteTask(ffprobeSession); |
|
|
|
Future<?> future = executorService.submit(asyncFFmpegExecuteTask); |
|
|
|
Future<?> future = executorService.submit(asyncFFmpegExecuteTask); |
|
|
|
ffprobeSession.setFuture(future); |
|
|
|
ffprobeSession.setFuture(future); |
|
|
@ -719,8 +708,6 @@ public class FFmpegKitConfig { |
|
|
|
* @param waitTimeout max time to wait until media information is transmitted |
|
|
|
* @param waitTimeout max time to wait until media information is transmitted |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void asyncGetMediaInformationExecute(final MediaInformationSession mediaInformationSession, final int waitTimeout) { |
|
|
|
public static void asyncGetMediaInformationExecute(final MediaInformationSession mediaInformationSession, final int waitTimeout) { |
|
|
|
addSession(mediaInformationSession); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AsyncGetMediaInformationTask asyncGetMediaInformationTask = new AsyncGetMediaInformationTask(mediaInformationSession, waitTimeout); |
|
|
|
AsyncGetMediaInformationTask asyncGetMediaInformationTask = new AsyncGetMediaInformationTask(mediaInformationSession, waitTimeout); |
|
|
|
Future<?> future = asyncExecutorService.submit(asyncGetMediaInformationTask); |
|
|
|
Future<?> future = asyncExecutorService.submit(asyncGetMediaInformationTask); |
|
|
|
mediaInformationSession.setFuture(future); |
|
|
|
mediaInformationSession.setFuture(future); |
|
|
@ -734,8 +721,6 @@ public class FFmpegKitConfig { |
|
|
|
* @param waitTimeout max time to wait until media information is transmitted |
|
|
|
* @param waitTimeout max time to wait until media information is transmitted |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public static void asyncGetMediaInformationExecute(final MediaInformationSession mediaInformationSession, final ExecutorService executorService, final int waitTimeout) { |
|
|
|
public static void asyncGetMediaInformationExecute(final MediaInformationSession mediaInformationSession, final ExecutorService executorService, final int waitTimeout) { |
|
|
|
addSession(mediaInformationSession); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
AsyncGetMediaInformationTask asyncGetMediaInformationTask = new AsyncGetMediaInformationTask(mediaInformationSession, waitTimeout); |
|
|
|
AsyncGetMediaInformationTask asyncGetMediaInformationTask = new AsyncGetMediaInformationTask(mediaInformationSession, waitTimeout); |
|
|
|
Future<?> future = executorService.submit(asyncGetMediaInformationTask); |
|
|
|
Future<?> future = executorService.submit(asyncGetMediaInformationTask); |
|
|
|
mediaInformationSession.setFuture(future); |
|
|
|
mediaInformationSession.setFuture(future); |
|
|
|