Alefielm 7 Posted March 7, 2021 Share Posted March 7, 2021 Hi! Currently the subrip subtitles are extrated on the fly when playing from, for example, an MKV container. the process is slow, don't show the subtitles from start, and if the file is 4k/1080p on a slow server (ej Rpi) it could timeout and leave us without subtitles. What I am thinking about: - When searching for subtitles on open subtitles, etc, if there is no standard (srt) file found extract it using something like this: mkvextract tracks video.mkv 3:video.srt I'm currently manually running this for each file with subrip embedded subtitles and it works like charm, and I'm sure that the subtitles are correct. There are multiple tools that get the job done, I choose this because it's open source and currently maintained. https://mkvtoolnix.download/ Thanks! 4 Link to comment Share on other sites More sharing options...
Luke 37057 Posted March 7, 2021 Share Posted March 7, 2021 Hi, yes this idea has come up before and it's possible for the future. Thanks. 1 Link to comment Share on other sites More sharing options...
Alefielm 7 Posted March 7, 2021 Author Share Posted March 7, 2021 Thank you! Link to comment Share on other sites More sharing options...
Guest Posted March 7, 2021 Share Posted March 7, 2021 (edited) Are you saying to extract them and save them as in external SRT, like to the video folder? Playing with tool you listed and gMKVExtractGUI to extract a few. .SUP seems to be useless though. I have installed Subscene but need to test it still, I quit bothering with OpenSubtitles ( personal choice, for me it never works anymore ). I have all of the ones I used with MPC-HC in the past which works great and seem to be the best for me. SRT, IDX, SMI, etc... Edited March 7, 2021 by Guest Link to comment Share on other sites More sharing options...
Alefielm 7 Posted March 7, 2021 Author Share Posted March 7, 2021 6 hours ago, Hxemby001 said: Are you saying to extract them and save them as in external SRT, like to the video folder? Playing with tool you listed and gMKVExtractGUI to extract a few. .SUP seems to be useless though. I have installed Subscene but need to test it still, I quit bothering with OpenSubtitles ( personal choice, for me it never works anymore ). I have all of the ones I used with MPC-HC in the past which works great and seem to be the best for me. SRT, IDX, SMI, etc... I don't understand if this is on topic, I used that tool to extract "SUBRIP" from the MKV container to the video directory with SRT format, works great Link to comment Share on other sites More sharing options...
Guest Posted March 7, 2021 Share Posted March 7, 2021 It was a question of; if you meant for it to say, or was stating that it would be a good idea to extract when scanning the library and saved to the directory before being streamed or 'on the fly', in the form of SRT or whatever format. And also that your right about it being better without extraction during transcoding and other operations at the same time. I guess I was not sure if you were wanting it to be requested/extracted from the file differently or if you wanted them to be pre-extracted and saved for future use within the library. Link to comment Share on other sites More sharing options...
Alefielm 7 Posted March 7, 2021 Author Share Posted March 7, 2021 2 hours ago, Hxemby001 said: It was a question of; if you meant for it to say, or was stating that it would be a good idea to extract when scanning the library and saved to the directory before being streamed or 'on the fly', in the form of SRT or whatever format. And also that your right about it being better without extraction during transcoding and other operations at the same time. I guess I was not sure if you were wanting it to be requested/extracted from the file differently or if you wanted them to be pre-extracted and saved for future use within the library. Ok, second one. Pre extracted for future use Link to comment Share on other sites More sharing options...
neik 837 Posted March 8, 2021 Share Posted March 8, 2021 16 hours ago, Alefielm said: Currently the subrip subtitles are extrated on the fly when playing from, for example, an MKV container. This is with internal text SUBRIPs, what about graphical VOBSUB/PGSSUB, are they also extracted first? Link to comment Share on other sites More sharing options...
Luke 37057 Posted March 8, 2021 Share Posted March 8, 2021 8 hours ago, neik said: This is with internal text SUBRIPs, what about graphical VOBSUB/PGSSUB, are they also extracted first? No, those get burned in with transcoding if the client app doesn't support them. 1 Link to comment Share on other sites More sharing options...
Guest Posted March 8, 2021 Share Posted March 8, 2021 I think those two, and one I extracted with a SUP extension were ones I couldn't convert.. Good reason to still have Subscene plugin, or download them manually. Link to comment Share on other sites More sharing options...
rbjtech 4257 Posted March 9, 2021 Share Posted March 9, 2021 It's a little more complicated than your first example.... I do this as part of my file 'pre-processing' - as I prefer to use the embedded .srt file vs anything from opensubtitles etc as it's likely a perfect sync match. However, there is no direct tool out there (that I can find) that extracts just ALL subtitles without probing the file to compile an extraction list. I cheat and use eac3to to extract all streams (incl all subtitles) and then copy any .srt files in the language I'm after - and simply delete the rest. But this is obviously not very efficient. Someday I'll get around to writing a script to do it properly using ffprobe to compile a list of all the SRT tracks and then ffmpeg to extract them... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now