Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gmfbridge dynamic clip loading /take 2

21 views
Skip to first unread message

joreg

unread,
Oct 6, 2009, 7:07:55 PM10/6/09
to
helos,

following up on my thread here:
http://groups.google.com/group/microsoft.public.win32.programmer.directx.video/browse_thread/thread/5f450cebdea68c5a#
i am still not there (i.e. still my playing clip jitters for some
frames when i load another one in a separate thread) but closer: when
i preload a series of clips and only switch between them i don't get
the jitter.

i found that the jitter seems to come from the .Prime() call (even
when called within the clip-loading thread). i.e. when i don't prime a
newly loaded clip there is no jitter (but obviously i also don't see
the file play then..). but also it seems that the prime call on the
new clip only seems to cause jitter if i remove the old clip (after
switching to the new clip). if i don't remove the clip it seems at
least much less jittery. is there anything i need to be aware of when
removing a clip?

now:
- in the working case (preloaded clips) i prime the new clip just
before switching to it. no jitter there.
- in the non working case (switch to the newly loaded clip as soon as
it finished loading) the jitter occurs no matter if i prime within the
clip-loading thread or just before switching to the clip (as in the
working case)
else there is not much difference between those cases..

also i must add that with the gmfbridge-play sample there is no jitter
ever, even when loading a new clip via fileopendialog while another is
playing. and there are no threads involved during loading, right?

so was there a question yet? my rambling shows i am quite stuck here
and am hoping that by reading my observations someone sees i am just
missing something obvious or has an idea how i could debug this
further.

thanks
joreg.

joreg

unread,
Oct 17, 2009, 10:19:34 AM10/17/09
to
helo again,

still stuck, but at least with a question:
concerning removing a clip from the list i read here:
http://social.msdn.microsoft.com/Forums/en/windowsdirectshowdevelopment/thread/2b3fafcf-75e5-4244-b530-cb8f353f9b6d

"remove from the list the ClipEntry that you no longer want. If it is
currently playing, you'll need to seek forward to the next entry. Do
that in a thread-safe manner and you should be done."
could you please elaborate on "seeking forward to the next clip" and
"removing it from the list in a threadsafe manner"?

is it ok, to remove the clip that was just playing immediately after a
call to .BridgeGraphs() with a new clip? would that bridging to a new
clip equal the "seeking fwd to the next clip"? and how would i remove
the clip in a threadsafe manner?

thanks,
joreg.

0 new messages