guy labs guy labs

Extract subtitles from mkv files and convert to the srt format

General, Mac OSX
/by
In the todays blog post I will show you how to extract subtitles from a MKV file and how to convert the .sub/.idx files to .srt files. I have this requirement as I use the Twonky mediaserver which only accepts .srt files with my Samsung TV. The whole guide is using brew and therefore is only for Mac users. There are surely similar or the same tools available for any other linux or maybe also Windows. If you find these please tell me such that I can update this blog post. So lets start by installing the needed tools for extracting the subtitles from the .mkv files: Next we want to see all tracks of the .mkv file: This will give you a similar output: So we see that this .mkv has one video, two audio (english and german) and two VobSub subtitles tracks (english and german). We are interested in the two last tracks and with these commands you can extract them: Currently I only extracted VobSub subtitles and this guide deals with the .sub/.idx files and convert them to the .srt format. It could also be that there are already .srt files in the .mkv files, then you do not need to convert anything and just check the language of the subtitles by opening them in any text editor and check the language. This will result in four files named sub3.idx/sub3.sub and sub4.idx/sub4.sub in the same directory. Currently we do not see what language the subtitles are so we need to convert them to...

Get rid of .DS_Store files on Mac OS X 10.10

Mac OSX
/by
After a long pause I have a new blog post about the annoying   files which are generated by the built in Finder application in Mac OS X. First of all we need to close all Finder windows and then we execute the following commands inside a terminal: This command disables the creation of the   files on the following network drive types: SMB/CIFS, AFP, NFS, and WebDAV. Next we need to install Asepsis. This tool redirects the creation of the   files to another folder such that the built in Finder is still able to save its meta data, and we do not have the   files in each folder anymore. To install this application just download it from here and then execute the installer and then you need to restart the machine. The next step is for the people which do not need the specific folder views for each folder etc. from the built in Finder, because with the following command we remove all the   files from the hard drive. After you have executed the command, the built in Finder has the default view on all folders. After this step you will never find any   file again in any of your folders. I hope you find this post useful as it is a complete guide on how to "disable" the   files. Cheers, Guy PS: For the ones asking themselves why I now write about Mac OS X topics: I recently needed to switch to Mac because there are some applications which we use at our company which just didn't work...