Re: Windows Media Services plugin
- From: "Alessandro Angeli" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 2 Dec 2008 17:50:17 -0500
From: "David Eu"
I ran your program on a stream and when I play back the
resulting split files the video freezes up at the
beginning of the files (excluding the first file) and the
I made a dumb mistake with the timestamps. You may want to
try the fixed version I just uploaded.
audio data is missing at the end of each file.
That is by design. The code is format-agnostic, so it splits
whenever it has a chance, which means most likely on an
audio frame, so that you will end up with:
V: ... 3 4 5 6 7 || # # # 8 9...
A: ... 3 4 # # # || 5 6 7 8 9...
No data is lost. Anyway, I added an additional condition to
split on a master stream, which defaults to the first video
stream, if present.
Any insights on how to properly split the stream cleanly
so that no freezing occurs and also wmvappend will be
able to glue them back together again seamlessly?
With the corrected timestamps, there should be no freezing.
Another question: I read in the MSDN docs that on streams
the reader will mark the first stream sample with
WM_SF_DISCONTINUITY. This would mean that each
file F1, F2, F3, etc starts with a discontinuity flag. I
was wondering if this could cause a problem with
wmvappend as that flag then appears in the output file
where each original split was made. Could this be an
issue? If so, how can I eliminate the WM_SF_DISCONTINUITY
flag? Turning it off in the call to WriteStreamSample()
does not seem to help.
WMVAppend already takes care of the WM_SF_DISCONTINUITY. In
any case, a WM_SF_DISCONTINUITY on a sample that is also a
WM_SF_CLEANPOINT (which is the case with my splitter) has no
effect.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm
.
- Prev by Date: VB6 Hangs when adding a reference to the WMP.DLL
- Next by Date: Using a directshow codec called Dicom Media Bridge
- Previous by thread: VB6 Hangs when adding a reference to the WMP.DLL
- Next by thread: Using a directshow codec called Dicom Media Bridge
- Index(es):
Relevant Pages
|