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

bug(youtube): swipe brightness control on HDR videos are acting funky #1965

Closed
3 tasks done
SodaWithoutSparkles opened this issue Oct 9, 2022 · 25 comments
Closed
3 tasks done
Labels
Bug report Something isn't working

Comments

@SodaWithoutSparkles
Copy link
Contributor

SodaWithoutSparkles commented Oct 9, 2022

Type

Error at runtime

Bug description

Swipe brightness is acting funky on HDR videos, possibly interfering with HDR auto brightness

Steps to reproduce

  1. Patch YT 17.36.37 with manager 0.0.30 with all patches except debugging, auto repeat, wide search bar
  2. Enable swipt brightness and sound control
  3. Play a sample HDR video like this one or this one or this one
  4. Fullscreen the video and swipe to control brightness on the left side
  5. Brightness control is not working normally

Relevant log output

N/A

Screenshots or videos

video resolution reduced for uploading, also muted

Screenrecorder-2022-10-09-20-12-27-791.0.mp4

Solution

Swipe brightness ctrl should be prioritized before HDR auto brightness.

Additional context

No response

Acknowledgements

  • I have searched the existing issues and this is a new and no duplicate or related to another open issue.
  • I have written a short but informative title.
  • I filled out all of the requested information in this issue properly.
@SodaWithoutSparkles SodaWithoutSparkles added the Bug report Something isn't working label Oct 9, 2022
@its0x08
Copy link

its0x08 commented Oct 9, 2022

Works perfectly on MIUI 13.0.4 POCO F3.
Latest supported YT and Revanced tools

@SodaWithoutSparkles
Copy link
Contributor Author

SodaWithoutSparkles commented Oct 9, 2022

Strange, I am also on MIUI 13.0.5 Amdroid 12 POCO X4 GT

@its0x08 did you enable HDR auto brightness under settings > revanced > miscellaneous ?

@its0x08
Copy link

its0x08 commented Oct 9, 2022

I just confirmed that the video you mentioned makes YouTube works weird!

I answered above based on other hdr videos 🤔

@its0x08
Copy link

its0x08 commented Oct 9, 2022

Strange, I am also on MIUI 13.0.5 Amdroid 12 POCO X4 GT

@its0x08 did you enable HDR auto brightness under settings > revanced > miscellaneous ?

Yes I did. The thing is that I tested it using another video mot the one mentioned on the issue.

Now I see that the same problem exists on POCO F3 MIUI 13.0.4 Android 12
Latest Revanced toolkit ..

@SodaWithoutSparkles
Copy link
Contributor Author

@its0x08 I have edited the top comment for 2 more videos that I have experienced the same issue. could you check those as well? the last one use VP9 codec if that matters, but I still get the funky swipe ctrls, even if my hands are way off the light sensor.

Could you send the vid that u used 4 testing?

@its0x08
Copy link

its0x08 commented Oct 9, 2022

I confirm that with all three YouTube behaves the same.

@jonas-hurst
Copy link

jonas-hurst commented Oct 11, 2022

As requested in #745 (comment), I reproduced this on LG V30 running Android 9. I can only reproduce it to a certain extent:

  1. Right after opening video, I can change brightness by swiping without a problem
  2. I tap the video settings after changing brightness (little gear top right corner in video player), then the brightness is reset to system setting
  3. I tap video settings and change video quality, then things get weird: Brightness changes accordingly to my swipe on the screen, but as soon as I release my finger from the screen, brightness is reset to system setting.

I used current recommended YT, cli v2.14.0, patches v2.81.10 and integrations v0.51.0

I hope I was able to help you out.

@SodaWithoutSparkles
Copy link
Contributor Author

New Findings: This behaviour exists no matter "Enable HDR auto brightness" under settings > misc is enabled or disabled. I have cleared the app from recent tasks before repeating the test.

I did not need to click the gear icon to have this funky brightness swipe

@SodaWithoutSparkles

This comment was marked as spam.

@gimmee94

This comment was marked as spam.

@oSumAtrIX oSumAtrIX reopened this Nov 16, 2022
@54m4d
Copy link

54m4d commented Apr 24, 2023

As of v2.170.0, the issue is persistent regardless if hdr-auto-brightness patch is used or not.

@LisoUseInAIKyrios LisoUseInAIKyrios changed the title Swipe brightness control on HDR videos are acting funky bug(youtube): swipe brightness control on HDR videos are acting funky Jun 25, 2023
@Heikrana
Copy link

This behaviour exists no matter "Enable HDR auto brightness" under settings > misc is enabled or disabled.

I tried patching without the HDR patch and even then this problems persists even though there is no option related to HDR in the settings.

@oSumAtrIX
Copy link
Member

HDR automatically adjusts brightness, not sure if this a bug

@SodaWithoutSparkles
Copy link
Contributor Author

HDR automatically adjusts brightness, not sure if this a bug

It should only do so when swipe brightness control was set to auto.

@oSumAtrIX
Copy link
Member

Isn't HDR controlled by the device?

@SodaWithoutSparkles
Copy link
Contributor Author

SodaWithoutSparkles commented Jul 22, 2023

Isn't HDR controlled by the device?

I dont really know. Why does that even matter anyway?

It is counter-intuitive that the swipe-brightness-control overrides system brightness in all videos except HDR ones. Swipe brightness controls serves as a override to the brightness, and so should HDR content too.

Even if that is not achievable, the scroll action should provide feedback to the user by locking the controls at auto, instead of seemingly scrolling but snapping back causing confusion.

Edit: the problem is that the swipe brightness controls does work, if you act quickly and dont hold on the screen longer than a tap. If you holded longer than roughly 300ms it snaps to auto brightness again. I managed to set the brightness to 1% actually.

The solution would be to disable HDR auto brightness when there is a swipe in left zone, handle the brightness change, then only enable it back on whenthe brightness is set to auto or exit fullscreen/video

@54m4d
Copy link

54m4d commented Jul 22, 2023

Why was this issue closed without any clarification? Has it been resolved?

@oSumAtrIX
Copy link
Member

@SodaWithoutSparkles HDR overrides brightness. If you have HDR enabled, brightness controls won't work because HDR should be controlled by the device which is why it matters.

@SodaWithoutSparkles
Copy link
Contributor Author

@SodaWithoutSparkles HDR overrides brightness. If you have HDR enabled, brightness controls won't work because HDR should be controlled by the device which is why it matters.

But it does work, at least on my device. Maybe I should get another device to physically record it.

@oSumAtrIX
Copy link
Member

What does "it works" mean? HDR is supposed to change the brightness:

image

You are not supposed to override it.

@SodaWithoutSparkles
Copy link
Contributor Author

Thats the issue. Some people would like to watch videos that are only available in HDR in their beds w/o blinding themselves.

@oSumAtrIX
Copy link
Member

Swipe gestures is not supposed to override HDR settings in any way. For this, another patch can be made.

Can you change the brightness from your phone when watching HDR?

@SodaWithoutSparkles
Copy link
Contributor Author

Can you change the brightness from your phone when watching HDR?

Yes, both from the quick settings menu and with quick swipes in the video player.

@oSumAtrIX oSumAtrIX reopened this Jul 22, 2023
@54m4d
Copy link

54m4d commented Jul 22, 2023

And what is the purpose of this option? it doesn't make any difference if it's toggled or not.

Screenshot_20230722_225246_YouTube

Complete inaccuracy when adjusting brightness by swiping while playing HDR videos. 👇🏻

cap.mp4

@oSumAtrIX
Copy link
Member

Then the patch is broken, open an issue

@54m4d
Copy link

54m4d commented Aug 7, 2023

@oSumAtrIX I see that it works fine with other's patches, i see no reason why not to approach this in the same way they did?

cap.mp4

@revanced-bot revanced-bot transferred this issue from ReVanced/revanced-patches-template Dec 14, 2023
@oSumAtrIX oSumAtrIX transferred this issue from another repository Dec 14, 2023
Slenderman00 pushed a commit to Slenderman00/revanced-patches-grindr that referenced this issue Jan 31, 2024
Slenderman00 pushed a commit to Slenderman00/revanced-patches-grindr that referenced this issue Jan 31, 2024
# [2.171.0](ReVanced/revanced-patches@v2.170.0...v2.171.0) (2023-04-27)

### Bug Fixes

* **enable-android-debugging:** make option `debuggable` false by default ([e717e26](ReVanced/revanced-patches@7864869))
* **youtube/minimized-playback:** disable minimized playback for shorts ([ReVanced#1990](ReVanced/revanced-patches#1990)) ([b91d18d](ReVanced/revanced-patches@bd69f96))
* **youtube/spoof-signature-verification:** additional fixes for subtitle window positions ([ReVanced#1975](ReVanced/revanced-patches#1975)) ([08584e6](ReVanced/revanced-patches@11fcc18))

### Features

* **id-austria:** remove compatibility version constraint ([ReVanced#1952](ReVanced/revanced-patches#1952)) ([94ffd5a](ReVanced/revanced-patches@e1fe115))
* **youtube/sponsorblock:** automatically hide skip button ([ReVanced#1956](ReVanced/revanced-patches#1956)) ([c3c8ae6](ReVanced/revanced-patches@310516a))
* **youtube:** `hide-player-overlay` patch ([ReVanced#1965](ReVanced/revanced-patches#1965)) ([d233d96](ReVanced/revanced-patches@8c79cdb))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants