Exemplo n.º 1
0
        /// <summary>
        /// Cut video method for BackgroundWorker
        /// </summary>
        private void Worker_Cut_Video(object sender, DoWorkEventArgs e)
        {
            List <object> arguments = e.Argument as List <object>;
            string        input     = (string)arguments[0];
            string        output    = (string)arguments[1];
            string        startTime = (string)arguments[2];
            string        endTime   = (string)arguments[3];

            FFMpegHelper.CutVideo(input, output, startTime, endTime);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Shared code for updating the VideoCutter UI after a video is selected.
 /// Used by both Select_Video() and HandleDrop().
 /// </summary>
 /// <param name="path"></param>
 private void UpdateUIAfterVideoSelected(string path)
 {
     Input_Video.Text = path;
     Autofill_Suggested_Name(Output_Video_Name, path);
     End_Time.Text = FFMpegHelper.GetVideoDuration(path);
 }
Exemplo n.º 3
0
        public Settings()
        {
            InitializeComponent();

            FFMpeg_Location.Text = FFMpegHelper.GetFFMpegPath();
        }