Haali Matroska Muxer Usage

Angie Tseng <[email protected]> Wed, 18 Jun 2014 16:41:26 +0800
Newsgroups gmane.comp.multimedia.matroska.user
Message-ID <CAMSVZ4zVJE_m9zvQRDyc8EXofWGxZC=Ke=Vsf-OHyL9fjYQtUQ@mail.gmail.com>
Hi,

I am trying to use Haali Matroska Muxer for creating MKV files, but
following issues are met. Could you please help advice? Thank you.

1. No output file is created. After query interface IFileSinkFilter from
muxer and set file name with the interface, the return value is S_OK but no
file is created.
Here is the code segment:

hr = CoCreateInstance(Haali_Matroska_Muxer, NULL, CLSCTX_INPROC_SERVER,
IID_IBaseFilter, (void **)&m_pMuxer);
if(FAILED(hr))
return;

// set output file name
hr = m_pMuxer->QueryInterface(IID_IFileSinkFilter, (void **)&m_FileSink);
if(FAILED(hr))
return;

WCHAR wFile[MAX_PATH];
MultiByteToWideChar(CP_ACP, 0, szSaveFileName, -1, wFile, MAX_PATH);

hr = m_FileSink->SetFileName(wFile, NULL);
if(FAILED(hr))
return;

// add muxer
hr = m_pGBuilder->AddFilter(m_pMuxer, L"Muxer");
if(FAILED(hr))
return;

2. Deliver sample failed with error code E_NOTIMPL
    When the upstream output pin of Haali Matroska Muxer calls
CBaseOutputPin::Deliver to sent samples to muxer, the return value is
E_NOTIMPL.

Best Regards,
Angie Tseng

_______________________________________________
Matroska-users mailing list
[email protected]
http://lists.matroska.org/cgi-bin/mailman/listinfo/matroska-users
Read Matroska-Users on GMane: http://dir.gmane.org/gmane.comp.multimedia.matroska.user