Re: How to store additional data with A/V?

Tech-Archive recommends: Fix windows errors by optimizing your registry



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


.



Relevant Pages

  • Re: How to store additional data with A/V?
    ... You can store your additional data into MPEG-2 file using USER_DATA ... It's on the elematary stream level and can be easily implemented. ... I have audio, video, and additional camera motion data inputs. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: store OLE data away from other data
    ... just make sure it is clear your documents consist of multiple ... stream within the compound document and provide export and ... Microsoft MVP, MCSD ... I have a need to store the current data into one file and the ...
    (microsoft.public.win32.programmer.ole)
  • Re: Problems storing upload file in session (ObjectDisposedException)
    ... stream being disposed of outside my control. ... I've decided to store the file on disk, ... is not quite a good way since it will cause session state memory ... You can consider save uploaded file into a temp dir. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Last details before the first release
    ... > where i can change the related settings. ... > for to store these settings? ... > and stream it's details to the registry. ...
    (borland.public.delphi.non-technical)
  • How to store additional data with A/V?
    ... I have audio, video, and additional camera motion data inputs. ... and store the additional data together with the A/V stream. ...
    (microsoft.public.win32.programmer.directx.video)