Lag / buffering during ads on 2k/4k streams (video-swap-new)
(Im on latest Chrome, win 10, ublock with this https://raw.githubusercontent.com/pixeltris/TwitchAdSolutions/e09ca6471c73734386056ed951734126d13ab713/video-swap-new/video-swap-new-ublock-origin.js )
I want to clarify that whatever im experiencing seems to appear on streams with the new 4k codec activated ( aka from this list https://eb.rodney.io/ ) but in my case in 1080p resolution since i only watch streams in 1080p (for various reasons).
So im experiencing two issues:
-
The streams buffers/lag when there is an ad played (so far i never got the 4000 error that was mentioned in the other thread; maybe that is 4k resolution related, idk)
-
This other one is very odd (and inconsistent): sometimes the twitch overlay randomly shows up as if im moving the mouse... doesnt matter if im fullscreen or not, the overlay keeps showing/disappearing as if im spam hovering/clicking the stream. It seems to happen after an ad is played (this is a guess) and if i try to switch between channels on that 4k list the issue is still there. Streams not on that list seems to not present the issue (this is also a guess). It reminds me of when ublock auto-switches the resolution to 360p while skipping the ads which makes the overlay showing up for a sec at the start and at the end of the process (as if u clicked the settings). In this case there is no resolution change, instead the overlay just shows up/disappear intermittently, stuck in a loop as if im spam clicking/hovering the mouse when im not.
Another issue: All streams with 4k or 1440 are giving me and many other people a new 'this broadcast is encrypted' error for Alternate Player, rendering streamers who switch over unwatchable.
Just curious, do you have the HEVC Codec Pack installed from the Microsoft Store? Was also having this issue until I redownloaded it. ~as well as h265ify and now it works flawlessly with any of the streams on that list now.~
My guess is it's either missing the HEVC Pack in general as the high-resolution streams use H265 and not H264. ~OR what was the issue with Edge, the browser has the support for H265 but isn't reporting it to twitch resulting in the player hanging indefinitely until switch to 1080p or lower, requiring an extension to communicate it to any website visited.~
Just curious, do you have the HEVC Codec Pack installed from the Microsoft Store? Was also having this issue until I redownloaded it as well as h265ify and now it works flawlessly with any of the streams on that list now.
My guess is it's either missing the HEVC Pack in general as the high-resolution streams use H265 and not H264, OR what was the issue with Edge, the browser has the support for H265 but isn't reporting it to twitch resulting in the player hanging indefinitely until switch to 1080p or lower, requiring an extension to communicate it to any website visited.
I don't know if the person who originally made this issue has that 'HEVC Codec Pack' app, and I for sure don't have that app either since well... it's a paid app.
And since that is a paid app, it's unable to be used to h265ify unless we decide to pay for that Microsoft store app.
There's a free unlisted version, maybe try that one? Looks to be the exact same, also published by MS.
The issue also happens on Windows 11 under Brave with the "video-swap-new" userscript. As Windows 11 does not require the HEVC codec pack anymore, that shouldnt be relevant. When it tries to block any ad, the video feed errors out, until I switch to 1080p and below. However it does not mention anything about encryption.
The issue also happens on Windows 11 under Brave with the "video-swap-new" userscript. As Windows 11 does not require the HEVC codec pack anymore, that shouldnt be relevant. When it tries to block any ad, the video feed errors out, until I switch to 1080p and below. However it does not mention anything about encryption.
Late response due to being busy and testing this issue with different variables, but I'm unsure where you got that information about Windows 11, but it for sure does require some form of HEVC codec pack as it does not come with 10 or 11 natively and hasn't for a while. They removed native support for it it in update 1709 and has not since returned for either OS. If you don't have any codec pack to decode and play it then using H.265 encoding is not going to be possible. I literally just tested that today by uninstalling the pack and it refused to load above 1080p with error #4000. Please don't spread misinformation.
I do however recant and have edit my statement with a strikethrough about h265ify as all 1440p streams are loading fine without it, besides the ad problem.
On another note, it seems to be working fine if you set it to auto and are NOT 1440p native or watching in Fullscreen as auto will default to 1440p in Fullscreen. Tested this with 5 or so different streams from the rodney.io list.
That the stream in 2k always stops with error message is already nervous because there are always more Creator in 2k streams. Will it still get updates?
this might be related to new Beta 2K location restriction
in some cases quality go straight from 720p to 1440p (no 1080p option)
Late response due to being busy and testing this issue with different variables, but I'm unsure where you got that information about Windows 11, but it for sure does require some form of HEVC codec pack as it does not come with 10 or 11 natively and hasn't for a while.
I forgot that I installed the OEM extension at some point (probably did it at reinstall by reflex) because it apparently does not show up in the app list anymore, only with Get-AppxPackage, however
Please don't spread misinformation.
I'd appreciate not being called a liar for getting something wrong in good faith. "Spreading misinformation" implies malicious intent, which is not the case. I will remove the wrong statement however.
No HEVC pack additionally installed. Plays fine without script and just getting the ad before.
Same issue here. Have to disable script in order to load 2k stream.
Does anyone have a working solution for Encrypted Broadcasts yet? https://github.com/pixeltris/TwitchAdSolutions/issues/353. I am using Google Chrome and I already have Hardware Acceleration enabled. I went to a different person's stream, changed the Video Quality to something lower, and then went back to the other person's stream but I still got the whole "This broadcast is encrypted. The Alternative Player for Twitch.tv extension does not support encrypted broadcasts." message. I've had this problem for many months now.
Just tested in the US and 1440p normal streams work fine with vaft. They have the same issue with resolution sometimes while blocking ads that other streams have but other than that it is perfectly ad free. There is no DRM indicated on the streams in Firefox for me.
EDIT: 1440p streams work fine in Firefox but not in Chrome. EDIT 2: 1440p streams also work with the userscript in Safari on MacOS. Only chrome seems to fail to load the 1440p streams.
Just tested in the US and 1440p normal streams work fine with vaft. They have the same issue with resolution sometimes while blocking ads that other streams have but other than that it is perfectly ad free. There is no DRM indicated on the streams in Firefox for me.
EDIT: 1440p streams work fine in Firefox but not in Chrome. EDIT 2: 1440p streams also work with the userscript in Safari on MacOS. Only chrome seems to fail to load the 1440p streams.
It does indeed work in Firefox, I've tested in on Edge personally and had to go to 1080p for getting it to work, on 1440p the stream doesn't load when an ad is rolling.
But I also have a problem on Firefox on 1440p after an ad, the sound of the stream is just glitching and it repeat the same section of sound during the ad block section over and over again for some reason.
The streams buffers/lag when there is an ad played
Can you try the latest version and see if the problems still persist. Using your browsers console you can do simulateAds(1) to trigger a simulated ad and simulateAds(0) to step back to the regular stream. I haven't noticed any buffering/lagging in my testing.
Your second issue where the player is doing weird things is strange. The script doesn't do anything with the DOM which would result in that behavior, but maybe the player isn't happy about something. No clue really on that one.
Closing due to lack of updates.
Whenever the ads play, I have buffering on 1080p streams and no audio. And sometimes the video gets caught in a loop and it repeats itself around four or so times before it eventually corrects itself. I had changed ReloadPlayerAfterAd to True the other day because I think that it could be the tiniest bit better than False which might make the stream not at all usable. I haven't played around with any settings. I just consider this just the way things are, and still better than no ad blocker. Also, I haven't tested this enough, but I think that refreshing the page or closing the tab and reopening doesn't help, but maybe just maybe closing the entire browser and opening it back up again helps. If that's the case, then that means one or more extensions is causing some sort of memory leak or problem that only a browser restart can fix? Anyway, I'm just the stupid end user that knows nothing. So forgive me.
@gaveitatry2 this issue was specifically about 2k/4k streams on video-swap-new. Everything you mentioned is nothing to do with this issue.
I have buffering on 1080p streams
Not enough info for me to do anything with that
and no audio
See #329
sometimes the video gets caught in a loop and it repeats itself around four or so times before it eventually corrects itself
It's something I'm aware of but don't currently have a fix for as the player state doesn't give any hints this is happening. Might do something similar to #199 to auto pause/play when the active player type changes (perhaps at a slight delay to prevent repeated pause/play).
No idea about the rest of your comment as it's quite vague. I'd suggest you look at the code and make adjustments if it isn't working how you'd like.
I can read. I know it only had to do with 2k/4k streams, but instead of opening up a new thread where you pretty much tell me the same thing "I don't have a fix", I just wanted to share how I have the same problem with 1080p streams. I'll just quit posting since you always have a problem with anything I post and pretty much just tell me "figure it out yourself". Also, I still don't understand your outdated information. You told me in other posts that you never use Twitch and you haven't used those other extensions and workarounds. And when I tell you those don't work and have like 50 1 star recent reviews, you still suggest them to people despite not using Twitch and not having tested them recently yourself. Honestly, I am wondering if your heart is just not in this project anymore. It feels like you just want to close every Issue and tell people to shut up and leave you alone.
Instead of closing and linking to every thread, why don't you just make one FAQ page on things a person can try to improve their experience. Instead of making them comb every single thread and inch of this GitHub? Just one single page. With recent and up to date information? Basically a list of reported problems, both reproduced and non reproduced, and things a person can do to address each one.
I am wondering if your heart is just not in this project anymore
I maintain the scripts for myself and people are free to use them. That's all there is to it. I don't care about this project.
I just wanted to share how I have the same problem with 1080p streams. I'll just quit posting since you always have a problem with anything I post and pretty much just tell me "figure it out yourself". Also, I still don't understand your outdated information. You told me in other posts that you never use Twitch and you haven't used those other extensions and workarounds. And when I tell you those don't work and have like 50 1 star recent reviews, you still suggest them to people despite not using Twitch and not having tested them recently yourself.
I'm unable to look into your buffering problem as I cannot reproduce it. I suggest looking at an alternative solution or modifying the script yourself as it sounds like your buffering problem makes the script unusable.
It feels like you just want to close every Issue and tell people to shut up and leave you alone.
If I'm unable to reproduce an issue and nobody who can reproduce the issue is putting in work towards creating a fix and the issue lays dormant then the issue serves literally no purpose and can be closed. Some open source projects use github actions to auto close issues after a certain period of time of inactivity.
make one FAQ page on things a person can try to improve their experience. Instead of making them comb every single thread and inch of this GitHub? Just one single page. With recent and up to date information? Basically a list of reported problems, both reproduced and non reproduced, and things a person can do to address each one.
https://github.com/pixeltris/TwitchAdSolutions/blob/master/issues.md you're free to make a PR which adds the information that you think is relevant here. Or make a PR to add relevant information to the README if you think it'd be better on the README. It's your time to shine and contribute to the project! Thanks!
Thanks. I had no idea that page even existed. It helps a lot. On the front page, it does link to the issues.md page at the very bottom, but I think that should be moved to the very top and the md could be renamed to something like troubleshooting_guide.md or something.