|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsage.api.TranscodeAPI
public class TranscodeAPI
| Constructor Summary | |
|---|---|
TranscodeAPI()
|
|
| Method Summary | |
|---|---|
java.lang.String |
AddTranscodeFormat(java.lang.String FormatName,
java.lang.String FormatDetails)
Adds the specified transcode format to the list of available formats |
int |
AddTranscodeJob(sage.MediaFile SourceMediaFile,
java.lang.String FormatName,
java.io.File DestinationFile,
boolean DeleteSourceAfterTranscode)
Adds the specified job to the transcoder's queue. |
int |
AddTranscodeJob(sage.MediaFile SourceMediaFile,
java.lang.String FormatName,
java.io.File DestinationFile,
boolean DeleteSourceAfterTranscode,
long ClipTimeStart,
long ClipDuration)
Adds the specified job to the transcoder's queue. |
boolean |
CancelTranscodeJob(int JobID)
Cancels the specified transcoding ob |
boolean |
CanFileBeTranscoded(sage.MediaFile MediaFile)
Returns true if the specified MediaFile can be transcoded, false otherwise. |
void |
ClearTranscodedJobs()
Removes all of the completed transcode jobs from the transcoder queue |
java.lang.String |
GetTranscodeFormatDetails(java.lang.String FormatName)
Gets the format details for the specified format name |
java.lang.String[] |
GetTranscodeFormats()
Gets the names of the different transcode formats |
long |
GetTranscodeJobClipDuration(int JobID)
Returns the clip duration for the specified transcode job |
long |
GetTranscodeJobClipStart(int JobID)
Returns the clip start time for the specified transcode job |
float |
GetTranscodeJobCompletePercent(int JobID)
Gets the percent complete (between 0 and 1 as a float) for a transcode job |
java.io.File |
GetTranscodeJobDestFile(int JobID)
Gets the destination file of the specified transcoding job |
java.lang.String |
GetTranscodeJobFormat(int JobID)
Gets the target format of the specified transcoding job |
java.lang.Integer[] |
GetTranscodeJobs()
Returns a list of the job IDs for all the current jobs in the transcode queue. |
boolean |
GetTranscodeJobShouldKeepOriginal(int JobID)
Returns whether or not the specified transcoding job retains the original source file |
sage.MediaFile |
GetTranscodeJobSourceFile(int JobID)
Gets the source file of the specified transcoding job |
java.lang.String |
GetTranscodeJobStatus(int JobID)
Gets the status of the specified transcoding job |
java.lang.String |
RemoveTranscodeFormat(java.lang.String FormatName)
Removed the specified transcode format to the list of available formats |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TranscodeAPI()
| Method Detail |
|---|
public java.lang.String[] GetTranscodeFormats()
public java.lang.String GetTranscodeFormatDetails(java.lang.String FormatName)
FormatName - the name of the transcode format to get the parameter details for
public java.lang.String AddTranscodeFormat(java.lang.String FormatName,
java.lang.String FormatDetails)
FormatName - the name of the new transcode formatFormatDetails - the detailed property string for the new formatpublic java.lang.String RemoveTranscodeFormat(java.lang.String FormatName)
FormatName - the name of the transcode format to remove
public int AddTranscodeJob(sage.MediaFile SourceMediaFile,
java.lang.String FormatName,
java.io.File DestinationFile,
boolean DeleteSourceAfterTranscode)
SourceMediaFile - the source file that is to be transcoded, if it consists of multiple segments, all segments will be transcodedFormatName - the name of the transcode format to use for this conversionDestinationFile - the target file path for the conversion or null if SageTV should automatically determine the filename of the target files, if a directory is given then SageTV auto-generates the filename in that directoryDeleteSourceAfterTranscode - if true then the source media files are deleted when the transcoding is done, if false the source files are kept
public int AddTranscodeJob(sage.MediaFile SourceMediaFile,
java.lang.String FormatName,
java.io.File DestinationFile,
boolean DeleteSourceAfterTranscode,
long ClipTimeStart,
long ClipDuration)
SourceMediaFile - the source file that is to be transcoded, if it consists of multiple segments, all segments will be transcodedFormatName - the name of the transcode format to use for this conversionDestinationFile - the target file path for the conversion or null if SageTV should automatically determine the filename of the target files, if a directory is given then SageTV auto-generates the filename in that directoryDeleteSourceAfterTranscode - if true then the source media files are deleted when the transcoding is done, if false the source files are keptClipTimeStart - specifies the time in the file in seconds that the clip starts at (this number is relative to the beginning of the actual file)ClipDuration - specifies the duration of the clip in seconds to extract from the file (0 to convert until the end of the file)
public java.lang.String GetTranscodeJobStatus(int JobID)
JobID - the Job ID of the transcoding job to get the status of
public boolean CancelTranscodeJob(int JobID)
JobID - the Job ID of the transcoding job to cancel
public sage.MediaFile GetTranscodeJobSourceFile(int JobID)
JobID - the Job ID of the transcoding job to get the source file for
public java.io.File GetTranscodeJobDestFile(int JobID)
JobID - the Job ID of the transcoding job to get the destination file for
public boolean GetTranscodeJobShouldKeepOriginal(int JobID)
JobID - the Job ID of the transcoding job to get the destination file for
public long GetTranscodeJobClipStart(int JobID)
JobID - the Job ID of the transcoding job to get the destination file for
public long GetTranscodeJobClipDuration(int JobID)
JobID - the Job ID of the transcoding job to get the destination file for
public java.lang.String GetTranscodeJobFormat(int JobID)
JobID - the Job ID of the transcoding job to get the target format file for
public void ClearTranscodedJobs()
public java.lang.Integer[] GetTranscodeJobs()
public boolean CanFileBeTranscoded(sage.MediaFile MediaFile)
MediaFile - the MediaFile object
public float GetTranscodeJobCompletePercent(int JobID)
JobID - the Job ID of the transcoding job to get the percent complete of
|
SageTV Platform V7.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||