Tobia Quantrill
Guest
|
Posted:
Thu Sep 09, 2004 12:35 pm Post subject:
Playing Files from a Network Source |
|
|
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
|
|
Chris P. [MVP]
Guest
|
Posted:
Fri Sep 10, 2004 12:13 am Post subject:
Re: Playing Files from a Network Source |
|
|
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. |
|