Announcement

Collapse
No announcement yet.

Announcement

Collapse
No announcement yet.

[Script] Auto frame rate for X96max ATV (and other clones)

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • zoelechat
    replied
    No idea, far offtopic anyway.

    Leave a comment:


  • AlexBar
    replied
    But how I can map the button?

    Leave a comment:


  • zoelechat
    replied
    Ok, here's script:
    Code:
    echo 2160p50hz > /sys/class/display/mode
    Done.

    You can change 50hz to 60hz at will, and map it to some button the way you want

    Leave a comment:


  • AlexBar
    replied
    Originally posted by zoelechat View Post

    You mean an automatic manual mode?
    right

    Originally posted by zoelechat View Post
    No need for any script for that, resolution change from terminal is already one liner.
    I can't do it if video is alredy started... The idea is like in Kodi script: you assign some keys on remote control, when video starts you can change the the rate to desiredvalue just by pressing one button.

    Leave a comment:


  • zoelechat
    replied
    Originally posted by AlexBar View Post
    Is it possible to add a mode for manual rate switching (like it's in script for kodi)?
    You mean an automatic manual mode?
    No need for any script for that, resolution change from terminal is already one liner.

    Leave a comment:


  • AlexBar
    replied
    Is it possible to add a mode for manual rate switching (like it's in script for kodi)?

    Leave a comment:


  • zoelechat
    replied
    Added some tweaking documentation in "Advanced" section from 1st post. Attachment will be updated with "best compromise" values given at the bottom (previous ones obviously caused some troubles...). No other change.
    Last edited by zoelechat; 23 February 2019, 00:42.

    Leave a comment:


  • zoelechat
    replied
    OK. I've read (translated!) comments on (living!) 4pda, and I tried to slightly improve script accordingly, in the limit of what's doable...

    So, 25/30hz is now supported, it can be enabled setting SUPPORT_25_30=1 on top of script..
    Overall delays have been increased to avoid too early switch, especially on video stop case (back to default). Should also prevent a bit of false positives, but no miracle expected

    1st post attachment updated.
    Last edited by zoelechat; 23 February 2019, 10:10.

    Leave a comment:


  • A.S._id
    replied
    Originally posted by zoelechat View Post
    I'm not really expert in that components stuff, but I think it's gonna depend on several factors: HDMI version supported by box itself and TV (2.0, 2.1?), color bit depth (8, 10, 12bit?), HDR?
    Obviously 4k2k 60p 4:4:4 is supported, but only in 8-bit, and I guess everybody wants at least 10-bit/HDR. Also I wouldn't risk myself to compare these SoCs to 4x price Shield

    From source:
    Code:
    # Please notice that 420 mode is valid for 2160p50/60hz
    # and 2160p50/60hz 444/rgb mode only has 8bit deepcolor mode
    Shield I gave as an example in order to eliminate possible inconsistencies of TV and cable. That is, if it (2160 60p 4:4:4 10bit) works on Shield, it means TV and cable support it.
    Now everything is clear

    Leave a comment:


  • zoelechat
    replied
    I'm not really expert in that components stuff, but I think it's gonna depend on several factors: HDMI version supported by box itself and TV (2.0, 2.1?), color bit depth (8, 10, 12bit?), HDR?
    Obviously 4k2k 60p 4:4:4 is supported, but only in 8-bit, and I guess everybody wants at least 10-bit/HDR. Also I wouldn't risk myself to compare these SoCs to 4x price Shield

    From source:
    Code:
    #    Please notice that 420 mode is valid for 2160p50/60hz
    #    and 2160p50/60hz 444/rgb mode only has 8bit deepcolor mode

    Leave a comment:


  • A.S._id
    replied
    Yes, I'm know, I'm tried this custom kernel by anpaza from 4PDA But I don't understand why x96max or s905x2 can't support 4k2k 60p 4:4:4? I for laugh tried turn on NVidia Shield to my TV via the same hdmi cable and it working how to charm...

    Leave a comment:


  • zoelechat
    replied
    To be deleted
    Last edited by zoelechat; 21 February 2019, 18:49.

    Leave a comment:


  • zoelechat
    replied
    Indeed Magisk is not mandatory, as long as busybox is available and that you can launch script as root in any way

    About 24hz, took me some time to figure it out, and it was worth to have a look at Amlogic sources. Actually chroma subsampling has to be set prior to display mode change: 4:4:4 will stay below 30hz range and 4:2:0 will stay above. e.g if you set 2160p60hz444 box will switch to 30p (=half), and in the opposite if you try to set 2160p24hz420 box will try to switch to... 48hz (=double, unsupported!) Hence black screen when blindly switching to 24hz from 50/60. Hope it's clear

    Custom kernel posted in other thread caused same black screen issue on 24hz (in addition to definitely break VP9 support...)

    Leave a comment:


  • A.S._id
    replied
    hi zoelechat , nice work!

    Kodi 18 is woking on 4K and FHD. And it working better on 4K 60p 4:2:0 compared Amlogic AFR switcher script addon that can't switch 4K from 60/50p to 24p and showing black screen...

    I did some another.
    If reluctance to put magisk for 50afr (as I like for example)
    1. Installing from the play market Amlogic TV Box Tool and Busybox installer
    2. Install new Busybox with its symlinks from the application
    3. In Amlogic TV Box Tool, enable init.d support and Autostart
    4. Copy 50afr to the /etc/init.d folder and rename it to myscript.sh, give permission 755
    5. Restarting and enjoy...
    Last edited by A.S._id; 21 February 2019, 07:49.

    Leave a comment:


  • neomode
    replied
    Good Job!
    Thanks for sharing!

    Neomode

    Leave a comment:

Working...
X