Ejemplo n.º 1
0
        /// <summary>
        /// Gets the probe size argument.
        /// </summary>
        /// <param name="job">The job.</param>
        /// <returns>System.String.</returns>
        private string GetProbeSizeArgument(EncodingJob job)
        {
            if (job.PlayableStreamFileNames.Count > 0)
            {
                return(MediaEncoder.GetProbeSizeArgument(job.PlayableStreamFileNames.ToArray(), job.InputProtocol));
            }

            return(MediaEncoder.GetProbeSizeArgument(new[] { job.MediaPath }, job.InputProtocol));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the probe size argument.
        /// </summary>
        /// <param name="state">The state.</param>
        /// <returns>System.String.</returns>
        private string GetProbeSizeArgument(EncodingJob state)
        {
            if (state.PlayableStreamFileNames.Count > 0)
            {
                return(MediaEncoder.GetProbeSizeArgument(state.PlayableStreamFileNames.ToArray(), state.InputProtocol));
            }

            return(MediaEncoder.GetProbeSizeArgument(new[] { state.MediaPath }, state.InputProtocol));
        }