Giter VIP home page Giter VIP logo

Comments (4)

wigcheng avatar wigcheng commented on August 12, 2024

Tested same here, but could you check this webview is better or not:
webview:
https://www.youtube.com/watch?v=D1TeDgH5O74

local video player:
https://www.youtube.com/watch?v=kHLw1Ql33wU

Due to IMX6 limitation, the only way is increase CMA and galcore size such as following command on u-boot prompt:
setenv bootargs console=ttymxc0,115200 init=/init video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24 video=mxcfb1:off vmalloc=128M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=512M galcore.contiguousSize=134217728 loop.max_part=7 quiet

That is for video one setting (CMA=512MB, galcore size=128MB), but I think you should be still feel a bit slow...

Webview browser has some limitation for HW acceleration although it does support GPU, and NXP seems no any improvement since Android 4, I have other customers face this challenge before, they usually have some workarounds:

  1. reduce the video resolution to 720P (actually if your default resolution is 720P, it's okay)
  2. web server send a request about shell command to playback video using local player when click play video button
  3. change browser such as firefox or chromium, but I remember just improve a little bit performance.

You can try to increase CMA size to 512MB and try again.

Thanks

from cookers.

thomasLavocat avatar thomasLavocat commented on August 12, 2024

Hello,

Thanks for your answer. We will investigate whether we can use a 720p resolution or not.
In the meantime, I just realize that the default resolution of the build is on 720p and not 1080p why is that ?

How can I get the 1080p resolution by default on the android 9 build ?

Thanks.

from cookers.

wigcheng avatar wigcheng commented on August 12, 2024

You'll know why default resolution is 720P when you changed (not smoothly...):

  1. quick way in u-boot prompt (for test):
    setenv bootargs console=ttymxc0,115200 init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24 video=mxcfb1:off vmalloc=128M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=512M galcore.contiguousSize=134217728 loop.max_part=7 quiet

  2. modify the source code in BoardConfig.mk
    Modify KERNEL_CMDLINE from video=mxcfb0:dev=hdmi,1280x720M@60 to video=mxcfb0:dev=hdmi,1920x1080M@60

Thanks!

from cookers.

thomasLavocat avatar thomasLavocat commented on August 12, 2024

ok, thanks for the answer, I close the issue.

from cookers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.