Skip to content

Add 50fps and live support to frame by frame keyboard shortcuts #3420

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

Merged

Conversation

absidue
Copy link
Member

@absidue absidue commented Apr 11, 2023

Add 50fps and live support to frame by frame keyboard shortcuts

Pull Request Type

  • Feature Implementation

Description

This pull request refactors the frame by frame code to support videos that have framerates other than 60 or 30 and adds support for live streams too. Additionally I was able to get rid of the part where it read the DASH manifest from the disk, so it should now work properly in the web (and cordova if someone has a keyboard hooked up to their phone) builds too.

Live streams seem to be broken for Invidious at the moment, so I wasn't able to test if my changes work for that (the HLS manifests provided by Invidious return 429 errors for all live streams and instances I tried).

Testing

Unfortunately live streams don't seem to be working with Invidious at the moment and always return 429 errors for the HLS manifests, so that test can't be done with the Invidious API enabled, all others can.

50/25fps https://youtu.be/U4DVfOmcwuk
60/30fps https://youtu.be/HJDMo__4JAg
30fps https://youtu.be/g7oNuP83VXs
live 30fps (144p is 15fps) https://youtu.be/jfKfPfyJRdk

Desktop

  • OS: Windows
  • OS Version: 10
  • FreeTube version: bc039cd

@FreeTubeBot FreeTubeBot enabled auto-merge (squash) April 11, 2023 19:07
@github-actions github-actions bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 11, 2023
@ChunkyProgrammer
Copy link
Member

Invidious live streams seem to be working for me (i only tried going to the watch page, not watching it in freetube).

https://yt.artemislena.eu/watch?v=jfKfPfyJRdk

@PikachuEXE
Copy link
Collaborator

Local API: all fine
Invidious API:

  • 50/25fps becomes 30/60fps, could be invidious side issue

image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I observed the same as @PikachuEXE

@absidue
Copy link
Member Author

absidue commented Apr 15, 2023

the 50fps -> 60fps is apparently a known Invidious issue and will be fixed by iv-org/invidious#3620

@FreeTubeBot FreeTubeBot merged commit 7fbb43f into FreeTubeApp:development Apr 17, 2023
@github-actions github-actions bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Apr 17, 2023
@absidue absidue deleted the frame-by-frame-refactor branch April 17, 2023 06:59
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Apr 17, 2023
* development:
  Add 50fps and live support to frame by frame keyboard shortcuts (FreeTubeApp#3420)
  Remove invidious.namazso.eu in dev branch (FreeTubeApp#3425)
  Cleanup polyfills (FreeTubeApp#3383)
  Small community post fixes (FreeTubeApp#3401)
  Bump rimraf from 4.4.1 to 5.0.0 (FreeTubeApp#3409)
  Bump peter-evans/create-pull-request from 4 to 5 (FreeTubeApp#3414)
  Bump eslint from 8.37.0 to 8.38.0 (FreeTubeApp#3416)
  Bump lefthook from 1.3.8 to 1.3.9 (FreeTubeApp#3410)
  Bump webpack from 5.77.0 to 5.78.0 (FreeTubeApp#3411)
  Bump youtubei.js from 4.1.1 to 4.2.0 (FreeTubeApp#3412)
  Bump sass from 1.60.0 to 1.61.0 (FreeTubeApp#3413)
  Update Channel age restricted key (FreeTubeApp#3237)
  Fix some translation entries sometimes not used when rendered (FreeTubeApp#3337)
  Reset current chapter index when changing videos (FreeTubeApp#3400)
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

Successfully merging this pull request may close these issues.

5 participants