-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add support for adding audio meta data to a buffer #42
Comments
@tinyzimmer I made a start on this but the whole gsize pointer logic is confusing me.... any chance you can tell me what I've done wrong? Branch diff here: https://github.com/tinyzimmer/go-gst/compare/main...broadcastervc:go-gst:audio-metadata-non-interlaced?expand=1 These are the errors coming back from gstreamer
and
In my case I'm calling the new function with Obviously once I know it works I'll make the PR :) Oh and this is the test data for gst_buffer_add_audio_meta... https://github.com/GStreamer/gstreamer/blob/main/subprojects/gst-plugins-base/tests/check/libs/audio.c#L1368-L1401 for an idea of what it's expecting... |
Most recent commit I removed the offset parameter and passed in NULL because my audio samples are tightly packed. And it seems to work.... so just need to sort out the passing in off the offsets (and allow it to be null if someone chooses) |
If you have a buffer with non interleaved audio inside it, you need to add meta data to the buffer to say it's not interleaved and how to deal with it...
gst_buffer_add_audio_meta
https://gstreamer.freedesktop.org/documentation/audio/gstaudiometa.html?gi-language=c#GstAudioMeta
The text was updated successfully, but these errors were encountered: