AVBlocks for C++  1.19
Audio and Video Software Development Kit
primo::avblocks::Preset Namespace Reference

Defines output presets supported by AVBlocks. More...

Namespaces

 Audio
 Describes output audio presets structured by codec and device type.
 
 Video
 Describes output video presets structured by codec and device type.
 

Variables

static const char AAC [] = "aac"
 AAC stream in ADTS format, stereo, 128 kbps.
 
static const char AndroidPhone_H264_360p [] = "android-phone.mp4.h264.360p"
 Video: H264 Baseline Profile, 30 fps, 480 x 360, 800 kbps
Audio: AAC, 48000 Hz, stereo, 128 kbps
Container: MP4.
 
static const char AndroidPhone_H264_720p [] = "android-phone.mp4.h264.720p"
 Video: H264 Baseline Profile, 30 fps, 1280 x 720, 2000 kbps
Audio: AAC, 48000 Hz, stereo, 128 kbps
Container: MP4.
 
static const char AndroidTablet_H264_720p [] = "android-tablet.mp4.h264.720p"
 Video: H264 Baseline Profile, 30 fps, 1280 x 720, 4000 kbps
Audio: AAC, 48000 Hz, stereo, 192 kbps
Container: MP4.
 
static const char AndroidTablet_WebM_VP8_720p [] = "android-tablet.webm.vp8.720p"
 Video: VP8, 30 fps, 1280 x 720, 4000 kbps
Audio: Vorbis, 48000 Hz, stereo, 192 kbps
Container: WebM.
 
static const char AppleLiveStreaming_H264_480p [] = "apple.ts.h264.480p"
 Video: H.264 Baseline Profile L3.1, 29.97 fps, 640 x 480, 1200 kbps
Audio: AAC, 48000 Hz, stereo, 96 kbps
Container: MPEG Transport Stream
Optimized for Apple Live Streaming.
 
static const char AppleLiveStreaming_H264_720p [] = "apple.ts.h264.720p"
 Video: H.264 Main Profile L3.1, 29.97 fps, 1280 x 720, 5000 kbps
Audio: AAC, 48000 Hz, stereo, 128 kbps
Container: MPEG Transport Stream
Optimized for Apple Live Streaming.
 
static const char AppleTV2G_MP4_H264_720p [] = "appleTV2g.mp4.h264.720p"
 Video: H264, 30 fps, 1280x720, bitrate 5000 kbps, profile Main, aspect 16:9, Level 3.1 Audio: AAC, 48000 Hz, stereo, bitrate 160 kbps.
 
static const char AppleTV3G_MP4_H264_1080p [] = "appleTV3g.mp4.h264.1080p"
 Video: H264, 30 fps, 1920x1080, bitrate 5000 kbps, profile High, aspect 16:9, Level 4 Audio: AAC, 48000 Hz, stereo, bitrate 160 kbps.
 
static const char AppleTV_H264_480p [] = "appletv.h264.480p"
 Video: H.264, 24 fps, 640 x 480, 1500 kbps
Audio: AAC, 48000 Hz, stereo, 48 kbps
Container: MP4
Optimized for Apple TV, 1st generation.
 
static const char AppleTV_H264_720p [] = "appletv.h264.720p"
 Video: H.264, 24 fps, 1280 x 720, 4000 kbps
Audio: AAC, 48000 Hz, stereo, 48 kbps
Container: MP4
Optimized for Apple TV, 2nd generation.
 
static const char AppleTV_MPEG4_480p [] = "appletv.mpeg4.480p"
 Video: MPEG-4 Visual, 24 fps, 640 x 480, 2000 kbps
Audio: AAC, 48000 Hz, stereo, 48 kbps
Container: MP4
Optimized for Apple TV, 1st generation.
 
static const char BDAV_H264_1280x720_2398p_PCM [] = "bdav-h264-1280x720-23.976p-pcm"
 Video: H.264, 1280 x 720, 23.976 fps progressive, aspect ratio 16:9, 15000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char BDAV_H264_1280x720_24p_PCM [] = "bdav-h264-1280x720-24p-pcm"
 Video: H.264, 1280 x 720, 24 fps progressive, aspect ratio 16:9, 15000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char BDAV_H264_1280x720_50p_PCM [] = "bdav-h264-1280x720-50p-pcm"
 Video: H.264, 1280 x 720, 50 fps progressive, aspect ratio 16:9, 15000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char BDAV_H264_1280x720_5994p_PCM [] = "bdav-h264-1280x720-59.94p-pcm"
 Video: H.264, 1280 x 720, 59.94 fps progressive, aspect ratio 16:9, 15000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char BDAV_H264_1440x1080_2398p_PCM [] = "bdav-h264-1440x1080-23.976p-pcm"
 Video: H.264, 1440 x 1080, 23.976 fps progressive, aspect ratio 16:9, 25000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char BDAV_H264_1440x1080_24p_PCM [] = "bdav-h264-1440x1080-24p-pcm"
 Video: H.264, 1440 x 1080, 24 fps progressive, aspect ratio 16:9, 25000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char BDAV_H264_1440x1080_50i_PCM [] = "bdav-h264-1440x1080-50i-pcm"
 Video: H.264, 1440 x 1080, 50 fps interlaced, aspect ratio 16:9, 25000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char BDAV_H264_1440x1080_5994i_PCM [] = "bdav-h264-1440x1080-59.94i-pcm"
 Video: H.264, 1440 x 1080, 59.94 fps interlaced, aspect ratio 16:9, 25000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char BDAV_H264_1920x1080_2398p_PCM [] = "bdav-h264-1920x1080-23.976p-pcm"
 Video: H.264, 1980 x 1080, 23.976 fps progressive, aspect ratio 16:9, 25000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char BDAV_H264_1920x1080_24p_PCM [] = "bdav-h264-1920x1080-24p-pcm"
 Video: H.264, 1980 x 1080, 24 fps progressive, aspect ratio 16:9, 25000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char BDAV_H264_1920x1080_50i_PCM [] = "bdav-h264-1920x1080-50i-pcm"
 Video: H.264, 1980 x 1080, 50 fps interlaced, aspect ratio 16:9, 25000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char BDAV_H264_1920x1080_5994i_PCM [] = "bdav-h264-1920x1080-59.94i-pcm"
 Video: H.264, 1980 x 1080, 59.94 fps interlaced, aspect ratio 16:9, 25000 kbps
Audio: LPCM, 48000 Hz, 16-bit
Container: BDAV MPEG2 Transport Stream (m2ts)
 
static const char DVD_NTSC_16x9_MP2 [] = "dvd.ntsc.16x9.mp2"
 Video: MPEG-2, 29.97 fps, 720 x 480, aspect 16:9
Audio: MPEG-1 Layer 2, 48000 Hz, stereo.
 
static const char DVD_NTSC_16x9_PCM [] = "dvd.ntsc.16x9.pcm"
 Video: MPEG-2, 29.97 fps, 720 x 480, aspect 16:9
Audio: PCM, 16-bit, 48000 Hz, stereo.
 
static const char DVD_NTSC_4x3_MP2 [] = "dvd.ntsc.4x3.mp2"
 Video: MPEG-2, 29.97 fps, 720 x 480, aspect 4:3
Audio: MPEG-1 Layer 2, 48000 Hz, stereo.
 
static const char DVD_NTSC_4x3_PCM [] = "dvd.ntsc.4x3.pcm"
 Video: MPEG-2, 29.97 fps, 720 x 480, aspect 4:3
Audio: PCM, 16-bit, 48000 Hz, stereo.
 
static const char DVD_PAL_16x9_MP2 [] = "dvd.pal.16x9.mp2"
 Video: MPEG-2, 25 fps, 720 x 576, aspect 16:9
Audio: MPEG-1 Layer 2, 48000 Hz, stereo.
 
static const char DVD_PAL_4x3_MP2 [] = "dvd.pal.4x3.mp2"
 Video: MPEG-2, 25 fps, 720 x 576, aspect 4:3
Audio: MPEG-1 Layer 2, 48000 Hz, stereo.
 
static const char Generic_MP4_H264_1080p [] = "generic.mp4.h264.1080p"
 Video: H264, 29.97 fps, 1920x1080, bitrate 5400 kbps, profile Baseline, aspect 16:9, Level 4 Audio: AAC, 44100 Hz, stereo, bitrate 160 kbps.
 
