Example #1
0
 public VideoThumbnailerForm(string ffmpegPath, VideoThumbnailOptions options)
 {
     FFmpegPath = ffmpegPath;
     Options    = options;
     InitializeComponent();
     txtMediaPath.Text        = Options.LastVideoPath ?? string.Empty;
     pgOptions.SelectedObject = Options;
 }
Example #2
0
        public VideoThumbnailer(string mediaPath, string ffmpegPath, VideoThumbnailOptions options)
        {
            MediaPath  = mediaPath;
            FFmpegPath = ffmpegPath;
            Options    = options;

            using (FFmpegCLIManager ffmpegCLI = new FFmpegCLIManager(FFmpegPath))
            {
                VideoInfo = ffmpegCLI.GetVideoInfo(MediaPath);
            }
        }