I want to burn a subtitle file with .srt
format in Persian (-utf8) into a video file with .mp4
format using mencoder. I'm using ubuntu 14.04. This command works for the simple task of burning subtitle on video file:
sudo mencoder input.mp4 -sub subtitle.srt -utf8 -o output.mp4 -oac pcm -ovc lavc
Now I want to change the color and font size of subtitle, and also add background for the subtitle. I've seen some commands here, like -ass-color <value>
, -sub-bg-color
but They don't work together. -sub-bg-color works when I import the .srt file, and -ass-color works with .ass format. Also I don't want to convert .srt files to .ass.
Does anyone know how can I complete this line of command to do these changes I mentioned above?
Any equal command in ffmpeg is also wellcomed. I'm using mencoder just to avoid messing up with ffmpeg compiling process.