Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to do two things with an .avi video:

  1. Insert subtitles (.srt) permanently without modifying its timing or the video intself.
  2. Convert the new video (with the permanent subtitles) from .avi to .mpeg.

Is there any way to do it in one or two command lines? (Probably using ffmpeg?)

Some additional data:

  • Subtitles could have some special characters (spanish characters, like: ñ, á, ü ...)
  • Doesn't matter the order of events: first add subtitles to .avi and then convert or first convert and then add subtitles to .mpeg
  • I'm using Ubuntu 11.04 (Natty Narwhal).
share|improve this question

Arista can do both of these things, and it provides a very nice, easy GUI. It's available in the repos.

Screen of Arista

share|improve this answer
How can I insert the SRT file with Arista? – Exeleration-G Aug 10 '13 at 16:14
After choosing the file, click the configuration icon next to it and select the subtitles file to embed. – Federico Pugnali Mar 25 '14 at 1:23

Try using mencoder. Something like this works:

mencoder source.avi -sub -o destination.mpeg -oac mp3lame -ovc lavc -of mpeg

mencoder has a gazillion CLI switches to control video quality, for some ideas see here (specifically about encoding to mpeg):

share|improve this answer

You can use Mobile Media Converter to do these task.

Mobile Media Converter subtitles window

You can download from here.

share|improve this answer
To be honest, of all the options tried (even VLC) this is the only thing that worked as I expected. In all other cases subtitles just would be rendered. Thanks. – Artur Barseghyan Mar 3 at 0:33

In the Arista:

  1. Select "Create Conversion" to get the "Create Conversion" window
  2. Select "Choose File..." as the "Source"
  3. Select the video file
  4. Click on the "gear" next to the "Source" to get the "Source Properties" window
  5. Set "Subtitles to render"
share|improve this answer

I have success with:

ffmpeg -i subs.ass
ffmpeg -i input.avi -vf "ass=subs.ass" output.avi

But I needed to recompile ffmpeg with option --enable-libass.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.