Example #1
0
        private static Fmp4 CreateFMP4Muxing(Stream stream, BaseOutput output, string outputPath,
                                             double?segmentLength)
        {
            var encodingOutput = new Encoding.Output
            {
                OutputPath = outputPath,
                OutputId   = output.Id,
                Acl        = new List <Acl> {
                    new Acl {
                        Permission = Permission.PUBLIC_READ
                    }
                }
            };

            var muxing = new Fmp4
            {
                Outputs = new List <Encoding.Output> {
                    encodingOutput
                },
                Streams = new List <MuxingStream> {
                    new MuxingStream {
                        StreamId = stream.Id
                    }
                },
                SegmentLength = segmentLength
            };

            return(muxing);
        }
Example #2
0
        private static Fmp4 CreateFMP4Muxing(Stream stream, double?segmentLength)
        {
            var muxing = new Fmp4
            {
                Streams = new List <MuxingStream> {
                    new MuxingStream {
                        StreamId = stream.Id
                    }
                },
                SegmentLength = segmentLength
            };

            return(muxing);
        }