示例#1
0
        public static void ConcatTest()
        {
            //This works. Test for three files with different aspect ratios.
            RenderViewModel renderDataa = new RenderViewModel()
            {
                RawFileNames       = "17.MP4,19.MP4,20.MP4",
                ConvertedFileName  = "helke_no_slate_long.mp4",
                Duration           = 40,
                Start              = 4236,
                FirstName          = "Auggie",
                LastName           = "Wolchansky",
                FoundVideoToRender = true,
                FuneralHomeName    = "DevHome",
                ServiceId          = 16,
                VideoQueId         = 30,
                VideoQueType       = VideoQueType.FullWithSlate,
                ServiceDate        = DateTime.Now
            };
            RenderVideo   render = new RenderVideo(renderDataa);
            List <string> vids   = new List <string>();

            vids.Add("17.MP4");
            vids.Add("19.MP4");
            vids.Add("20.MP4");
            //render.CreateSlideShow("Shane", "White", DateTime.Now, "Your Funeral Home Name", "slate.mp4");
            render.ConcatenateVideoFiles(vids, true);
            //render.CreateSlideShow("Shane", "White", DateTime.Now, "Mollys Funeral Home", "slideshow.mp4");
            //render.MergeSlateToService("slate.mp4", "hi.mp4", "output.mp4");
            // render.StartRender(false);
        }
示例#2
0
        public static void Download()
        {
            string          videoFiles  = "7589_OurSavior_uploading_201809160802_48.mp4,7589_OurSavior_uploading_201809160802_48_1.mp4,7589_OurSavior_uploading_201809160802_48_2.mp4,7589_OurSavior_uploading_201809160802_48_3.mp4";
            RenderViewModel renderDataa = new RenderViewModel()
            {
                RawFileNames       = videoFiles,
                ConvertedFileName  = "saviortest.mp4",
                Duration           = 3768,
                Start              = 0,
                FirstName          = "Auggie",
                LastName           = "Wolchansky",
                FoundVideoToRender = true,
                FuneralHomeName    = "DevHome",
                ServiceId          = 16,
                VideoQueId         = 19,
                VideoQueType       = VideoQueType.FullNoSlate
            };
            RenderVideo renderer = new RenderVideo(renderDataa);

            string[] _videoFiles = videoFiles.Split(',');
            renderer.ConcatenateVideoFiles(_videoFiles.ToList(), true);
        }