Replies: 3 comments 10 replies
-
Hi, I am glad that you appreciate the library :) and sorry, I know that internal stuff are not well documented. What kind of control are you looking at? Only the surface/callback mode? So, I made something like this a long time ago, not sure it still works! In the I guess, you don't even have to fork the repository. I don't know anything about ARCore. It could fit as an extension of this library. Could you show me what you did achieve when it is done? |
Beta Was this translation helpful? Give feedback.
-
Hi @ThibaultBee. First I want to thank you for this amazing library. You are doing an excellent job. I need a similar feature. I need to stream images from DJI drone using their SDK. The SDK provides images from the drone to the controller via a surfaceview, but it doesn't work if I just start the preview and start streaming. I was thinking along the same lines as @CzinkeM, capturing each image frame instead of using preview. But I couldn't identify where I could do that. |
Beta Was this translation helpful? Give feedback.
-
If you want to pass image to the encoder, you should create a class that extends Now you will have to implement your own video source where you call DJI API. This source should implement the IVideoSource interface andhasSurface = false and hasFrames = true and implements getFrame (getFrame must return the RAW video buffer in a Frame .The encoder will call getFrame and encode the buffer returns in the Frame .Unfortunately, there isn't such example for video in StreamPack but it kind of look like an audio source. If I had a DJI drone I could definitely implement that :) |
Beta Was this translation helpful? Give feedback.
-
Hi!
First of all thanks for @ThibaultBee for this awesome library!
Also I would like to start a discussion about the topic of encoding.
I have been tinkering with this repository for a while now but I still have not got all the knowledge about every little part of the code. I already modified the library to work with ARCore but I want to gain more control over the encoding and I want to switch from async encoding to synchronous encoding, where I feed each frame into the encoder instead of the input surface.
I would greatly appreciate any advice or help on the topic. 🙏
Beta Was this translation helpful? Give feedback.
All reactions