Esempio n. 1
0
        private void StartCutButton_OnClick(object sender, RoutedEventArgs e)
        {
            var startCutTime = Int32.Parse(StartTimeTextBox.Text);
            var endCutTime   = Int32.Parse(EndTimeTextBox.Text);

            _playerIntPtr = RtspExport.Cut(PathCutFileTextBox.Text, PathCutResultTextBox.Text, startCutTime, endCutTime, null, null, null);
        }
Esempio n. 2
0
        public void Show(string path, int time)
        {
            var           width           = 640;
            var           height          = 480;
            var           rtspExport      = new RtspExport();
            List <byte[]> imageCollection = (List <byte[]>)RtspExport.GetFrameCollectionByRange(path, width, height, time, 1000, 5);

            //using (var byteStream = new MemoryStream())
            //{
            //	rtspExport.GetFrame(path, width, height, time, byteStream);
            //	var image = new BitmapImage();
            //	byteStream.Position = 0;
            //	image.BeginInit();
            //	image.CreateOptions = BitmapCreateOptions.PreservePixelFormat;
            //	image.CacheOption = BitmapCacheOption.OnLoad;
            //	image.UriSource = null;
            //	image.StreamSource = byteStream;
            //	image.EndInit();
            //	image.Freeze();
            //	Image.Source = image;
            //}
            Show();
        }
Esempio n. 3
0
 private void StartConcatenateButton_OnClick(object sender, RoutedEventArgs e)
 {
     _playerIntPtr = RtspExport.Concatenate(PathConcatenateFirtstFileTextBox.Text, PathConcatenateSecondFileTextBox.Text, PathConcatenateResultTextBox.Text, null, null, null);
 }