ASF File duration

From: Avnish (Avnish_at_discussions.microsoft.com)
Date: 09/16/04


Date: Thu, 16 Sep 2004 03:43:02 -0700

Hi,

I have created a Filter that acts like asf writer but the difference is it
switches files.

My graph goes like this:

Capture Source-----> My Timestamp Filter (Transform Filter)----> My ASF File
writer.

The filter uses Windows Media Format for writing the ASF file.
Lets say the writing process is done by a class name CEncode. This class has
a sink that actually writes to file.

In the Filter, I create two instances of CEncode class and start writing to
first one.

As soon as the desired number of video frames are written(1 min file we have
1500 frames in pal) I start writing to the other instance of the CEncode
class and previous one I close previous sink and reopen a new sink.

I have instructed the capture device to provide audio sample at a time of 40
millisecond.

Now when a file is created, I get the video stream length through IMediaDet,
that some times gives me
1500, 1502, 1499, etc.

I am passing the timestamps that are coming to me through Capture device.

If I do provide the writer timestamps from zero every time it switches then
audio/video goes out of sink.
 
Avnish.



Relevant Pages

  • John McGahern Article in todays Observer
    ... Now Ireland's greatest fiction ... 'One thing you find out while writing a memoir,' says John McGahern, ... of a Soho bar listening to Ireland's greatest living writer of fiction ...
    (soc.culture.irish)
  • Writing an article Re: Authoring an article for publishing
    ... PS I hope I don't sound insufferably snotty, John, but after you ... No real writer calls himself an author, ... >> be quite different than writing an engineering report or a sales ... > magazines seeking entertaining writers. ...
    (rec.audio.tubes)
  • Re: Lies I Have Told In Usenet
    ... because I am not one of those who hates writing but enjoys having written ... your forgiveness as I am a great fan of your important usenet posts wherein ... it was the writer Elliot Gould who said "good artists steal and good artist ...
    (misc.writing)
  • inuitive writing - a suggestion...
    ... writing and its problems. ... writing and reading as we know it today - is ... the idea to get lost in translation, because the thought of the writer ... are three divergent versions - the writer, the text, and the reader, ...
    (sci.lang)
  • Re: [For Ray] Re: Writing for sale
    ... I'm not a writer, so writing "badly" is a given. ... Professionally there was always professional help, ... not point out the misplaced comma, missing comma, and so forth that ...
    (misc.writing)