Skip to content

Extract BWF metadata? #147

@ginwakeup

Description

@ginwakeup

Hello,

I have a process that reads an AAF which contains embedded BWF timecode, but it disappears when I write the Mob Essence this disk like this:

wav_output = os.path.join(audio_output, "{}.wav".format(clip_name))

data = source_mob.essence.open("r").read()
audio_file = aaf2.audio.wave.Wave_write(output_name)

audio_file.setnchannels(channels)
audio_file.setframerate(sample_rate)
audio_file.setsampwidth(sample_size)

map(audio_file.writeframesraw, data )

Is there a way to retain the BWF metadata, which I believe is stored in the file header?

Even if I use writeframesraw which is supposed to save the header, it's not there when I check the file using BWFMetaEdit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions