Hello,
I’m currently evaluating the Gocoder SDK and I’m wondering if it’s possible to provide a video stream as a series of images submitted to the SDK at regular intervals (e.g. in NV21 format), as opposed to streaming video captured by the camera.
What I’d like to do is open the camera myself and capture frames using the Android Camera.PreviewCallback, then modify these frames and submit them to the Gocoder SDK for streaming. The exact form in which I submit them isn’t important, if I have to submit them as a Surface or TextureSurface or byte array or whatever that would be fine.
Is something like this possible? I’ve looked through the SDK samples and it seems like the SDK is handling all the camera stuff itself.
Hello there and welcome to the Wowza support forum.
I am not sure if this would be possible, so I have to suggest you open a ticket with support to get a more reliable, definitive answer. To do so please follow the steps outlined here.
Another approach would be to post a request for assistance to the find a consultant forum and see if anyone can provide any insight on how this may be done.
Regards,
Salvadore
Hello,
I’m currently evaluating the Gocoder SDK and I’m wondering if it’s possible to provide a video stream as a series of images submitted to the SDK at regular intervals (e.g. in NV21 format), as opposed to streaming video captured by the camera.
What I’d like to do is open the camera myself and capture frames using the Android Camera.PreviewCallback, then modify these frames and submit them to the Gocoder SDK for streaming. The exact form in which I submit them isn’t important, if I have to submit them as a Surface or TextureSurface or byte array or whatever that would be fine.
Is something like this possible? I’ve looked through the SDK samples and it seems like the SDK is handling all the camera stuff itself.
Okay, I figured out how to do this.
I get the native camera from inside the onWZCameraPreviewStarted callback function by calling mWZCameraView.getCamera().getPlatformDevice(), then set up a callback to get the preview frames using the standard Android setPreviewCallbackWithBuffer() function. I capture and process these, and render them over the top of the normal camera preview inside onWZVideoFrameRendererDraw(). It’s perhaps a little inefficient, but my app needs to process the frames in software and then stream them.
Thank you for reporting the issue with the support form. I will report it and we’ll look into the issue.
-Lisa
Hello there and welcome to the Wowza support forum.
I am not sure if this would be possible, so I have to suggest you open a ticket with support to get a more reliable, definitive answer. To do so please follow the steps outlined here.
Another approach would be to post a request for assistance to the find a consultant forum and see if anyone can provide any insight on how this may be done.
Regards,
Salvadore
Thank you for your reply. Unfortunately the support ticket submission doesn’t seem to work for me, I get the following error (even though I filled out the description field):
There was an error processing your request.
Description must be provided