static const char Generic_MP4_H264_240p [] = "generic.mp4.h264.240p"
 Video: H264, 15 fps, 320x240, bitrate 300 kbps, profile Baseline, aspect 4:3, Level 1.3 Audio: AAC, 22050 Hz, stereo, bitrate 64 kbps.
 
static const char Generic_MP4_H264_360p [] = "generic.mp4.h264.360p"
 Video: H264, 29.97 fps, 480x360, bitrate 600 kbps, profile Baseline, aspect 4:3, Level 3 Audio: AAC, 44100 Hz, stereo, bitrate 128 kbps.
 
static const char Generic_MP4_H264_480p [] = "generic.mp4.h264.480p"
 Video: H264, 29.97 fps, 640x480, bitrate 900 kbps, profile Baseline, aspect 4:3, Level 3 Audio: AAC, 44100 Hz, stereo, bitrate 128 kbps.
 
static const char Generic_MP4_H264_720p [] = "generic.mp4.h264.720p"
 Video: H264, 29.97 fps, 1280x720, bitrate 2400kbps, profile Baseline, aspect 16:9, Level 3.1 Audio: AAC, 44100 Hz, stereo, bitrate 160 kbps.
 
static const char Generic_MP4_H264_Wide_360p [] = "generic.mp4.h264.wide.360p"
 Video: H264, 29.97 fps, 640x360, bitrate 720 kbps, profile Baseline, aspect 16:9, Level 3 Audio: AAC, 44100 Hz, stereo, bitrate 128 kbps.
 
static const char Generic_MP4_H264_Wide_480p [] = "generic.mp4.h264.wide.480p"
 Video: H264, 29.97 fps, 854x480, bitrate 1200 kbps, profile Baseline, aspect 16:9, Level 3.1 Audio: AAC, 44100 Hz, stereo, bitrate 128 kbps.
 
static const char HDV_M2T_1080i_25p [] = "hdv.m2t.1080i.25p"
 Video: MPEG-2, 25 fps, 1440x1080, aspect ratio 16:9 Audio: MPEG-1 Layer 2, 48000 Hz, stereo, 16bits.
 
static const char HDV_M2T_1080i_30p [] = "hdv.m2t.1080i.30p"
 Video: MPEG-2, 29.97 fps, 1440x1080, aspect ratio 16:9 Audio: MPEG-1 Layer 2, 48000 Hz, stereo, 16bits.
 
static const char HDV_M2T_1080p_24p [] = "hdv.m2t.1080p.24p"
 Video: MPEG-2, 23.976 fps, 1440x1080, aspect ratio 16:9 Audio: MPEG-1 Layer 2, 48000 Hz, stereo, 16bits.
 
static const char HDV_M2T_1080p_25p [] = "hdv.m2t.1080p.25p"
 Video: MPEG-2, 25 fps, 1440x1080, aspect ratio 16:9 Audio: MPEG-1 Layer 2, 48000 Hz, stereo, 16bits.
 
static const char HDV_M2T_1080p_30p [] = "hdv.m2t.1080p.30p"
 Video: MPEG-2, 29.97 fps, 1440x1080, aspect ratio 16:9 Audio: MPEG-1 Layer 2, 48000 Hz, stereo, 16bits.
 
static const char HDV_M2T_720p_24p [] = "hdv.m2t.720p.24p"
 Video: MPEG-2, 23.976 fps, 1280x720, aspect 16:9 Audio: MPEG-1 Layer 2, 48000 Hz, stereo, 16bits.
 
static const char HDV_M2T_720p_25p [] = "hdv.m2t.720p.25p"
 Video: MPEG-2, 25 fps, 1280x720, aspect 16:9 Audio: MPEG-1 Layer 2, 48000 Hz, stereo, 16bits.
 
static const char HDV_M2T_720p_30p [] = "hdv.m2t.720p.30p"
 Video: MPEG-2, 29.97 fps, 1280x720, aspect 16:9 Audio: MPEG-1 Layer 2, 48000 Hz, stereo, 16bits.
 
static const char HDV_M2T_720p_50p [] = "hdv.m2t.720p.50p"
 Video: MPEG-2, 50 fps, 1280x720, aspect 16:9 Audio: MPEG-1 Layer 2, 48000 Hz, stereo, 16bits.
 
static const char HDV_M2T_720p_60p [] = "hdv.m2t.720p.60p"
 Video: MPEG-2, 59.94 fps, 1280x720, aspect 16:9 Audio: MPEG-1 Layer 2, 48000 Hz, stereo, 16bits.
 
static const char iPad_H264_576p [] = "ipad.mp4.h264.576p"
 Video: H.264, 30 fps, 768 x 576, 2500 kbps
Audio: AAC, 48000 Hz, stereo, 128 kbps
Container: MP4
SD quality, optimized for iPad.
 
static const char iPad_H264_720p [] = "ipad.mp4.h264.720p"
 Video: H.264, 30 fps, 1280 x 720, 4000 kbps
Audio: AAC, 48000 Hz, stereo, 128 kbps
Container: MP4
HD quality, optimized for iPad.
 
static const char iPad_MPEG4_480p [] = "ipad.mp4.mpeg4.480p"
 Video: MPEG-4 Visual, 30 fps, 640 x 480, 2500 kbps
Audio: AAC, 48000 Hz, 128 kbps, stereo
Container: MP4
Near SD quality, optimized for iPad.
 
static const char iPhone3GS_MP4_H264_480 [] = "iPhone3gs.mp4.h264.480p"
 Video: H264, 30 fps, 640x480, bitrate 600 kbps, profile Baseline, aspect 4:3, Level 3 Audio: AAC, 48000 Hz, stereo, bitrate 160 kbps.
 
static const char iPhone4_MP4_H264_720p [] = "iPhone4.mp4.h264.720p"
 Video: H264, 30 fps, 1280x720, bitrate 2200 kbps, profile Main, aspect 16:9, Level 3.1 Audio: AAC, 48000 Hz, stereo, bitrate 160 kbps.
 
static const char iPhone4S_MP4_H264_1080p [] = "iPhone4s.mp4.h264.1080p"
 Video: H264, 30 fps, 1920x1080, bitrate 5000 kbps, profile High, aspect 16:9, Level 4.1 Audio: AAC, 48000 Hz, stereo, bitrate 160 kbps.
 
static const char iPhone_H264_480p [] = "iphone.mp4.h264.480p"
 Video: H.264, 25 fps, 640 x 480, 1000 kbps
Audio: AAC, 48000 Hz, stereo, 96 kbps
Container: MP4
Optimized for iPhone.
 
static const char iPhone_MPEG4_480p [] = "iphone.mp4.mpeg4.480p"
 Video: MPEG-4 Visual, 25 fps, 640 x 480, 2000 kbps
Audio: AAC, 48000 Hz, stereo, 96 kbps
Container: MP4
Optimized for iPhone.
 
static const char iPod_H264_240p [] = "ipod.mp4.h264.240p"
 Video: H.264 Baseline Profile, 25 fps, 320 x 240, 300 kbps
Audio: AAC, 48000 Hz, stereo, 64 kbps
Container: MP4
Optimized for iPod.
 
static const char iPod_MPEG4_240p [] = "ipod.mp4.mpeg4.240p"
 Video: MPEG-4 Visual, 25 fps, 320 x 240, 600 kbps
Audio: AAC, 48000 Hz, stereo, 64 kbps
Container: MP4
Optimized for iPod.
 
static const char iPodTouch_MP4_H264_480p [] = "iPodTouch.mp4.h264.480p"
 Video: H264, 30 fps, 640x480, bitrate 1500 kbps, profile Baseline, aspect 4:3, Level 3 Audio: AAC, 48000 Hz, stereo, bitrate 160 kbps.
 
static const char KindleFire_MP4_H264_576p [] = "KindleFire.mp4.h264.576p"
 Video: H264, 30 fps, 1024x576, bitrate 1600 kbps, profile Main, aspect 16:9, Level 3.1 Audio: AAC, 48000 Hz, stereo, bitrate 160 kbps.
 
static const char KindleFireHD_8_9_MP4_H264_720p [] = "KindleFireHD8.9.mp4.h264.720p"
 Video: H264, 30 fps, 1280x720, bitrate 2200 kbps, profile Main, aspect 16:9, Level 4 Audio: AAC, 48000 Hz, stereo, bitrate 160 kbps.
 
static const char M4A_128kbps [] = "mp4.aac.44100hz.128kbps"
 AAC audio stream in MP4 format, 44100 Hz, stereo, 128 kbps Normal (standard) quality.
 
static const char M4A_256kbps [] = "mp4.aac.44100hz.256kbps"
 AAC audio stream in MP4 format, 44100 Hz, stereo, 256 kbps High quality.
 
static const char MP2_DVD [] = "mp2.dvd"
 MPEG-1 Layer 2 audio, 48000Hz (suitable for DVD)
 
static const char MP3_128kbps [] = "mp3.44100hz.128kbps"
 MPEG-1 Layer 3 audio, 44100Hz, stereo, 128 kbps.
 
static const char MP3_256kbps [] = "mp3.44100hz.256kbps"
 MPEG-1 Layer 3 audio, 44100Hz, stereo, 256 kbps.
 
static const char MP4_FAST_H264_AAC [] = "mp4.fast.h264.aac"
 Video: H.264
Audio: AAC
Container: MP4
Does not enforce specific audio and video properties. More...
 
static const char MP4_H264_AAC [] = "mp4.h264.aac"
 Video: H.264
Audio: AAC
Container: MP4
Does not enforce specific audio and video properties.
 
static const char OggVorbis_Q4 [] = "ogg.vorbis.q4"
 Audio: Vorbis, VBR, frequency not explicitly specified, quality 4 (from -1 to 10) Container: Ogg Normal quality VBR with average bitrate close to 128 kbps at 44100 Hz.
 
static const char OggVorbis_Q8 [] = "ogg.vorbis.q8"
 Audio: Vorbis, VBR, frequency not explicitly specified, quality 8 (from -1 to 10) Container: Ogg High quality VBR with average bitrate close to 256 kbps at 44100 Hz.
 
static const char VCD_NTSC [] = "vcd.ntsc"
 Video: MPEG-1, 29.97 fps, 352 x 240, 1100 kbps
Audio: MPEG-1 Layer 2, 44100Hz, stereo, 192 kbps
Container: MPEG Program Stream
VCD NTSC.
 
static const char VCD_PAL [] = "vcd.pal"
 Video: MPEG-1, 25fps, 352 x 288, 1100 kbps
Audio: MPEG-1 Layer 2, 44100Hz, stereo, 192 kbps
Container: MPEG Program Stream
VCD PAL.
 
static const char WAV_AudioCD [] = "wav.audiocd"
 WAV with parameters as in Audio CD (PCM, 44100 Hz, 16-bit, stereo)
 
static const char Web_MP4_H264_720p [] = "Web.mp4.h264.720p"
 Video: H264, 30 fps, 1280x720, bitrate 2200 kbps, profile Main, aspect 16:9, Level 3.1 Audio: AAC, 44100 Hz, stereo, bitrate 160 kbps.
 
static const char WebM_VP8_Vorbis [] = "webm.vp8.vorbis"
 Video: VP8
Audio: Vorbis
Container: WebM
Does not enforce specific audio and video properties.
 
static const char WMA_Lossless [] = "wma.lossless"
 Audio: Windows Media Audio Lossless, 44100 Hz, stereo Container: ASF.
 
static const char WMA_Professional_Q75 [] = "wma.pro.q75"
 Audio: Windows Media Audio Professional, VBR, 44100 Hz, stereo, Quality 75 (0-100)
Container: ASF
Normal quality VBR with average bitrate close to 128 kbps.
 
static const char WMA_Professional_Q90 [] = "wma.pro.q90"
 Audio: Windows Media Audio Professional, VBR, 44100 Hz, stereo, Quality 90 (0-100)
Container: ASF
High quality VBR with average bitrate close to 192 kbps.
 
static const char WMA_Standard_CBR_128kbps [] = "wma.cbr.128kbps"
 Audio: Windows Media Audio Standard, CBR, 44100 Hz, stereo, 128 kbps
Container: ASF

 

Detailed Description

Defines output presets supported by AVBlocks.

Each AVBlocks preset represents a collection of audio and video properties and parameters. It can be used as an easy way to specify the required output of the transcoder.

See Also
Library::createMediaSocket (const char* preset)

Variable Documentation

const char MP4_FAST_H264_AAC[] = "mp4.fast.h264.aac"
static

Video: H.264
Audio: AAC
Container: MP4
Does not enforce specific audio and video properties.

Fastest H.264 encoding options.