Is there away to avoid the pause when a wmv file is looped?
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Is there away to avoid the pause when a wmv file is looped?

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
kcamhi
Guest





Posted: Wed Dec 21, 2005 9:30 pm    Post subject: Is there away to avoid the pause when a wmv file is looped? Reply with quote

I'm trying to create video segments that seamlessly repeat (e.g. bouncing
ball).

But when I play a WMV file in WMP10, it has a noticeable pause at the end of
each play of the video file. Is this a known problem? Is there a way around
it?

Thanks,

Back to top
Jeremy Noring
Guest





Posted: Thu Dec 22, 2005 1:30 am    Post subject: RE: Is there away to avoid the pause when a wmv file is loop Reply with quote

"kcamhi" wrote:

Quote:
Thanks Jeremy

One interesting thing -- when encoded using Indeo instead of as a WMV, this
pause didn't happen.

Any idea what that would be attributed to?

It's hard to say. Internally, WMP uses directshow to render, so there's a
different filter chain for Indeo verses WMV (and from my understanding, WMP
uses a custom source filter for WMV files that isn't available via
directshow, so it's difficult to say). I'd guess that the Indeo filters
simply restart from the beginning, while the filters for the WMV file reload
the file from disk.

That being said, it's all speculation on my part, so....someone may have
some other insight into the issue.

--
My Site (under construction): http://deepsea.no-ip.com/AV/
Back to top
kcamhi
Guest





Posted: Thu Dec 22, 2005 1:30 am    Post subject: RE: Is there away to avoid the pause when a wmv file is loop Reply with quote

Thanks Jeremy

One interesting thing -- when encoded using Indeo instead of as a WMV, this
pause didn't happen.

Any idea what that would be attributed to?



"Jeremy Noring" wrote:

Quote:
"kcamhi" wrote:

I'm trying to create video segments that seamlessly repeat (e.g. bouncing
ball).

But when I play a WMV file in WMP10, it has a noticeable pause at the end of
each play of the video file. Is this a known problem? Is there a way around
it?

I don't know of any way to have that not happen with the Windows Media
Player; by design, I think it simply reloads the file when looping.

The only way to do it that comes to mind is writing a custom directshow
source filter, but that's quite a bit more work. I'm sure there's other
ways, but windows media player (AFAIK) doesn't have any simple fix for that
particular problem.

--
My Site (under construction): http://deepsea.no-ip.com/AV/


Back to top
Jeremy Noring
Guest





Posted: Thu Dec 22, 2005 1:30 am    Post subject: RE: Is there away to avoid the pause when a wmv file is loop Reply with quote

"kcamhi" wrote:

Quote:
I'm trying to create video segments that seamlessly repeat (e.g. bouncing
ball).

But when I play a WMV file in WMP10, it has a noticeable pause at the end of
each play of the video file. Is this a known problem? Is there a way around
it?

I don't know of any way to have that not happen with the Windows Media
Player; by design, I think it simply reloads the file when looping.

The only way to do it that comes to mind is writing a custom directshow
source filter, but that's quite a bit more work. I'm sure there's other
ways, but windows media player (AFAIK) doesn't have any simple fix for that
particular problem.

--
My Site (under construction): http://deepsea.no-ip.com/AV/
Back to top
kcamhi
Guest





Posted: Thu Dec 22, 2005 5:30 pm    Post subject: RE: Is there away to avoid the pause when a wmv file is loop Reply with quote

It appears this you got it exactly right.

I set up in directshow and implemented looping by having the endofstream
event trigger a reposition to the beginning of the stream.

This loops wmv's without the pause.

Thanks for the help!

"Jeremy Noring" wrote:

Quote:
"kcamhi" wrote:

Thanks Jeremy

One interesting thing -- when encoded using Indeo instead of as a WMV, this
pause didn't happen.

Any idea what that would be attributed to?

It's hard to say. Internally, WMP uses directshow to render, so there's a
different filter chain for Indeo verses WMV (and from my understanding, WMP
uses a custom source filter for WMV files that isn't available via
directshow, so it's difficult to say). I'd guess that the Indeo filters
simply restart from the beginning, while the filters for the WMV file reload
the file from disk.

That being said, it's all speculation on my part, so....someone may have
some other insight into the issue.

--
My Site (under construction): http://deepsea.no-ip.com/AV/
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB