Custom Writer Sink - Looking for class implementing INSSBuffer

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Joe (Joe_at_discussions.microsoft.com)
Date: 09/25/04


Date: Sat, 25 Sep 2004 13:15:04 -0700

I'm trying to write a custom writer sink for writing to files. The reason
I'm trying to do this is to be able to write to successive files without
losing frames while not interrupting broadcasting. I'd been using the
encoder sdk, but this doesn't seem possible. This also doesn't seem to be
possible using the format sdk without using multiple writers, which is a
performance hit I don't want to take. So if you think I'm taking the wrong
path or doing unnecessary work, please let me know.

My problem:
I've written my file sink. I'm writing the buffers I get back from OnHeader
and OnDataUnit to a file. When I open the file using Windows Media Player, I
get an error saying something like the format and the file extension don't
match. I assume this means that the header is invalid. So either the format
sdk is screwed up(not likely), my class that implements INSSBuffer is screwed
up(probably), or my understanding is wrong. Would someone be willing to
provide me with a complete C++ sample of a class that implements INSSBuffer,
so I can try to plug that in? I'd really appreciate it.



Relevant Pages

  • Re: Flash memory formating - Mac/Windows?
    ... For the format test, I used Disk Utility. ... 1:23.98 - immediately after writing the files ... 0:01.11 - the second time after the re-insert ... MS-DOS file system (FAT32) ...
    (comp.sys.mac.system)
  • Re: DVD / DVD+R /DVD-R / DVDRW. Are they all really distinct media
    ... lots of dusty disks: it rejects many once-used disks as unreadable. ... What's the best way to figure out what format my Laptop supports? ... Are these distinctions only relevant when writing disks at home as ... A little more complex is the difference between the '-' discs and '+' ...
    (microsoft.public.windowsxp.hardware)
  • Re: Build a better mousetrap ...
    ... I was recently involved in two books (technical reference, ... all writing is required to be submitted to the ... publisher in Microsoft Word format. ... How much less money are you willing to make to support ...
    (rec.arts.sf.written)
  • Re: C Program Portability
    ... Now, since this is a binary file, any transfer is likely to ... that any code writing data as a binary file needs to be adapted for the ... It's more that if you are dealing with reading, processing, writing a ... binary format (say, doing some image processing on a greyscale image ...
    (comp.lang.c)
  • Re: Frustration: working with collaborators in Word..
    ... So, writing collaboratively ... As well, he's pressuring collaboration with ... I need to write in LaTeX, as I believe it's output is far superior to ... Convert back and forth into a word-compatible format (hopefully ...
    (comp.text.tex)