C# Class HandBrake.ApplicationServices.Services.Encode

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

Public Methods

Method 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

Method 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 method

Initializes a new instance of the Encode class.
public Encode ( ) : System
return System

SafelyStop() public method

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
return void

Start() public method

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. ///
return void

Stop() public method

Stop the Encode
public Stop ( ) : void
return void

Stop() public method

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 ///
return void