Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: IWMWriter Append?

HTVi
TV Discussion Newsgroups

IWMWriter Append?
dl0haus 6/21/2007 8:19:01 PM
I'm using IWMWriter to write a stream to a file. What I was curious about is
the ability to append. In my scenario, we'll have a stream go down for
various reasons. When it restarts, if I use the same filename for output,
will it append to that file or will it overwrite it?

I'm assuming that if it appends to the existing file and its just raw ASF
data and it can be indexed afterwards with no problems?

Is this the case or am I going to have to perform some kind of write on
another filename, somehow concatenating the files after download and then
indexing?

THanks!
D
Re: IWMWriter Append?
"Alessandro Angeli" <nobody[ at ]nowhere.in.the.net> 6/22/2007 1:12:11 PM
From: "dl0haus"

[Quoted Text]
> I'm using IWMWriter to write a stream to a file. What I
> was curious about is the ability to append. In my
> scenario, we'll have a stream go down for various
> reasons. When it restarts, if I use the same filename
> for output, will it append to that file or will it
> overwrite it?
>
> I'm assuming that if it appends to the existing file and
> its just raw ASF data and it can be indexed afterwards
> with no problems?
>
> Is this the case or am I going to have to perform some
> kind of write on another filename, somehow concatenating
> the files after download and then indexing?

Since ASF is a structured format, the WMWriter will always
create a new file, overwriting a previous one. If you want
to append new data, you need to either copy the old file's
data to the new file before writing the new data or stitch
the files afterwards.


--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// mvpnews at riseoftheants dot com
// http://www.riseoftheants.com/mmx/faq.htm


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen