C# Class HandBrake.ApplicationServices.Services.Encode

Class which handles the CLI
Inheritance: HandBrake.ApplicationServices.Services.Base.EncodeBase, IEncode
Afficher le fichier Open project: golgol7777/HandBrakeWinSource Class Usage Examples

Méthodes publiques

Méthode Description
Encode ( ) : System

Initializes a new instance of the Encode class.

SafelyStop ( ) : void

Attempt to Safely kill a DirectRun() CLI NOTE: This will not work with a MinGW CLI Note: http://www.cygwin.com/ml/cygwin/2006-03/msg00330.html

Start ( HandBrake.ApplicationServices.Model.QueueTask encodeQueueTask, bool enableLogging ) : void

Execute a HandBrakeCLI process.

Stop ( ) : void

Stop the Encode

Stop ( Exception exc ) : void

Kill the CLI process

Private Methods

Méthode Description
EncodeEncodeStarted ( object sender, EventArgs e ) : void

Encode Started

EncodeMonitor ( ) : void

Monitor the QueueTask

EncodeOnEncodeProgress ( object sender, int currentTask, int taskCount, float percentComplete, float currentFps, float avg, string timeRemaining ) : void

Displays the Encode status in the GUI

HbProcErrorDataReceived ( object sender, DataReceivedEventArgs e ) : void

Recieve the Standard Error information and process it

HbProcessExited ( object sender, EventArgs e ) : void

The HandBrakeCLI process has exited.

Method Details

Encode() public méthode

Initializes a new instance of the Encode class.
public Encode ( ) : System
Résultat System

SafelyStop() public méthode

Attempt to Safely kill a DirectRun() CLI NOTE: This will not work with a MinGW CLI Note: http://www.cygwin.com/ml/cygwin/2006-03/msg00330.html
public SafelyStop ( ) : void
Résultat void

Start() public méthode

Execute a HandBrakeCLI process.
public Start ( HandBrake.ApplicationServices.Model.QueueTask encodeQueueTask, bool enableLogging ) : void
encodeQueueTask HandBrake.ApplicationServices.Model.QueueTask /// The encodeQueueTask. ///
enableLogging bool /// Enable Logging. When Disabled we onlt parse Standard Ouput for progress info. Standard Error log data is ignored. ///
Résultat void

Stop() public méthode

Stop the Encode
public Stop ( ) : void
Résultat void

Stop() public méthode

Kill the CLI process
public Stop ( Exception exc ) : void
exc System.Exception /// The Exception that has occured. /// This will get bubbled up through the EncodeCompletedEventArgs ///
Résultat void