[haiku-3rdparty-dev] Re: Creating BMediaFile with meta data track

  • From: Dario Casalinuovo <b.vitruvio@xxxxxxxxx>
  • To: haiku-3rdparty-dev <haiku-3rdparty-dev@xxxxxxxxxxxxx>
  • Date: Wed, 17 Jun 2015 12:58:58 +0200

Hi,


There is BMediaTrack::AddTrackInfo(), maybe you could use that for your
purposes.


On a first look i had some problems to understand how to retrieve this
data, i have not tried already but clues make me think that this is stored
in the media_codec_info structure. I think i should add a ticket to make
this part more comprehensible in the HaikuBook (this is not a feature that
should be underestimated).

Other than that, I think you'd have to write your own codec + media type.
I think this would be very similar to adding support for embedded
subtitles to the Media Kit.


I hope to don't follow this way as makes things complex for a pretty simple
task. Anyway i would be glad if someone implement a encoder/decoder
allowing to store the data needed to record BParameterWeb changes (maybe
moving to an XML format?) and use it to automatize the mixer or other
things. For example, you could record some audio and store in a separate
BMediaTrack the modifies to BParameters that involve it.

Regards,
Dario

Other related posts: