// setting and getting the preferred MPEG-2 splitter
#define MPEG2_SPLITTER L"@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\\{3AE86B20-7BE8-11D1-ABE6-00A0C905F375}"
HRESULT GetConvertPreferedMPEG2Splitter(IltmmConvert *pConvert)
{
BSTR bstr;
// try to get the preferred mpeg2 splitter name
HRESULT hr = pConvert->get_PreferredMPEG2Splitter(&bstr);
// if we are not currently using the mpeg2 splitter, set it as preferred
if (SUCCEEDED(hr) && wcscmp(MPEG2_SPLITTER, bstr) != 0)
hr = pConvert->put_PreferredMPEG2Splitter(MPEG2_SPLITTER);
// free the bster
SysFreeString(bstr);
return hr;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document