Re: How to store additional data with A/V?
- From: "Alessandro Angeli [MVP::DS/MF]" <nobody@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 23 Jul 2006 19:37:50 +0200
Yango wrote:
I have audio, video, and additional camera motion data
inputs.
I want to capture the A/V inputs and encode them with
commercial codecs like MPEG-2, and store the additional
data together with the A/V stream.
I searched for the way to store the additional data in
the AVI file structure, but there were only "vids" and
"auds" stream types. If I store the data as an audio
stream, later it will be played as audio, so I think it's
not a good solution.
If I store the data in a separate file, it'll be very
difficult to synchronize the data with A/V when they are
cut and edited.
What could be the best way for this purpose?
I searched the web and the usenet for similar
applications, and couldn't find one.
The additional camera motion data is about 40 bytes per
each field (80 bytes/frame).
The easiest way using stock components provided in Windows
is to use ASF as file format instead of AVI or MPEG. You can
mux to ASF anything you can mux to AVI and even MPEG2 video
(but it's not as easy). Using ASF, you can store metadata as
a script stream, scripts in the header (after writing is
finished) or data unit extensions and the writer will take
care of keeping them in sync with the actual audio/video
streams.
--
// Alessandro Angeli
// MVP :: DirectShow / MediaFoundation
// a dot angeli at psynet dot net
.
- References:
- How to store additional data with A/V?
- From: Yango
- How to store additional data with A/V?
- Prev by Date: Re: How can i send video streams over tcp ip ?
- Next by Date: Re: How to store additional data with A/V?
- Previous by thread: Re: How to store additional data with A/V?
- Next by thread: Re: How to store additional data with A/V?
- Index(es):
Relevant Pages
|