Package tv.hd3g.fflauncher
Class FFmpeg
java.lang.Object
tv.hd3g.fflauncher.ConversionTool
tv.hd3g.fflauncher.FFbase
tv.hd3g.fflauncher.FFmpeg
- All Implemented Interfaces:
HardwareProcessTraits,InputGeneratorsTraits,InputSourceProviderTraits,InternalParametersSupplier,SimpleSourceTraits,TemporalProcessTraits,VideoOutputTrait,ExecutableTool
public class FFmpeg
extends FFbase
implements InputGeneratorsTraits, HardwareProcessTraits, VideoOutputTrait, TemporalProcessTraits
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ProgressCallbackprotected ProgressListenerstatic final DurationFields inherited from class tv.hd3g.fflauncher.ConversionTool
APPEND_PARAM_AT_END, execName, inputSources, outputExpectedDestinations, parameters, PREPEND_PARAM_AT_START -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAudioCodecName(String codecName, int outputAudioStreamIndex) No checks will be done.Add "-movflags faststart" Please, put it a the end of command line, before output stream.addMap(int sourceIndex, int streamIndexInSource) No checks will be done.addSimpleOutputDestination(File destinationFile, String destinationContainer) Define cmd var name like <%OUT_AUTOMATIC_n%> with "n" the # of setted destination.addSimpleOutputDestination(String destinationName, String destinationContainer) Define cmd var name like <%OUT_AUTOMATIC_n%> with "n" the # of setted destination.intsetDeviceIdToUse(int deviceIdToUse) Used with hardware transcoding.setProgressListener(ProgressListener progressListener, ProgressCallback progressCallback) Methods inherited from class tv.hd3g.fflauncher.FFbase
addSimpleInputSource, addSimpleInputSource, addSimpleOutputDestination, addSimpleOutputDestination, beforeRun, checkFiltersAvailability, filterOutErrorLines, getAbout, getStdErrPrintStreamToDisplayLinesEvents, isHidebanner, isLogLevelSet, isNeverOverwriteOutputFiles, isOverwriteOutputFiles, setHidebanner, setLogLevel, setNeverOverwriteOutputFiles, setOverwriteOutputFilesMethods inherited from class tv.hd3g.fflauncher.ConversionTool
addInputSource, addInputSource, addOutputDestination, addOutputDestination, addOutputDestination, addOutputDestination, checkDestinations, checkSources, cleanUpOutputFiles, fixIOParametredVars, fixIOParametredVars, getDeclaredDestinationByVarName, getDeclaredDestinations, getDeclaredSourceByVarName, getDeclaredSources, getExecutableName, getFilterForLinesEventsToDisplay, getInputSources, getInternalParameters, getMaxExecTime, getMaxExecTimeScheduler, getOutputFiles, getParametersVariables, getReadyToRunParameters, getStdOutPrintStreamToDisplayLinesEvents, getWorkingDirectory, isCheckSourcesBeforeReady, isOnErrorDeleteOutFiles, isRemoveParamsIfNoVarToInject, onMissingInputOutputVar, patchVarName, setCheckSourcesBeforeReady, setFilterForLinesEventsToDisplay, setMaxExecTimeScheduler, setMaxExecutionTimeForShortCommands, setOnErrorDeleteOutFiles, setRemoveParamsIfNoVarToInject, setWorkingDirectoryMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tv.hd3g.processlauncher.ExecutableTool
execute, execute, execute, executeDirectStdoutMethods inherited from interface tv.hd3g.fflauncher.HardwareProcessTraits
addHardwareNVMultipleScalerFilterComplex, addHardwareNVScalerFilter, addHardwareVideoDecoding, addHardwareVideoEncodingMethods inherited from interface tv.hd3g.fflauncher.InputGeneratorsTraits
addSineAudioGeneratorAsInputSource, addSmptehdbarsGeneratorAsInputSourceMethods inherited from interface tv.hd3g.fflauncher.InputSourceProviderTraits
addInputSource, addInputSource, addInputSource, addInputSourceMethods inherited from interface tv.hd3g.fflauncher.InternalParametersSupplier
getInputSources, getInternalParametersMethods inherited from interface tv.hd3g.fflauncher.SimpleSourceTraits
addSimpleInputSource, addSimpleInputSource, addSimpleInputSource, addSimpleInputSourceMethods inherited from interface tv.hd3g.fflauncher.TemporalProcessTraits
addDuration, addEndPosition, addStartPosition, addToDurationMethods inherited from interface tv.hd3g.fflauncher.VideoOutputTrait
addBitrate, addBitrateControl, addCRF, addGOPControl, addIBQfactor, addPreset, addQMinMax, addTune, addVideoCodecName, addVsync
-
Field Details
-
statsPeriod
-
progressListener
-
progressCallback
-
-
Constructor Details
-
FFmpeg
-
-
Method Details
-
setNostats
-
setNoVideo
-
setNoAudio
-
addSimpleOutputDestination
Define cmd var name like <%OUT_AUTOMATIC_n%> with "n" the # of setted destination. Add "-f container destination" Don't forget to call fixIOParametredVars -
addSimpleOutputDestination
Define cmd var name like <%OUT_AUTOMATIC_n%> with "n" the # of setted destination. Add "-f container /destination" Don't forget to call fixIOParametredVars -
addFastStartMovMp4File
Add "-movflags faststart" Please, put it a the end of command line, before output stream. -
setDeviceIdToUse
Used with hardware transcoding.- Parameters:
deviceIdToUse- -1 by default
-
getDeviceIdToUse
public int getDeviceIdToUse()- Specified by:
getDeviceIdToUsein interfaceHardwareProcessTraits- Returns:
- -1 by default
-
addAudioCodecName
No checks will be done.- Parameters:
outputAudioStreamIndex- -1 by default
-
addMap
No checks will be done. like -map sourceIndex:streamIndexInSource ; 0 is the first. -
setProgressListener
public FFmpeg setProgressListener(ProgressListener progressListener, ProgressCallback progressCallback) -
resetProgressListener
-
beforeExecute
- Specified by:
beforeExecutein interfaceExecutableTool
-