gophergala2016/SubLangLearn

Name: SubLangLearn

Owner: gophergala2016

Description: Watch a movie with foreign audio track, play with subtitles - and learn new language.

Created: 2016-01-22 19:24:31.0

Updated: 2016-01-29 07:34:24.0

Pushed: 2016-01-24 19:33:04.0

Homepage:

Size: 560

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

SubLangLearn

Watch a movie with foreign audio track, play with subtitles - and learn new language.

It is a simple golang webserver that controls VLC Player via Remote Control. A uses reads subtitles in browser and can jump to previous or next phrases easy.

For me - English is a foreign language. screenshot

Prerequisites

VLC Player.

Tested only on Windows 10 x64.

Optional “config.ini” file (sample file is in sources):

path to VLC player:

vlc_path=C:\Program Files (x86)\VideoLAN\VLC\vlc.exe

tcp port of VLC Player Remote Control:

vlc_port=3016

tcp port of golang webserver:

web_port=2016

Start

Usage: SubLangLearn.exe <movie_path> <subtitles_path>

Example: SubLangLearn.exe "D:\FRIENDS\Season 02\02x01 - The One With Ross' New Girlfriend.avi" "D:\FRIENDS\Season 02\02x01 - The One With Ross' New Girlfriend.srt"

!!! Sometimes start is crashed - repeat please.

Subtitles should be in .srt format and utf-8 encoded.

Open page “localhost:2016” (web_port from config.ini)

Play

If need - select required audio track in VLC Player.

Seek phrases (browser or player), repeat complex sentences, listen to difficult words, …

Stop

Close VLC Player.

Stop SubLangLearn.exe (Ctrl-C).


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.