Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How to load subtitles? Solution and example required. #245

Closed
TW2 opened this issue Dec 6, 2021 · 0 comments
Closed

How to load subtitles? Solution and example required. #245

TW2 opened this issue Dec 6, 2021 · 0 comments

Comments

@TW2
Copy link

TW2 commented Dec 6, 2021

I try to load an external subtitles file like that:

public void setAssFile(File assFile) {
        playbin.set("suburi", assFile.toURI());
        
        Set<PlayFlags> flags = playbin.getFlags();
        flags.clear();
        
        flags.add(PlayFlags.VIDEO);
        flags.add(PlayFlags.AUDIO);
        flags.add(PlayFlags.TEXT);
        
        playbin.setFlags(flags);
}

The 'suburi' returns the good uri for subtitles and when playing the content is transfered to 'current-suburi' perfectly.
At playing 'n-text' is '1' and 'current-text' is '0' (my video source has no subtitles).

But there is no subtitles in video display! How to do it?

Note: I precise that a video source muxed with subtitles displays its default subtitles object during playback.

@gstreamer-java gstreamer-java locked and limited conversation to collaborators Dec 6, 2021
@neilcsmith-net neilcsmith-net converted this issue into discussion #246 Dec 6, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant