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

Support video bitrate selection #535

Merged
merged 4 commits into from
Sep 24, 2022
Merged

Support video bitrate selection #535

merged 4 commits into from
Sep 24, 2022

Conversation

Maxr1998
Copy link
Member

@Maxr1998 Maxr1998 commented Oct 1, 2021

Add support for bitrate selection and improves transcoding playback.

Supersedes and closes #274.

Closes #24.

@Maxr1998 Maxr1998 added enhancement New feature or request exoplayer Related to the ExoPlayer integration labels Oct 1, 2021
@jellyfin-bot jellyfin-bot added the merge conflict Conflicts prevent merging label Oct 20, 2021
@jellyfin-bot jellyfin-bot removed the merge conflict Conflicts prevent merging label Dec 15, 2021
roeii
roeii previously approved these changes Jan 13, 2022
Copy link

@roeii roeii left a comment

Choose a reason for hiding this comment

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

Looks good so far. What work is missing to make this complete?

@Maxr1998
Copy link
Member Author

I still need to clean up and implement the UI, wire up the profiles, and test everything. I just didn't have the time yet..

@jellyfin-bot jellyfin-bot added the merge conflict Conflicts prevent merging label Jan 24, 2022
@jellyfin-bot jellyfin-bot removed the merge conflict Conflicts prevent merging label Jan 24, 2022
@Maxr1998 Maxr1998 mentioned this pull request Mar 27, 2022
@jellyfin-bot jellyfin-bot added the merge conflict Conflicts prevent merging label Apr 6, 2022
@nielsvanvelzen
Copy link
Member

@Maxr1998 what's the state of this PR?

@davidnghongkong
Copy link

davidnghongkong commented Aug 26, 2022

@Maxr1998
This feature is awesome, why not yet merge?
the HTML5 player in my android app or web don't work on mobile network on tvheadend with apache, somehow the ExoPlayer works, but just missing transcode, please help implement this. Thank you.

@Maxr1998
Copy link
Member Author

Not finished yet. I've made some local progress recently, but I can't give any ETA on when this is finished.

@jellyfin-bot jellyfin-bot removed the merge conflict Conflicts prevent merging label Sep 21, 2022
@Maxr1998 Maxr1998 marked this pull request as ready for review September 21, 2022 21:26
@Maxr1998
Copy link
Member Author

Let's get this in, I'd say. It doesn't yet respect the bitrate limits from client settings, that is tracked in #564 and will be an upcoming PR.

<vector android:height="24dp" android:tint="#FFFFFF"
android:viewportHeight="24" android:viewportWidth="24"
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
<path android:fillColor="@android:color/white" android:pathData="M19.43,12.98c0.04,-0.32 0.07,-0.64 0.07,-0.98 0,-0.34 -0.03,-0.66 -0.07,-0.98l2.11,-1.65c0.19,-0.15 0.24,-0.42 0.12,-0.64l-2,-3.46c-0.09,-0.16 -0.26,-0.25 -0.44,-0.25 -0.06,0 -0.12,0.01 -0.17,0.03l-2.49,1c-0.52,-0.4 -1.08,-0.73 -1.69,-0.98l-0.38,-2.65C14.46,2.18 14.25,2 14,2h-4c-0.25,0 -0.46,0.18 -0.49,0.42l-0.38,2.65c-0.61,0.25 -1.17,0.59 -1.69,0.98l-2.49,-1c-0.06,-0.02 -0.12,-0.03 -0.18,-0.03 -0.17,0 -0.34,0.09 -0.43,0.25l-2,3.46c-0.13,0.22 -0.07,0.49 0.12,0.64l2.11,1.65c-0.04,0.32 -0.07,0.65 -0.07,0.98 0,0.33 0.03,0.66 0.07,0.98l-2.11,1.65c-0.19,0.15 -0.24,0.42 -0.12,0.64l2,3.46c0.09,0.16 0.26,0.25 0.44,0.25 0.06,0 0.12,-0.01 0.17,-0.03l2.49,-1c0.52,0.4 1.08,0.73 1.69,0.98l0.38,2.65c0.03,0.24 0.24,0.42 0.49,0.42h4c0.25,0 0.46,-0.18 0.49,-0.42l0.38,-2.65c0.61,-0.25 1.17,-0.59 1.69,-0.98l2.49,1c0.06,0.02 0.12,0.03 0.18,0.03 0.17,0 0.34,-0.09 0.43,-0.25l2,-3.46c0.12,-0.22 0.07,-0.49 -0.12,-0.64l-2.11,-1.65zM17.45,11.27c0.04,0.31 0.05,0.52 0.05,0.73 0,0.21 -0.02,0.43 -0.05,0.73l-0.14,1.13 0.89,0.7 1.08,0.84 -0.7,1.21 -1.27,-0.51 -1.04,-0.42 -0.9,0.68c-0.43,0.32 -0.84,0.56 -1.25,0.73l-1.06,0.43 -0.16,1.13 -0.2,1.35h-1.4l-0.19,-1.35 -0.16,-1.13 -1.06,-0.43c-0.43,-0.18 -0.83,-0.41 -1.23,-0.71l-0.91,-0.7 -1.06,0.43 -1.27,0.51 -0.7,-1.21 1.08,-0.84 0.89,-0.7 -0.14,-1.13c-0.03,-0.31 -0.05,-0.54 -0.05,-0.74s0.02,-0.43 0.05,-0.73l0.14,-1.13 -0.89,-0.7 -1.08,-0.84 0.7,-1.21 1.27,0.51 1.04,0.42 0.9,-0.68c0.43,-0.32 0.84,-0.56 1.25,-0.73l1.06,-0.43 0.16,-1.13 0.2,-1.35h1.39l0.19,1.35 0.16,1.13 1.06,0.43c0.43,0.18 0.83,0.41 1.23,0.71l0.91,0.7 1.06,-0.43 1.27,-0.51 0.7,1.21 -1.07,0.85 -0.89,0.7 0.14,1.13zM12,8c-2.21,0 -4,1.79 -4,4s1.79,4 4,4 4,-1.79 4,-4 -1.79,-4 -4,-4zM12,14c-1.1,0 -2,-0.9 -2,-2s0.9,-2 2,-2 2,0.9 2,2 -0.9,2 -2,2z"/>

Check warning

Code scanning / Android Lint

Long vector paths

Very long vector path (1746 characters), which is bad for performance. Considering reducing precision, removing minor details or rasterizing vector.
@Maxr1998 Maxr1998 added this to the v2.5.0 milestone Sep 21, 2022
@nielsvanvelzen nielsvanvelzen merged commit 6cbf0ed into master Sep 24, 2022
@nielsvanvelzen nielsvanvelzen deleted the bitrate-limits branch September 24, 2022 13:36
@Maxr1998 Maxr1998 added the release-highlight Highlights of a major (or minor) release label May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request exoplayer Related to the ExoPlayer integration release-highlight Highlights of a major (or minor) release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add transcoding selector
5 participants