| Author |
Message |
Doug Bailey
Guest
|
Posted:
Sat Sep 18, 2004 2:36 am Post subject:
Adding metadata to a video stream |
|
|
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
|
|
| Back to top |
|
 |
Geoff Dunbar [MSFT]
Guest
|
Posted:
Mon Sep 20, 2004 10:48 pm Post subject:
Re: Adding metadata to a video stream |
|
|
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...
| Quote: | 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 |
|
|
| Back to top |
|
 |
Doug Bailey
Guest
|
Posted:
Tue Sep 21, 2004 8:14 pm Post subject:
Re: Adding metadata to a video stream |
|
|
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>...
| Quote: | 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 |
|
|
| Back to top |
|
 |
Geoff Dunbar [MSFT]
Guest
|
Posted:
Tue Sep 28, 2004 12:30 am Post subject:
Re: Adding metadata to a video stream |
|
|
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...
| Quote: | 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 |
|
|
| Back to top |
|
 |
|
|
|
|