public class FFmpegSession extends AbstractSession implements Session
An FFmpeg session.
arguments, createTime, DEFAULT_TIMEOUT_FOR_ASYNCHRONOUS_MESSAGES_IN_TRANSMIT, endTime, failStackTrace, future, logCallback, logRedirectionStrategy, logs, logsLock, returnCode, sessionId, sessionIdGenerator, startTime, state| Constructor and Description |
|---|
FFmpegSession(java.lang.String[] arguments)
Builds a new FFmpeg session.
|
FFmpegSession(java.lang.String[] arguments,
FFmpegSessionCompleteCallback completeCallback)
Builds a new FFmpeg session.
|
FFmpegSession(java.lang.String[] arguments,
FFmpegSessionCompleteCallback completeCallback,
LogCallback logCallback,
StatisticsCallback statisticsCallback)
Builds a new FFmpeg session.
|
FFmpegSession(java.lang.String[] arguments,
FFmpegSessionCompleteCallback completeCallback,
LogCallback logCallback,
StatisticsCallback statisticsCallback,
LogRedirectionStrategy logRedirectionStrategy)
Builds a new FFmpeg session.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStatistics(Statistics statistics)
Adds a new statistics entry for this session.
|
java.util.List<Statistics> |
getAllStatistics()
Returns all statistics entries generated for this session.
|
java.util.List<Statistics> |
getAllStatistics(int waitTimeout)
Returns all statistics entries generated for this session.
|
FFmpegSessionCompleteCallback |
getCompleteCallback()
Returns the session specific complete callback.
|
Statistics |
getLastReceivedStatistics()
Returns the last received statistics entry.
|
java.util.List<Statistics> |
getStatistics()
Returns all statistics entries delivered for this session.
|
StatisticsCallback |
getStatisticsCallback()
Returns the session specific statistics callback.
|
boolean |
isFFmpeg()
Returns whether it is an
FFmpeg session or not. |
boolean |
isFFprobe()
Returns whether it is an
FFprobe session or not. |
boolean |
isMediaInformation()
Returns whether it is a
MediaInformation session or not. |
java.lang.String |
toString() |
addLog, cancel, getAllLogs, getAllLogs, getAllLogsAsString, getAllLogsAsString, getArguments, getCommand, getCreateTime, getDuration, getEndTime, getFailStackTrace, getFuture, getLogCallback, getLogRedirectionStrategy, getLogs, getLogsAsString, getOutput, getReturnCode, getSessionId, getStartTime, getState, thereAreAsynchronousMessagesInTransmit, waitForAsynchronousMessagesInTransmitclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddLog, cancel, getAllLogs, getAllLogs, getAllLogsAsString, getAllLogsAsString, getArguments, getCommand, getCreateTime, getDuration, getEndTime, getFailStackTrace, getFuture, getLogCallback, getLogRedirectionStrategy, getLogs, getLogsAsString, getOutput, getReturnCode, getSessionId, getStartTime, getState, thereAreAsynchronousMessagesInTransmitpublic FFmpegSession(java.lang.String[] arguments)
arguments - command argumentspublic FFmpegSession(java.lang.String[] arguments,
FFmpegSessionCompleteCallback completeCallback)
arguments - command argumentscompleteCallback - session specific complete callbackpublic FFmpegSession(java.lang.String[] arguments,
FFmpegSessionCompleteCallback completeCallback,
LogCallback logCallback,
StatisticsCallback statisticsCallback)
arguments - command argumentscompleteCallback - session specific complete callbacklogCallback - session specific log callbackstatisticsCallback - session specific statistics callbackpublic FFmpegSession(java.lang.String[] arguments,
FFmpegSessionCompleteCallback completeCallback,
LogCallback logCallback,
StatisticsCallback statisticsCallback,
LogRedirectionStrategy logRedirectionStrategy)
arguments - command argumentscompleteCallback - session specific complete callbacklogCallback - session specific log callbackstatisticsCallback - session specific statistics callbacklogRedirectionStrategy - session specific log redirection strategypublic StatisticsCallback getStatisticsCallback()
public FFmpegSessionCompleteCallback getCompleteCallback()
public java.util.List<Statistics> getAllStatistics(int waitTimeout)
waitTimeout - wait timeout for asynchronous messages in millisecondspublic java.util.List<Statistics> getAllStatistics()
AbstractSession.DEFAULT_TIMEOUT_FOR_ASYNCHRONOUS_MESSAGES_IN_TRANSMIT expires.public java.util.List<Statistics> getStatistics()
public Statistics getLastReceivedStatistics()
public void addStatistics(Statistics statistics)
FFmpegKit library methods. Must not be used by user applications.statistics - statistics entrypublic boolean isFFmpeg()
SessionFFmpeg session or not.public boolean isFFprobe()
SessionFFprobe session or not.public boolean isMediaInformation()
SessionMediaInformation session or not.isMediaInformation in interface SessionMediaInformation session, false otherwisepublic java.lang.String toString()
toString in class java.lang.Object