private EncoderController PrepareEncoder() { var new_encoder = new EncoderController(config); new_encoder.UseAbsoluteTime = true; if (usePlugsCheck.Checked) { // Plug-ins for UK Parliament encoding if (_toneDetector == null) { _toneDetector = new ToneDetector(980); _toneDetector.PowerGate = 15; _toneDetector.TemporalSmoothing = 350; } //new_encoder.RegisterPlugin(_toneDetector); if (_timeOverlay == null) { _timeOverlay = new TimecodeOverlay(); } new_encoder.RegisterPlugin(_timeOverlay); if (_videoOverlay == null) { _videoOverlay = new VideoOverlay(_toneDetector); } new_encoder.RegisterPlugin(_videoOverlay); } return(new_encoder); }
private EncoderController PrepareEncoder() { var new_encoder = new EncoderController(config); new_encoder.UseAbsoluteTime = true; if (usePlugsCheck.Checked) { // Plug-ins for UK Parliament encoding if (_toneDetector == null) { _toneDetector = new ToneDetector(980); _toneDetector.PowerGate = 15; _toneDetector.TemporalSmoothing = 350; } //new_encoder.RegisterPlugin(_toneDetector); if (_timeOverlay == null) _timeOverlay = new TimecodeOverlay(); new_encoder.RegisterPlugin(_timeOverlay); if (_videoOverlay == null) _videoOverlay = new VideoOverlay(_toneDetector); new_encoder.RegisterPlugin(_videoOverlay); } return new_encoder; }