Adding metadata to a video stream
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Adding metadata to a video stream

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK
Author Message
Doug Bailey
Guest





Posted: Sat Sep 18, 2004 2:36 am    Post subject: Adding metadata to a video stream Reply with 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
Geoff Dunbar [MSFT]
Guest





Posted: Mon Sep 20, 2004 10:48 pm    Post subject: Re: Adding metadata to a video stream Reply with 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...
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 Reply with 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>...
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 Reply with quote

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
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> SDK All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB