de.humatic.dsj.sbe
Class DVREditingSession

java.lang.Object
  extended by de.humatic.dsj.sbe.DVREditingSession

public class DVREditingSession
extends java.lang.Object

A DVREditingSession creates a new DVR file by concatenating (pieces of) other DVR Files. dvr-ms is the fileformat used by XP MCE MediaCenter PCs and third party software that offers similiar functionality (like MediaPortal a.o.). It is basically MPEG2 or DV inside an asf container. For more information type dvr into Google...
The native APIs behind this are undergoing significant changes. The dvr-ms format is currently replaced by the wtv format. Parts of this functionality may be broken on Windows 7.


Constructor Summary
DVREditingSession(java.lang.String targetFile, java.lang.String refFile)
          Creates a session that writes to %targetFile.
 
Method Summary
 void append(java.lang.String srcFile, int in, int out)
          Append %srcFile to the session's target file.
 void closeSession()
          Closes the session and the file.
 int getCurrentLength()
          Returns the current length of the target file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DVREditingSession

public DVREditingSession(java.lang.String targetFile,
                         java.lang.String refFile)
                  throws DSJException
Creates a session that writes to %targetFile. %refFile must point to an existing, non-reference .dvr file that determins the profile for the entire session. All files appended through the append(...) method must have that same profile and - same as the target file, which may not allready exist - be on the same harddrive & partition.

Throws:
DSJException
Method Detail

append

public void append(java.lang.String srcFile,
                   int in,
                   int out)
            throws DSJException
Append %srcFile to the session's target file. Set in & out to 0 to append the entire file or specify in and out points in milliseconds (in which case the overall segment duration must be at least 3 sec.). See constructor for further requirements.

Throws:
DSJException

closeSession

public void closeSession()
Closes the session and the file.


getCurrentLength

public int getCurrentLength()
Returns the current length of the target file. May be used to monitor progress, though appending files usually is really fast.