Skip to content
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

video scaling #17

Open
engr77 opened this issue May 21, 2018 · 1 comment
Open

video scaling #17

engr77 opened this issue May 21, 2018 · 1 comment

Comments

@engr77
Copy link

engr77 commented May 21, 2018

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.

@VideoExpertsGroup1
Copy link
Member

VideoExpertsGroup1 commented May 22, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants