[go: up one dir, main page]

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

Allow subtitle extraction and conversion in direct streaming #636

Merged

Conversation

cvium
Copy link
Member
@cvium cvium commented Jan 20, 2019

Changes
Changed CanExtractSubtitles to return true.

I don't really understand why it's even there. Is there ever a case when it can't be extracted? Maybe live streams?

This PR is really just to create some discussion
Issues
Related to #254
Related to #172

@cvium cvium force-pushed the fix_subtitle_conversion_direct_streaming branch from 3eaec8e to 7470c71 Compare January 20, 2019 18:58
@cvium
Copy link
Member Author
cvium commented Jan 20, 2019

@MatMaul Any idea why?

@cvium cvium force-pushed the fix_subtitle_conversion_direct_streaming branch from 7470c71 to 4a33de8 Compare January 20, 2019 20:03
@@ -1018,7 +1018,8 @@ public IEnumerable<string> GetPrimaryPlaylistVobFiles(string path, IIsoMount iso

public bool CanExtractSubtitles(string codec)
{
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess such case is when there is no embedded subtitles :)

Copy link
Member Author
@cvium cvium Jan 20, 2019

Choose a reason for hiding this comment

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

That's true, but the way that the function is currently being used it's irrelevant as it just needs to know if a subtitle can be converted. External text-based subs can be converted.

Copy link
@alois-git alois-git Jan 23, 2019

Choose a reason for hiding this comment

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

I am sorry but a function that return only false or true, is useless and should be removed (if at least it would look for some property of some sort to activate or deactivate) . Unless they wanted to do some kind of implementation later on but then you add the check and the condition when implementing the feature.

My 2 cents

Copy link
Member Author

Choose a reason for hiding this comment

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

The function is defined in an interface, ITranscoderSupport.

Copy link
@alois-git alois-git Jan 23, 2019

Choose a reason for hiding this comment

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

ha ok sorry :P ignore my comment, I didn't read the whole code

@nvllsvm nvllsvm merged commit db6c171 into jellyfin:dev Jan 20, 2019
@joshuaboniface joshuaboniface mentioned this pull request Jan 21, 2019
@cvium cvium deleted the fix_subtitle_conversion_direct_streaming branch January 25, 2019 19:31
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