Re: Adding metadata to a video stream
From: Geoff Dunbar [MSFT] (geoffdu_at_online.microsoft.com)
Date: 09/27/04
- Next message: Dan Schullman: "Re: unable to add non-strings with IWMEncAttributes.Add()"
- Previous message: The March Hare [MVP]: "Re: unable to add non-strings with IWMEncAttributes.Add()"
- In reply to: Doug Bailey: "Re: Adding metadata to a video stream"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Dan Schullman: "Re: unable to add non-strings with IWMEncAttributes.Add()"
- Previous message: The March Hare [MVP]: "Re: unable to add non-strings with IWMEncAttributes.Add()"
- In reply to: Doug Bailey: "Re: Adding metadata to a video stream"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|