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

Fix and rewrite audio and subtitle track selection when transcoding #931

Merged
merged 2 commits into from
Dec 27, 2022

Conversation

Maxr1998
Copy link
Member

No description provided.

@Maxr1998 Maxr1998 added bug Something isn't working exoplayer Related to the ExoPlayer integration code-cleanup/refactor Code cleanup or rework/refactor labels Dec 21, 2022
@Maxr1998 Maxr1998 added this to the v2.5.0 milestone Dec 21, 2022
@Maxr1998 Maxr1998 force-pushed the fix-transcoding-selection branch 2 times, most recently from 00f3b89 to 9f2ac56 Compare December 24, 2022 13:05
@Maxr1998 Maxr1998 marked this pull request as ready for review December 24, 2022 13:05
// We need to remove the dashes so that the server can find the correct media source.
// And if we didn't pass the mediaSourceId, our stream indices would silently get ignored.
// https://github.com/jellyfin/jellyfin/blob/9a35fd673203cfaf0098138b2768750f4818b3ab/Jellyfin.Api/Helpers/MediaInfoHelper.cs#L196-L201
mediaSourceId = itemId.toString().replace("-", ""),
Copy link
Member

Choose a reason for hiding this comment

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

This conversion feels hacky, do we not have a reference to the mediasource so we can use the id from that?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is hacky but sadly not. The id shouldn't be a string anyways but the api model would require changes for this.

Copy link
Member

Choose a reason for hiding this comment

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

@crobibero can you help us out here, would it be possible to 1) change the parameter type to a UUID, or 2) allow a UUID with dashes to be auto-converted serverside?

Copy link
Member

Choose a reason for hiding this comment

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

Which parameter do you want changed? MediaSourceInfo?

Copy link
Member Author

@Maxr1998 Maxr1998 Dec 26, 2022

Choose a reason for hiding this comment

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

The mediaSourceId, but I don't know whether it has to support other than UUIDs too.

@Maxr1998 Maxr1998 force-pushed the fix-transcoding-selection branch from 9f2ac56 to 69cecbc Compare December 25, 2022 11:03
@nielsvanvelzen nielsvanvelzen merged commit a0ea262 into master Dec 27, 2022
@nielsvanvelzen nielsvanvelzen deleted the fix-transcoding-selection branch December 27, 2022 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code-cleanup/refactor Code cleanup or rework/refactor exoplayer Related to the ExoPlayer integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants