コード例 #1
0
 internal Converting(string fileName, ConversionFormat format, bool sendToITunesSelected)
 {
     InitializeComponent();
     this.conversionFormat = format;
     this.sendToITunesSelected = sendToITunesSelected;
     this.ffmpegOutput = new List<string>();
     fileNameLabel.Content = IOPath.GetFileName(fileName);
     progressLabel.Content = "Starting...";
     converter = format.MakeConverter(fileName);
     converter.Output += new EventHandler<ProcessOutputArgs>(converter_FFMPEGOutput);
     converter.ConvertProgress +=
         new EventHandler<VideoConvertProgressArgs>(converter_ConvertProgress);
     converter.Finished += new EventHandler<EventArgs>(converter_Finished);
     converter.UnknownFormat += new EventHandler<EventArgs>(converter_UnknownFormat);
     converter.Start();
 }
コード例 #2
0
 private void ShowConvertingView(string fileName, ConversionFormat format, bool sendToITunesSelected)
 {
     Converting convertingView = new Converting(fileName, format, sendToITunesSelected);
     this.mainGrid.Children.Add(convertingView);
     convertingView.Margin = new Thickness(0);
     convertingView.HorizontalAlignment = HorizontalAlignment.Stretch;
     convertingView.VerticalAlignment = VerticalAlignment.Stretch;
     convertingView.Finished += new EventHandler<VideoConvertFinishedArgs>(convertingView_Finished);
     convertingView.Cancelled += new EventHandler<EventArgs>(convertingView_Cancelled);
     convertingView.UnknownFormat += new EventHandler<EventArgs>(convertingView_UnknownFormat);
 }
コード例 #3
0
 internal FFMPEGVideoConverter(string fileName, ConversionFormat format)
 {
     args = format.GetArguments(fileName,
         outputFileName = Path.ChangeExtension(fileName,
             format.OutputFileExtension));
 }
コード例 #4
0
 public VideoSelectedEventArgs(string fileName, ConversionFormat format, bool sendToITunesSelected)
 {
     this.FileName = fileName;
     this.Format = format;
     this.SendToITunesSelected = sendToITunesSelected;
 }