VXG.Media.SDK.Android icon indicating copy to clipboard operation
VXG.Media.SDK.Android copied to clipboard

video scaling

Open engr77 opened this issue 7 years ago • 1 comments

Hi,

I have been using VXG player to run multiple RTSP streams from cameras successfully so far. I have to scale the video returned as ByteBuffer from OnVideoRendererFrameAvailable() as 300x300 pixels image for further processing.

Original video is 640x480 or 1280x720. I dont see any method in VXG to scale stream down to any size. Do you have any suggestions? It will be extremely useful. Also, if there is method, does it use CPU or GPU for scaling down.

I know that android has APIs to scale down image, but they are very slow as they run on CPU.

engr77 avatar May 21 '18 20:05 engr77

There is not scaling before OnVideoRendererFrameAvailable. You need to scale it using shaders or s/w convertsion. We can customize this function but it is not free.

Thanks, Expert

VideoExpertsGroup1 avatar May 22 '18 05:05 VideoExpertsGroup1