Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
anka... din Valcea
Femeie
25 ani
Valcea
cauta Barbat
25 - 40 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [WINDOWS] Extract Subtitle Tracks from Multiple Video Files Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
Mrrrr
AdMiN

Inregistrat: acum 17 ani
Postari: 2186
I have about 140 videos, all having tracks with subtitles in 50 languages each. So each video file contains the video track, the audio track, and 50 more subtitle tracks for 50 languages. 50 subtitles x 140 videos = 7000 - that's a lot of files. I want to do the following steps, and this is the fastest way I found to do it:

First, some software requirements - all programs are free for personal use:
- MKVToolNix (step 4) - DOWNLOAD AND INSTALL (or use portable)
- gMKVExtratGUI (step 1) - DOWNLOAD AND INSTALL (or use portable)
- Bulk Rename Utility (step 3) - DOWNLOAD AND INSTALL (or use portable)
- Windows PowerShell - preinstalled in Windows (step 2)

1. Extract all subtitle tracks from the video container as files (eg. srt, or ass files etc.)
- assuming you already installed MKVToolNix and gMKVExtratGUI
- open gMKVExtratGUI
- click the Options button
- in the field called Subtitle Tracks, change the pattern like this: {Language}_{FilenameNoExt}_track{TrackNumber}
---- even though it seems like you don't need the track{TrackNumber} tag, it's better to leave it on as you might have 2 tracks both for Portuguese, but one for Portugal and one for Brazil, and you might get conflicting names if you don't leave that tag
- click OK in the Options window
- select all the desired video files and drag them to gMKVExtratGUI window, then wait for all to load
- right click anywhere inside the window and click Check Subtitle Tracks - All Subtitle Tracks
- click on the Extract button and wait for it to finish
- look inside the folder containing the videos to find all your subtitle files

2. Move all subtitle files into subfolders based on the first 3 letters of each file
- move all subtitle files extracted using the step above to a subfolder called, for example, Subs
- you don't need to create any language folders or anything
- using the method from the following link, move the files to corresponding language folders:

3. Rename files according to your needs
- I want to keep my main language subtitles in the same folder as the video files
- assuming you have Bulk Rename Utility installed (if it's portable you will have to open it and manually navigate to the desired folder)
- right click the language folder (eg. eng) and select Bulk Rename Here
- select all the files in the folder
- under Remove - First n: 4
---- to remove "eng_" from the beginning of the filename
- under Remove - Last n: 7
---- to remove _track3
---- if it is a track above 9 (eg track15) you will need to put Last n: 8, and so on
- click the Rename button

4. Remove all subtitle files from the video container, to leave only video track and audio track
- open MKVToolNix
- in the menu bar on top, go to KMVToolNix GUI - Preferences (or press CTRL+P)
- click the Enabling items section
- on the top of the section, move from right to left the items you want removed, so:
---- in the Available field you should move the things you want to be automatically unselected when loading a video in MKVToolNix. I moved there:
________ Attachment
________ Buttons
________ Chapters
________ Global tags
________ Subtitles
________ Tags
---- in the Selected field you want to leave the things you want to remain automatically selected in your video containers. I left the following items in this field:
________ Audio
________ Video
- click OK to close the preferences window
- select all the video files in your folder and drag them onto the MKVToolNix window
- when a box appears, chose the option: "Create new multiplex settings for each file" and click OK
- after the files load, each will have selected only the Audio and Video tracks
- in the menu bar on top, go to Multiplexer - Actions for all tabs - Start multiplexing
- by default, MKVToolNix will create a file in the source folder, and rename it by adding (1) at the end of the file
- wait for the process to finish, and you can delete the old files

If you did these steps you now have the video files separately from the subtitle files.


_______________________________________


pus acum 3 luni
   
Pagini: 1  

Mergi la