How to use mencoder trickery to merge SRT (SubRip) subtitles and MP4 or AVI video files.

Burning hard SubRip (SRT) subtitles into AVI video clip
If using winmenc, copy c:\windows\fonts\arial.ttf to subfont.ttf inside the mplayer subdirectory (so mencoder can find a font file for the subtitles)
mencoder -oac copy -ovc raw -sub input.srt -subfont-text-scale 3.0 -subpos 95 -sub-bg-alpha 50 -utf8 -o output.avi input.avi

Burning hard SubRip (SRT) subtitles into MP4 video clip
mencoder -oac mp3lame -ovc lavc -lavcopts vcodec=mpeg4 -sub input.srt -subfont-text-scale 3.0 -subpos 95 -sub-bg-alpha 50 -utf8 -o output.mp4 input.mp4

How to convert MP4 into AVI and resize along the way
Get the Automated FFmpeg Win32 builds made by Ramiro Polla.
ffmpeg -i input.mp4 -map 0:0 -map 0:1 -vcodec mpeg4 -b 500k -s 640×480 -acodec copy -f avi output.avi

How to create SubRip SRT subtitles files:
Freeware for Windows: Subtitle Workshop.
Payware for Mac OSX: MovCaptioner.

This entry was posted in Video, Web/Tech. Bookmark the permalink.