private static string GetImageOrgPnValue(string container, int?width, int?height)
        {
            MediaFormatProfile?format = MediaFormatProfileResolver.ResolveImageFormat(
                container,
                width,
                height);

            return(format?.ToString() ?? string.Empty);
        }
        private static string GetAudioOrgPnValue(string container, int?audioBitrate, int?audioSampleRate, int?audioChannels)
        {
            MediaFormatProfile?format = MediaFormatProfileResolver.ResolveAudioFormat(
                container,
                audioBitrate,
                audioSampleRate,
                audioChannels);

            return(format?.ToString() ?? string.Empty);
        }
 private static MediaFormatProfile[] GetVideoOrgPnValue(string container, string?videoCodec, string?audioCodec, int?width, int?height, TransportStreamTimestamp timestamp)
 {
     return(MediaFormatProfileResolver.ResolveVideoFormat(container, videoCodec ?? string.Empty, audioCodec ?? string.Empty, width, height, timestamp));
 }