ASP.NET Video & Audio Encoder Settings will help developers to add more video and audio encoding profile settings and update different video and audio parameters for existing profiles easily. These settings will be easily managed from centralize location which can be used for multi level (240p, 360p, 480p, 720p, 1080p) and multi format (FLV, MP4, WebM, WMV, MP3) etc video and audio publishing via asp.net, c# and vb.net
ASP.NET Video & Audio Encoder Setting include about 15 different video format settings and allow flexibility for developers to add more settings based on their requirements. These settings can be apply via "itag" unique identifier while publishing videos.
List of video and audio settings with itag identifier
| Property | Description |
|---|---|
| 240p flv video settings | media.Width = 400; media.Height = 240; media.Video_Bitrate = 256; media.Audio_SamplingRate = 22050; media.Audio_Bitrate = 64; media.OutputExtension = ".flv"; media.Force = "flv"; |
| 360p flv video settings | media.Width = 640; media.Height = 360; media.Video_Bitrate = 500; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 128; media.OutputExtension = ".flv"; media.VCodec = "libx264"; media.Parameters = " -fpre \"" + presetpath + "\""; |
| 480 flv video settings | media.Width = 854; media.Height = 480; media.Video_Bitrate = 1000; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 128; media.OutputExtension = ".flv"; media.VCodec = "libx264"; media.Parameters = " -fpre \"" + presetpath + "\""; |
| 720p flv video settings | media.Width = 1280; media.Height = 720; media.Video_Bitrate = 2000; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 128; media.OutputExtension = ".flv"; media.VCodec = "libx264"; media.Parameters = " -fpre \"" + presetpath + "\""; |
| 240p mp4 video settings | media.Width = 400; media.Height = 240; media.Video_Bitrate = 256; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 128; media.OutputExtension = ".mp4"; media.VCodec = "libx264"; media.Parameters = " -fpre \"" + presetpath + "\""; |
| 360p mp4 video settings | media.Width = 640; media.Height = 380; media.Video_Bitrate = 500; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 128; media.OutputExtension = ".mp4"; media.VCodec = "libx264"; media.Parameters = " -fpre \"" + presetpath + "\""; |
| 480p mp4 video settings | media.Width = 854; media.Height = 480; media.Video_Bitrate = 1000; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 128; media.OutputExtension = ".mp4"; media.VCodec = "libx264"; media.Parameters = " -fpre \"" + presetpath + "\""; |
| 720p mp4 video settings | media.Width = 1280; media.Height = 720; media.Video_Bitrate = 2200; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 96; media.OutputExtension = ".mp4"; media.VCodec = "libx264"; media.Parameters = " -fpre \"" + presetpath + "\""; |
| 1080p mp4 video settings | media.Width = 1920; media.Height = 1080; media.Video_Bitrate = 2900; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 152; media.OutputExtension = ".mp4"; media.VCodec = "libx264"; media.Parameters = " -fpre \"" + presetpath + "\""; |
| 240p webm video settings | media.Width = 400; media.Height = 240; media.Video_Bitrate = 256; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 128; media.OutputExtension = ".webm"; media.VCodec = "libx264"; presetpath = RootPath + "\\ffmpeg\\presets\\libvpx-360p.ffpreset"; media.VCodec = "libvpx"; media.ACodec = "libvorbis"; media.Parameters = "-f webm -aspect 4:3 -fpre \"" + presetpath + "\""; |
| 360p webm video settings | media.Width = 640; media.Height = 380; media.Video_Bitrate = 500; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 128; media.OutputExtension = ".webm"; media.VCodec = "libx264"; presetpath = RootPath + "\\ffmpeg\\presets\\libvpx-360p.ffpreset"; media.VCodec = "libvpx"; media.ACodec = "libvorbis"; media.Parameters = "-f webm -aspect 4:3 -fpre \"" + presetpath + "\""; |
| 480p webm video settings | media.Width = 854; media.Height = 480; media.Video_Bitrate = 1000; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 192; media.OutputExtension = ".webm"; media.VCodec = "libx264"; presetpath = RootPath + "\\ffmpeg\\presets\\libvpx-360p.ffpreset"; media.VCodec = "libvpx"; media.ACodec = "libvorbis"; media.Parameters = "-f webm -aspect 4:3 -fpre \"" + presetpath + "\""; |
| 720p webm video settings | media.Width = 1280; media.Height = 720; media.Video_Bitrate = 2200; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 192; media.OutputExtension = ".webm"; media.VCodec = "libx264"; presetpath = RootPath + "\\ffmpeg\\presets\\libvpx-360p.ffpreset"; media.VCodec = "libvpx"; media.ACodec = "libvorbis"; media.Parameters = "-f webm -aspect 4:3 -fpre \"" + presetpath + "\""; |
| 1080p webm video settings | media.Width = 1920; media.Height = 1080; media.Video_Bitrate = 2900; media.Audio_SamplingRate = 44100; media.Audio_Bitrate = 192; media.OutputExtension = ".webm"; media.VCodec = "libx264"; presetpath = RootPath + "\\ffmpeg\\presets\\libvpx-360p.ffpreset"; media.VCodec = "libvpx"; media.ACodec = "libvorbis"; media.Parameters = "-f webm -aspect 4:3 -fpre \"" + presetpath + "\""; |
| mp3 audio settings | media.DisableVideo = true; media.Channel = 2; media.Audio_SamplingRate = 4800; media.Audio_Bitrate = 192; media.OutputExtension = ".mp3"; |