Inheritance: IAudioProcessor
        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);
        }
Exemple #2
0
 public VideoOverlay(ToneDetector Tone)
 {
     detector  = Tone;
     Thumbnail = new Bitmap(256, 192);
 }
Exemple #3
0
        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;
        }
 public VideoOverlay(ToneDetector Tone)
 {
     detector = Tone;
     Thumbnail = new Bitmap(256, 192);
 }