Skip to content

iconv wrapper for batch subtitle encoding converstion

License

Notifications You must be signed in to change notification settings

MichalMMac/convsubtitler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

convsubtitler

convsubtitler.bash is iconv wrapper for batch subtitle encoding converstion.

Notes

convsubtitler.bash atempts to convert supplied files from one encoding to another. You can supply files or directories as arguments. Directories are search for subtitle files using find with file extension as a filter.

Files are converted in place. If you want to retain original files, back them up before conversion or tweak convsubtitler.bash script.

Use at your own risk.

Usage

convsubtitler: Converts subtitle files to different encoding using iconv

convsubtitler.bash [ -s ] [ -s ENCODING_FROM ] [ -t ENCODING_TO ] [ -e SUB_EXTENSION ] file|directory...

-h  
Show this help.
    
-s 
Silent mode. Do not print any output related to subtitle conversion.
    
-f ENCODING_FROM
Current subtitle encoding. See man iconv_open for list of valid encodings.
Default is 'CP1250'.

-t ENCODING_TO
Subtitle files will be converted to this encoding. See man iconv_open for list of valid encodings.
Default is 'UTF-8'.
    
-e SUB_EXTENSION
File extension of subtitle files to be found when searching directory provided as an argument.
Default is '.srt'.

About

iconv wrapper for batch subtitle encoding converstion

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages