Most Greek subtitle files are encoded as "windows-1253".
In Ubuntu the default decoding is UTF8. So when user tries to play a video file with greek subtitles that are not in UTF8 format , the player displays wrong characters.
I created a simple python script which encodes a subtitle file from "windows-1253" to "UTF-8". A new subtitle file with UTF8 prefix will be created at the same folder of subtitle provided.
Usage: encodeSubs "PathToSubs/subs.srt"
Installation:
Mac OS X
Run included install script from terminal or copy encodeSubs file to /usr/sbin/. You can also use it without installation, just run it from terminal.
Linux
Run installLinux script. If you are on LinuxMint 15+ use installMint instead.
Download: Dropbox
Source: Github
In Ubuntu the default decoding is UTF8. So when user tries to play a video file with greek subtitles that are not in UTF8 format , the player displays wrong characters.
I created a simple python script which encodes a subtitle file from "windows-1253" to "UTF-8". A new subtitle file with UTF8 prefix will be created at the same folder of subtitle provided.
Usage: encodeSubs "PathToSubs/subs.srt"
Installation:
Mac OS X
Run included install script from terminal or copy encodeSubs file to /usr/sbin/. You can also use it without installation, just run it from terminal.
Linux
Run installLinux script. If you are on LinuxMint 15+ use installMint instead.
Download: Dropbox
Source: Github
No comments:
Post a Comment