|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.googlecode.fascinator.transformer.ffmpeg.FfmpegDatabase
public class FfmpegDatabase
A wrapper class for database access to collect FFmpeg transcoding information This class can be used for statistical collection, as well as to support decision making on whether a re-transcode is required.
| Constructor Summary | |
|---|---|
FfmpegDatabase(JsonSimple config)
|
|
| Method Summary | |
|---|---|
long |
getLastTranscoded(String oid,
String render,
String source,
String output,
String resolution)
Retrieve from the database the timestamp of the last time this particular transcoding was performed. |
void |
shutdown()
Shutdown the database connections and cleanup. |
void |
storeTranscoding(Map<String,String> data)
Store the transcoding data in the provided map |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FfmpegDatabase(JsonSimple config)
throws Exception
Exception| Method Detail |
|---|
public void shutdown()
throws Exception
Exception - if there are errors
public long getLastTranscoded(String oid,
String render,
String source,
String output,
String resolution)
oid: - The object identifier of the sourcerender: - The render string used to transcodesource: - The source file transcoded fromoutput: - The output file transcoded toresolution: - The resolution of the output
public void storeTranscoding(Map<String,String> data)
throws Exception
data: - A map of transcoding data from the transformer
Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||