コード例 #1
0
 public VideoThumbnailerForm(string ffmpegPath, VideoThumbnailOptions options)
 {
     FFmpegPath = ffmpegPath;
     Options = options;
     InitializeComponent();
     txtMediaPath.Text = Options.LastVideoPath ?? string.Empty;
     pgOptions.SelectedObject = Options;
 }
コード例 #2
0
ファイル: VideoThumbnailer.cs プロジェクト: andre-d/ShareXYZ
        public VideoThumbnailer(string mediaPath, string ffmpegPath, VideoThumbnailOptions options)
        {
            MediaPath = mediaPath;
            FFmpegPath = ffmpegPath;
            Options = options;

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