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

Werid issue with videos loading and quality when clicking on video found by search bar. #19

Open
theogbob opened this issue Feb 18, 2025 · 8 comments

Comments

@theogbob
Copy link

Over my time using QtTube ive found a rather odd bug, Note that as stated in the title, this only happens when I search for videos and click on them, never when they are suggested.

The issue is (primarily) the quality on the videos is stuck at 360p, no other options to increase. I know this is false since if its suggested it works just fine and so does it in the browser.
Other issue is sometimes, Not sure how often but only happens when searching for videos, they simple wont load and just get a playback error.

The playback error is less common but the 360p is quite annoying and sometimes forces me to switch to the browser.

Ive also tried playing with the player settings in terms of quality and set from player. both fix it.

@BowDown097
Copy link
Owner

Really weird. Never encountered this issue and can't reproduce (though I have had the 360p thing happen very rarely on the actual site). So only thing I can really do is ask, does either issue:

  • Reoccur if the video is searched for and opened again, or is it completely random?
  • Only occur if it's the first video opened?
  • Make anything out of place show up in the terminal?


Another thing that also may be worth trying if nothing out of place shows up in the terminal is:

  1. Run the program with the environment variable QTWEBENGINE_REMOTE_DEBUGGING=1337 set.
  2. Go to localhost:1337 in a Chromium browser (Chrome, Edge, Brave, etc.). You should see a page that says "Inspectable pages" at the top. Click the entry for YouTube.
  3. Drag out the pane with HTML code and stuff in it on the right, and open up the "Console" section.
  4. Check for errors (they'll be highlighted in red), ignoring any that say net::ERR_ACCESS_DENIED - those should be the program blocking tracking requests. If you have SponsorBlock enabled, also ignore any "404 (Not Found)" error from the sponsor.ajay.app website.

@theogbob
Copy link
Author

In terms of the 360p issue, nothing in terminal but it seems to only happen on some videos, here's an example video it happens on, even after going back: https://youtu.be/CFdhOu-z3to
running with QTWEBENGINE_REMOTE_DEBUGGING=1337 doesn't work? nothing happens in console and "This site can’t be reached" in browser, I'm using QtTube-Linux-27600df-Qt6-Debug-x86_64.AppImage if that makes any difference.

@BowDown097
Copy link
Owner

Yep, this appears to be a problem with the AppImage. It rolls the normal ol' open source version of Qt which doesn't support some codecs, namely H264 which is used by YouTube a bunch, thanks to software patents (would be cool if they didn't exist tbh). Pretty much every remotely major distro seems to roll a patched version that supports them in some way, but I'm not sure how I'd go about doing that with this project.

Only "safe" thing I can think of doing is tweaking data given to the player and seeing if I can have it prioritize other codecs. I'll take a look at it soon enough, though this project is kind of on the backburner rn with a couple other ones taking its place. Otherwise you can build from source which I'm sure would fix the problem, if you're on Arch there's an AUR package which does that whole process for you.

@theogbob
Copy link
Author

iirc there is a relatively simple way to prioritize or block specific codecs so that should be possible, Im on opensuse.

@theogbob
Copy link
Author

Can confirm its a h.264 issue from some more testing, also explains why some videos break but trying to compile on opensuse doesn't seem to be working:
Could NOT find Qt6WebEngineWidgets (missing: Qt6WebEngineWidgets_DIR) CMake Error at CMakeLists.txt:57 (find_package): Found package configuration file: /usr/lib64/cmake/Qt6/Qt6Config.cmake but it set Qt6_FOUND to FALSE so package "Qt6" is considered to be NOT FOUND. Reason given by package: Failed to find required Qt component "WebEngineWidgets". Expected Config file at "/usr/lib64/cmake/Qt6WebEngineWidgets/Qt6WebEngineWidgetsConfig.cmake" does NOT exist Configuring with --debug-find-pkg=Qt6WebEngineWidgets might reveal details why the package was not found. Configuring with -DQT_DEBUG_FIND_PACKAGE=ON will print the values of some of the path variables that find_package uses to try and find the package. -- Configuring incomplete, errors occurred!

I already have basiclly every Qt6 package I could find related to this so im not sure lol

@BowDown097
Copy link
Owner

Looks like you need qt6-webengine (or whatever it's called on suse).

@theogbob
Copy link
Author

Yeah the issue is I already have that installed lol

@BowDown097
Copy link
Owner

Might need libQt6WebEngineWidgets6? Not sure if it comes with the webengine package already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants