Exemplo n.º 1
0
        private static void ProcessArguments( SubtitleArguments subWriterArguments )
        {
            Console.WriteLine( $"Processing {subWriterArguments.Filenames.Count} file paths" );
            Console.WriteLine( $"Writing chapter file to '{subWriterArguments.ChapterFileName}'" );
            Console.WriteLine( $"Writing subtitle file to '{subWriterArguments.SubtitleFileName}'" );

            if ( subWriterArguments.Scenalyzer )
            {
                Console.WriteLine( "Using scenalyzer file format" );
            }

            VideoProcessor subwriter = new VideoProcessor( subWriterArguments );
            subwriter.Status += ConsoleWriteStatus;
            bool success = subwriter.Process();
            subwriter.Status -= ConsoleWriteStatus;

            if ( success )
            {
                Console.WriteLine( "process completed successfully!" );
            }
            else
            {
                Console.WriteLine( "process was unsuccessful!" );
            }
        }
Exemplo n.º 2
0
 private static void ConsoleWriteStatus( VideoProcessor m, VideoProcessor.StatusEventHandler e )
 {
     Console.WriteLine( e.Message );
 }