Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
"I am trying to create a CMBlockBuffer from some raw audio bytes which I then want to use to make a CMSampleBuffer using
In the Apple iOS docs I can find the functions 'CMBufferFillDataBytes' and 'CMBlockBufferCreateWithMemoryBlock'
Either of which I think should work for what I am trying to do - create a CMBuffer from some audio bytes."
Alex, can you have a look at this? It looks pretty self-contained, and apparently it's useful for the VideoToolbox bindings: https://forums.xamarin.com/discussion/comment/116804/#Comment_116804
Note that there seem to be a bunch of CMBlockBuffer API missing, not just the two reported here :
so it might make sense to go through the whole class and bind what makes sense (there are probably methods in that list that we shouldn't bind too).
To add to the bug report, the ability to create a CMBlockBuffer is needed when using AVSampleBufferDisplayLayer too.
This API needs a CMSampleBuffer which in turn needs a CMBlockBuffer.
There is an overview of where CMBlockBuffer come in to H264 decompression here
For General Info...
Over on Xamarin.Android I use the MediaCodec class with a SurfaceView to do hardware decompression when I have my own byte of NALs
I've got a XamarinForms Custom Render class which wraps it all into a nice XF application.
Sorry for the bad URL in the previous email.
Fixed in maccore/master 3a22d3455004799bfe9ea367c4ac73e06d4becbf
@QA: added tests in the same commit
Thanks for this Alex!
Just to clarify - when is this expected to be in any release (alpha or otherwise)?
I'm on the latest alpha channel update and do not see any of these methods:
This should be included in Xamarin.iOS 8.12, I do not have a hard date on when this is going to hit alpha or stable but it should happen soon.