Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for extracting AIFC audio #95

Open
paulhildebrandt opened this issue Aug 17, 2021 · 1 comment
Open

Support for extracting AIFC audio #95

paulhildebrandt opened this issue Aug 17, 2021 · 1 comment

Comments

@paulhildebrandt
Copy link

First off, thanks for such a great package!

I am trying to extract embedded audio from an AAF generated by Avid Media Composer. There is support for that in this package but it turns out I need AIFC not PCM audio. I looked at export_audio in mobs.py and tried to add support for the AIFCDescriptor but didn't have much luck. I took a simple approach and added code to export_audio to identify AIFDescriptors and then write out an aifc file. I ran into two problems:

  1. I wasn't able to get channels, sample_rate, sample_size from the AIFCDescriptoor like you can with a PCMDescriptor.
  2. When I plugged in what I believe to be correct values for those and wrote out an AIFC using the same stream writing code as the PCM, I ended up with static

If someone could point me in the correct direction that would be much appreciated.

@markreidvfx
Copy link
Owner

Do you have any sample code/aaf you could share? You could convert the extracted wav file with ffmpeg, it should be able to do it lossesly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants