Exemple #1
0
        public void TestSplitIntoWorkSegments()
        {
            //string videoFile = testdata + @"\TestMoveToCloudAndTranscribe - Copy\USA_ME_LincolnCounty_BoothbayHarbor_Selectmen_EN_2017-02-15.mp4";
            //string transcriptFile = testdata + @"\TestMoveToCloudAndTranscribe - Copy\USA_ME_LincolnCounty_BoothbayHarbor_Selectmen_EN_2017-02-15.json";

            //string outputFolder = testdata + "\\" + "TestSplitIntoWorkSegments";
            //DeleteAndCreateDirectory(outputFolder);

            string outputFolder   = @"C:\GOVMEETING\_SOURCECODE\src\Datafiles\USA_ME_LincolnCounty_BoothbayHarbor_Selectmen_EN\2017-01-09";
            string videoFile      = outputFolder + "\\" + "01-Video.mp4";
            string transcriptFile = outputFolder + "\\" + "R3-ToBeFixed.json";
            int    segmentSize    = 180;
            int    overlap        = 5;

            SplitIntoWorkSegments split = new SplitIntoWorkSegments();

            split.Split(outputFolder, videoFile, transcriptFile, segmentSize, overlap);
        }
Exemple #2
0
        public void startProofreading(Meeting meeting)
        {
            // Get the work folder path
            MeetingFolder meetingFolder  = new MeetingFolder(govBodyRepository, meeting);
            string        workFolderPath = config.DatafilesPath + "\\PROCESSING\\" + meetingFolder.path;

            /////// Split the video, audio and transcript into multiple work segments

            string videofileCopy  = meetingFolder + "\\" + "01-Video.mp4";
            string outputJsonFile = meetingFolder + "\\" + "04-ToFix.json";

            SplitIntoWorkSegments split = new SplitIntoWorkSegments();

            split.Split(workFolderPath, videofileCopy, outputJsonFile, config.FixasrSegmentSize,
                        config.FixasrSegmentOverlap);

            meeting.WorkStatus = WorkStatus.Proofreading;
            meeting.Approved   = false;
        }