Hacker News new | ask | show | jobs
by stanchsk 1860 days ago
Hi, could you specify the howto?
1 comments

Hi, stanchsk,

After installation, simply passing in the source and target language codes should do the job. E.g., $ subaligner -m dual -v video.mp4 -s subtitle.srt -t eng,spa

Or just translate without synchronisation: $ subaligner_convert -i subtitle_en.srt -o subtitle_es.srt -t eng,spa

Thanks. How can I find which language codes I should use?
You can get them displayed by running: $ subaligner -lgs (on the first column). Notably, it is not the comprehensive list.