load subtitles file without dialog opening

This forum is about all development around libVLC.
mangup
Blank Cone
Blank Cone
Posts: 71
Joined: 12 Apr 2019 20:23

load subtitles file without dialog opening

Postby mangup » 17 Jun 2019 09:49

How can i load subtitles file without open-file-dialog opening? (when user select some mp4-embeded subtitle Track - open some known file)
May be to post some event to some appropriate queue? or other way?

User avatar
InTheWings
Developer
Developer
Posts: 1275
Joined: 07 Aug 2013 13:15
VLC version: crashing
Operating System: Linux
Contact:

Re: load subtitles file without dialog opening

Postby InTheWings » 17 Jun 2019 11:30

rename with same file name, but keep subtitle ext.

Foo.mp4
Foo.srt
:!: If you want your problem to be solved :
* First read troubleshooting guide VSG:Main
* Always provide verbose LOGS ! (command line or from gui)
* Always check your issue against a developer build from Nightly Build of VLC
* Tell us when your problem is solved !

mangup
Blank Cone
Blank Cone
Posts: 71
Joined: 12 Apr 2019 20:23

Re: load subtitles file without dialog opening

Postby mangup » 17 Jun 2019 11:49

not that.
I have fragmented mp4 file with multiple subtitle tracks. some of them are not fragmented and vlc does not play them. But it can to play them, if they are extracted to external file.
I want to mark (some how) that tracks and load external file when user select one of that tracks from menu.

unidan
Developer
Developer
Posts: 1493
Joined: 25 Mar 2018 01:00

Re: load subtitles file without dialog opening

Postby unidan » 17 Jun 2019 18:59

you have to use the input slave system to join your main media with the subtitle media.

mangup
Blank Cone
Blank Cone
Posts: 71
Joined: 12 Apr 2019 20:23

Re: load subtitles file without dialog opening

Postby mangup » 19 Jun 2019 14:53

during playing with input slave system I've found:
1. a segfault in webvtt: https://trac.videolan.org/vlc/ticket/22448
2. [input-slave] failed to identify SAMI subtitles: https://trac.videolan.org/vlc/ticket/22451


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 3 guests