to linclouds(小鱼儿)
yes, the source can be connectted to mpeg1 splitte.
However,I made another thread
to process data so that the speed can be fast enough
to get 30 frams/s, otherwith, maybe the m$'s filter
cannot support.
(I tried many times and thought speed is the only
reason and MPEG1 standard has requirement on that)
In fact, just delete all
codes of class ball and
anything relates ball,
then, insert your codes to
"reminding shell".
that's all
hope that can answer all questions
I am very busy for fianl so sorry
for late of replying all your guys' emails.
the general ideal is
to finish
1.
HRESULT CVideoStream::GetMediaType(CMediaType *pmt)
just let "pmt" as what sample format you want.
I get it from my source.
2.
HRESULT CVideoStream::DecideBufferSize(IMemAllocator *pAlloc,ALLOCATOR_PROPERTIES *pProperties)
//use
pProperties->cbBuffer = 1024*1024;
3.//msot important...
HRESULT CVideoStream::FillBuffer(IMediaSample *pms)
//copy all your data to IMediaSample
hr = pms->GetPointer(&pBgBuffer);