예제 #1
0
        /// <summary>
        /// Open an input stream and read the header.
        /// </summary>
        /// <param name="inputFormat">
        /// The input format.
        /// </param>
        public void OpenInputStream(string inputFormat)
        {
            var h264 = new AVInputFormat(this.client, "h264");

            this.OpenInputStream(null, h264);
        }
예제 #2
0
        /// <summary>
        /// Open an input stream and read the header.
        /// </summary>
        /// <param name="url">
        /// URL of the stream to open.
        /// </param>
        /// <param name="inputFormat">
        /// If non-NULL, this parameter forces a specific input format. Otherwise the format is autodetected.
        /// </param>
        public void OpenInputStream(string?url, AVInputFormat inputFormat)
        {
            var ret = this.client.avformat_open_input(this, url, inputFormat == null ? null : inputFormat.NativeObject, null);

            this.client.ThrowOnAVError(ret);
        }