Posts: 83
Joined: Jan 2018
Reputation:
8
Is there any way to extract subtitles from mkv or mp4 containers by add-on using only Kodi resources?
The naive way would be to use mkvextract, but it is not available in Kodi. Also ffmpeg has this ability, but it is statically linked in the Kodi and not available to the add-on - unless there is some API I'm not aware about.
Posts: 455
Joined: Jun 2013
Reputation:
100
2019-04-11, 07:39
(This post was last modified: 2019-04-11, 07:46 by gujal.)
It may be possible if someone develops a VFS addon for MKV container which will then give access to the individual streams (video, audio, subs, chapters).
VFS addons are binary addons so needs expert devs
Kodi 21 Windows 10 and 11 | 21 Xbox One X | 21 Linux Mint Virginia XFCE | CoreELEC NO 21 nightly S905X4 aarch64
Posts: 14,213
Joined: Nov 2009
Reputation:
707
Klojum
Lost connection
Posts: 14,213
If your video files collection is on a network, you don't need to install mkvextract on every (Kodi) client machine. One machine with mkvextract will be enough.
If you work with separate USB drives, then you will need to do extra file juggling, yes.
Posts: 1,275
Joined: Feb 2014
Reputation:
111
There are some MKV Python libraries out there that may do the job.