INTERACT FORUM

Windows => Plug-in Development => Topic started by: GrantDG on November 16, 2011, 05:46:06 pm

Title: MCWS - File/GetFile method
Post by: GrantDG on November 16, 2011, 05:46:06 pm
Seems like I've been asking questions which are going into the "too hard" basket of late... see how I go with this one...

The File/GetFile 'method' has some parameters which I'm not sure of how to populate. Can anyone tell me how to supply, and what are the valid values for:


Any help appreciated
Title: Re: MCWS - File/GetFile method
Post by: JimH on November 16, 2011, 06:41:42 pm
For resolution, try the resolutions of the images.   1024x768, for example.
Title: Re: MCWS - File/GetFile method
Post by: GrantDG on November 16, 2011, 09:01:57 pm
I'm more interested in audio conversion at the moment - I imagine that the conversion parameters are specific to the output format, but I'm not sure how they get specified...
Title: Re: MCWS - File/GetFile method
Post by: sgomes on August 25, 2012, 06:10:13 am
I'd love to get some more details on the "conversion" parameter as well.
Title: Re: MCWS - File/GetFile method
Post by: Matt on September 17, 2012, 02:30:13 pm
Conversion can be:

Empty for no conversion.

An integer for a preset conversion.  This is the current table:
Code: [Select]
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):
Code: [Select]
#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")