Download SRT file
Adjust time stamps
Convert to utf8 with iconv
-
iconv -f $SRC_ENCODING -t UTF8 $TITLE.srt > $TITLE.utf8.srt
Mux in with MP4box, setting lanuage
-
MP4Box -add utf8_$FILE:lang=ENG $
Fix subtitle identifier
-
perl -p -i -e 's/text/sbtl/'
Notes
- Working with files containing h.264, aac, sbtl
Test
MP4Box -add test.utf8.srt#trackID=3:lang=ENG test.m4v