Playing Files from a Network Source
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
Playing Files from a Network Source

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





Posted: Thu Sep 09, 2004 12:35 pm    Post subject: Playing Files from a Network Source Reply with quote

First, this is not a question. I'm simply looking forward to some
suggestions.
I'm working on software for playback. Video and audio are totally separated.
So, when I play *.wmv file, video library reads only video stream, and audio
library only audio stream. It works fine for the files. Now, I have to add
support for playing files from a network source. At the moment, I don't have
any ideas on how to do it. If I'll be reading each stream separately as with
local files, how could I maintain the A/V sync, because I can't read faster
then real-time in this case. Timestamps will start from zero in both
readings (two async readers), but the readings themselves will not start at
the same time etc..etc...

TIA

Back to top
Chris P. [MVP]
Guest





Posted: Fri Sep 10, 2004 12:13 am    Post subject: Re: Playing Files from a Network Source Reply with quote

Tobia Quantrill wrote:
Quote:
First, this is not a question. I'm simply looking forward to some
suggestions.
I'm working on software for playback. Video and audio are totally
separated. So, when I play *.wmv file, video library reads only video
stream, and audio library only audio stream. It works fine for the
files. Now, I have to add support for playing files from a network
source. At the moment, I don't have any ideas on how to do it. If
I'll be reading each stream separately as with local files, how could
I maintain the A/V sync, because I can't read faster then real-time
in this case. Timestamps will start from zero in both readings (two
async readers), but the readings themselves will not start at the
same time etc..etc...

What I've done before, which only had moderate success, was to create a
filter that sat before both renders. This filter using a custom interface
compared the relative timestamps between the audio and video stream (with an
adjustable offset) and adjusted the video stream timestamps to compensate
for sink.
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