Conversion can be:
Empty for no conversion.
An integer for a preset conversion. This is the current table:
enum TYPES
{
FIRST = -1, // start
NONE = -1,
// audio uncompressed
AUDIO_UNCOMPRESSED_STREAMING=0,
AUDIO_UNCOMPRESSED_STREAMING_L16_NO_HEADER=1,
AUDIO_UNCOMPRESSED_STREAMING24BIT=25,
AUDIO_UNCOMPRESSED_STREAMING_L24_NO_HEADER=27,
// audio compressed
AUDIO_MP3_LOW_BANDWIDTH_STREAMING=2,
AUDIO_MP3_MEDIUM_BANDWIDTH_STREAMING=3,
AUDIO_MP3_HIGH_BANDWIDTH_STREAMING=4,
AUDIO_CUSTOM=22,
// image
IMAGE_JPG_640_BY_480=5,
IMAGE_JPG_1280_BY_720=6,
IMAGE_JPG_1920_BY_1080=7,
IMAGE_JPG_2560_BY_1600=8,
// video
VIDEO_MP4_LOW_BANDWIDTH_STREAMING=9,
VIDEO_MP4_MEDIUM_BANDWIDTH_STREAMING=10,
VIDEO_MP4_HIGH_BANDWIDTH_STREAMING=11,
VIDEO_MP2_STREAMING=12,
VIDEO_MP2_LOW_BANDWIDTH_STREAMING=14,
VIDEO_MP2_MEDIUM_BANDWIDTH_STREAMING=15,
VIDEO_MP2_HIGH_BANDWIDTH_STREAMING=16,
VIDEO_MP2_PAL_STREAMING=17,
VIDEO_MP2_PAL_LOW_BANDWIDTH_STREAMING=18,
VIDEO_MP2_PAL_MEDIUM_BANDWIDTH_STREAMING=19,
VIDEO_MP2_PAL_HIGH_BANDWIDTH_STREAMING=20,
VIDEO_AVI_HIGH_BANDWIDTH_STREAMING=21,
VIDEO_FLV_MEDIUM_BANDWIDTH_STREAMING=26,
VIDEO_3GP=32,
VIDEO_WMV_LOW=30,
VIDEO_WMV_MEDIUM=31,
VIDEO_WMV_HIGH=13, // 13 used to be VIDEO_WMV_STREAMING
VIDEO_CUSTOM_FFMPEG=24, // 24 used to be VIDEO_CUSTOM
VIDEO_CUSTOM_WMV=29,
VIDEO_MP2_DVD_NTSC_MPEG2_AUDIO=33,
VIDEO_MP2_DVD_PAL_MPEG2_AUDIO=34,
VIDEO_MP4TS_LOW_BANDWIDTH_STREAMING=35,
VIDEO_MP4TS_MEDIUM_BANDWIDTH_STREAMING=36,
VIDEO_MP4TS_HIGH_BANDWIDTH_STREAMING=37,
};
A simple string for a few presets (these adapt based on resolution, etc. so aren't as fixed as the values above):
#define MEDIA_FILE_SERVER_CONVERSION_WEB_PLAY _T("WebPlay")
#define MEDIA_FILE_SERVER_CONVERSION_DVD_READER _T("DVD Reader")
#define MEDIA_FILE_SERVER_CONVERSION_ANDROID _T("Android")