YTUHD icon indicating copy to clipboard operation
YTUHD copied to clipboard

Stuttering in YTUHD 2160p but perfect in vanilla YouTube

Open UprisingPulse opened this issue 3 years ago • 22 comments

Hi, I got iPhone 13 Pro Max, in the vanilla YouTube app from appstore I have the option to play 2160p resolution smoothly, however when I sideloaded YouTube with YTUHD, when I choose 2160p it stutter and buffer.

UprisingPulse avatar Nov 13 '21 08:11 UprisingPulse

That makes sense. Your sideloaded version of YTUHD probably doesn't include VP9 entitlement spoofing.

PoomSmart avatar Nov 14 '21 05:11 PoomSmart

So you mean the problem is with the YouTube ipa itself or the tweak?

I tried it on my iPad Pro 2020 also same results, stuttering and buffering for anything above 1440p or above 1080 HDR.

UprisingPulse avatar Nov 14 '21 05:11 UprisingPulse

The issue is that you didn't compile YTUHD for use with your IPA with VP9 entitlement spoofing code uncommented.

PoomSmart avatar Nov 14 '21 13:11 PoomSmart

Affirmative. And how can I do that?

UprisingPulse avatar Nov 19 '21 11:11 UprisingPulse

@UprisingPulse Assuming you can compile YTUHD from source, line 6-7 and line 60-65 are to be uncommented from Common.x before you compile the tweak.

PoomSmart avatar Nov 20 '21 13:11 PoomSmart

I'm getting this error

> Making all for tweak YTUHD… ==> Compiling Common.x (arm64)… Common.x:61:10: error: implicit declaration of function 'CFStringEqual' is invalid in C99 [-Werror,-Wimplicit-function-declaration] if (CFStringEqual(entitlement, CFSTR("com.apple.coremedia.allow-alternate-video-decoder-selection"))) { ^ Common.x:61:10: note: did you mean 'CFStringPad'? /Users/user/theos/sdks/iPhoneOS14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h:666:6: note: 'CFStringPad' declared here void CFStringPad(CFMutableStringRef theString, CFStringRef padString, CFIndex length, CFIndex indexIntoPad); ^ 1 error generated. make[3]: *** [/Users/user/YTUHD/ytuhd/.theos/obj/debug/arm64/Common.x.a713ed27.o] Error 1 make[2]: *** [/Users/user/YTUHD/ytuhd/.theos/obj/debug/arm64/YTUHD.dylib] Error 2 make[1]: *** [internal-library-all_] Error 2 make: *** [YTUHD.all.tweak.variables] Error 2

UprisingPulse avatar Nov 21 '21 11:11 UprisingPulse

https://github.com/PoomSmart/PSHeader/blob/master/Misc.h#L21

PoomSmart avatar Nov 23 '21 03:11 PoomSmart

Making all for tweak YTUHD… ==> Linking tweak YTUHD (arm64)… Undefined symbols for architecture arm64: "_SecTaskCopyValueForEntitlement", referenced from: _logosLocalCtor_c16daf74 in Common.x.a713ed27.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [/Users/user/ytuhd/.theos/obj/debug/arm64/YTUHD.dylib] Error 1 make[2]: *** [/Users/user/ytuhd/.theos/obj/debug/arm64/YTUHD.dylib] Error 2 make[1]: *** [internal-library-all] Error 2 make: *** [YTUHD.all.tweak.variables] Error 2 user@MacBook-Pro-User ytuhd % -v zsh: command not found: -v

UprisingPulse avatar Nov 23 '21 06:11 UprisingPulse

Yes I have the latest build, I will reinstall it and try to work it out Thank you very much, it’s working perfectly

UprisingPulse avatar Nov 23 '21 14:11 UprisingPulse

Sorry to bother u again, but it’s not working anymore, even with ur deb and I complied you source and injected it, it stopped working, it stutter like before on 2160p resolution

UprisingPulse avatar Nov 29 '21 09:11 UprisingPulse

Reopen for later investigation.

PoomSmart avatar Nov 29 '21 12:11 PoomSmart

I injected the deb you sent above to youtube 16.54.5, you can see the stutter after sideloading and enabling vp9 and 2160p res. https://github.com/UprisingPulse/test2/releases/download/ww/YouTube_16.45.4+ytuhd.ipa

And this one I injected it with my complied deb https://github.com/UprisingPulse/test2/releases/download/mm/YouTube_16.45.4+ytuhdm.ipa

UprisingPulse avatar Nov 29 '21 13:11 UprisingPulse

@UprisingPulse With the latest version of everything, does it work? Can you also post the screenshot of "stats for nerds" for the video you are testing with?

PoomSmart avatar Dec 16 '21 13:12 PoomSmart

Just tried, no it still doesn't work, I have the latest YouTube with the latest everything "tweaks".

This is the screenshots: L4z7l4C ez65rKB

UprisingPulse avatar Dec 16 '21 15:12 UprisingPulse

user@MacBook-Pro-User ~ % cd /Users/user/YTUHD user@MacBook-Pro-User YTUHD % make SIDELOADED=1

Making all for tweak YTUHD… ==> Linking tweak YTUHD (arm64)… Undefined symbols for architecture arm64: "_SecTaskCopyValueForEntitlement", referenced from: _logosLocalCtor_199eaf8d in Common.x.f67ceb60.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [/Users/user/YTUHD/.theos/obj/debug/arm64/YTUHD.dylib] Error 1 make[2]: *** [/Users/user/YTUHD/.theos/obj/debug/arm64/YTUHD.dylib] Error 2 make[1]: *** [internal-library-all] Error 2 make: *** [YTUHD.all.tweak.variables] Error 2 user@MacBook-Pro-User YTUHD %

Got this error again. using latest THEOS and 15.0 SDK

UprisingPulse avatar Dec 18 '21 04:12 UprisingPulse

Copy Xcode’s SDK into $THEOS/sdks and then add PrivateFrameworks from the latest SDK in theos/sdks repo to it.

PoomSmart avatar Dec 18 '21 05:12 PoomSmart

Copied Xcode SDK (15.0) to sdks and added PrivateFrameworks from the latest SDK 14.4 from theos repo. Still getting the same error.

UprisingPulse avatar Dec 18 '21 05:12 UprisingPulse

@UprisingPulse Could you try adding a framework in Makefile like this:

$(TWEAK_NAME)_FRAMEWORKS = Security

PoomSmart avatar Dec 18 '21 06:12 PoomSmart

Also, this dylib you may use: https://github.com/qnblackcat/uYouPlus/files/7738656/YTUHD.dylib.zip

PoomSmart avatar Dec 18 '21 07:12 PoomSmart

Tried my own complied deb and yours dylib

I got this in both: DE8B0456-B368-4E43-86DA-875645CD60E7

still it doesn’t show HV but not stuttering for now, need to test it longer.

UprisingPulse avatar Dec 18 '21 08:12 UprisingPulse

It still stuttering

F3FEC6E5-6F0F-4363-B433-4CC66F91273C

UprisingPulse avatar Dec 18 '21 16:12 UprisingPulse

For me, it only happens when playing at 2160p. 1440p is fine. YTUHD 1.2.6

qnblackcat avatar Feb 10 '22 10:02 qnblackcat