Created
October 8, 2017 12:29
-
-
Save Kelfitas/1a137377229c9b1f10d9ae22d5d1a203 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function play() { | |
# Usage: play /path/to/video /path/to/sub audio_out | |
# audio_out: hdmi(default) / local / both / alsa [:device] | |
audio_out=$3 | |
: ${audio_out:=alsa} | |
iconv -f windows-1250 -t UTF-8 $2 -o /tmp/sub.srt | |
omxplayer -r -p --adev=$audio_out $1 --subtitles=/tmp/sub.srt | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment