Re: Adding metadata to a video stream

From: Geoff Dunbar [MSFT] (geoffdu_at_online.microsoft.com)
Date: 09/27/04


Date: Mon, 27 Sep 2004 13:30:37 -0700

I have two answers for you, one good and one bad:

If you're using the Windows Media Format SDK to retrieve the samples, it is
quite easy to extract the data. The extension is indicated in the profile
from the reader (same place you set it), and the extension data is on each
sample (same place you wrote it).

If you're using the Windows Media Player, I don't know of any way to
retrieve the data.

Geoff

-- 
This posting is provided "AS IS" with no warranties, and confers no rights.
"Doug Bailey" <dbailey@radiancetech.com> wrote in message
news:f3fc35b2.0409210814.5accaf29@posting.google.com...
> Thanks for the information!  It was all very simple to add the data
> unit extension and insert it into the data stream.  (6 lines of code)
>
> Now my problem comes with trying to extract the data.  I cannot see
> anything simple that pulls the data extension.  I do see references
> where I may need to generate my own plugin for the receiver to pull
> the data out.  Is this true or am I missing something?
>
> Are there any good examples of generating plugins?
>
> I appreciate your patience.
> Regards,
> Doug Bailey
>
> "Geoff Dunbar [MSFT]" <geoffdu@online.microsoft.com> wrote in message
news:<e5SV6J0nEHA.556@tk2msftngp13.phx.gbl>...
> > You can attach some data to each video frame using Data Unit Extensions.
I
> > don't see any really good documentation on this, but the basic idea is:
> >
> > * Modify the profile to describe the data unit extension using the
> > IWMStreamConfig2::AddDataUnitExtension method (for the video stream).
> > * For the video samples, call INSSBuffer3::SetProperty to set the data
unit
> > extension.
> >
> > The section in the docs "Writing Streams with Non-Square Pixels" has
> > documentation which describes this process as well.
> >
> > Hopefully you can make progress with that.
> >
> > Thanks,
> > Geoff
> >
> > -- 
> > This posting is provided "AS IS" with no warranties, and confers no
rights.
> >
> >
> > "Doug Bailey" <dbailey@radiancetech.com> wrote in message
> > news:f3fc35b2.0409171436.697d5a33@posting.google.com...
> > > I am passing video between 2 PC's using the Windows Media Format SDK
> > > to encode the video into a MPEG4 stream.  I want to tag the video
> > > frames with some camera positional information so that the receiver
> > > can know the reference of the video frame.
> > >
> > > My first thought in doing this was to find a way to add a metadata
> > > path along with the video field but do not have a clue as to how I do
> > > this.
> > >
> > > Does anyone have any ideas or references where I may want to look at?
> > >
> > > Any help is deeply appreciated.
> > >
> > > - Doug Bailey


Relevant Pages

  • Re: error downloading codec
    ... Then, look at the file, and post what the file extension is. ... you are sure that its a Windows Media ... Replies are to help benefit others in helping ... This is a homemade DVD? ...
    (microsoft.public.windowsmedia.player)
  • Re: Adding Video to FrontPage
    ... extension name. ... Use Windows Media Encoder to convert the mpeg2 file to a wmv ... curiosity I tried adding the MPEG video to the web page, ... No video showed up and I had to right click on the ...
    (microsoft.public.frontpage.programming)
  • Re: Windows Media Player
    ... >I see about associated file types: I notice MPEG is strictly for QUICK TIME. ... It ends in extension with 4 letters. ... Control Panel applet uncheck the MPEG there, and then in Windows Media ...
    (microsoft.public.windowsxp.general)
  • Re: Retieve the Size of my app (or the Name)
    ... while retrieving the "extension" ... To retrieve the app name ... and the size will be different and I stop executing the app, ...
    (microsoft.public.vb.winapi)
  • Re: Generated javascript from .pl files
    ... Bart Van der Donck wrote: ... but it seems to me that trying to retrieve a ... retrieving one with a .pl extension. ...
    (comp.lang.javascript)