Sunday, 16 February 2014

Burn srt to avi in Linux

 To split files use avisplit like:
avisplit -s 300 -i video.avi 
 Then to burn subtitle to the video.avi:


 mencoder  in.mp4 -sub mysub.srt -subcp utf8 -subfont-text-scale 2 -sub-bg-color 0 -sub-bg-alpha 100  -subfont-outline 1  -ovc xvid -oac mp3lame -xvidencopts pass=1   -o out.mp4


Note: You need to either import a proper ttf file to your ~/.mplayer OR symlink the folder to a ttf file in /usr/share/fonts. (Doc)



No comments:

Post a Comment