[MEncoder-users] improving performance - general questions

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Aug 18 22:13:08 CEST 2012


On Sat, Aug 18, 2012 at 04:56:45PM -0300, Rossana Guerra wrote:
> 2012/8/18 Reimar Döffinger <Reimar.Doeffinger at gmx.de>
> 
> > On Thu, Aug 16, 2012 at 05:00:49PM -0300, Rossana Guerra wrote:
> > > Hi every one, I have only one processor and it tooks time to add
> > subtitles.
> >
> > Rendering subtitles (at least the plain white/one-colored ones) should
> > take almost no CPU.
> >
> > > So some questions comes to my mind.
> > > I apprecitate any suggestions to improve this task: theading?, enable
> > GPU.
> > > Is better with a good graphic card?.
> >
> > We need more details, in particular including the MPlayer output, to
> > answer that.
> > -vo gl can use the GPU to render the subtitles, but that is not
> > necessarily faster, it can be slower.
> 
> 
> Actually I pre preocess the videos, after that they´ll be played with VLC.

Well, you could leave VLC to handle the srt subtitles directly
obviously, it does support them after all...

> So the only output is the command mencoder console output.
> 
> I noticed add subtitles takes time, any tip.
> 
> This is the command:
> 
> mencoder /carpeta_X/pelicula.avi -sub /carpeta_X/pelicula.srt -oac copy
> -ovc lavc -o /tmp/pelicula_final.avi -subcp latin1 -font
> /usr/share/fonts/msttcore/arial.ttf -subfont-text-scale 2.8

Is the problem that this is slow whether you encode subtitles or not,
or that specifically removing the -sub option (and only that, possibly
replacing it with -nosub) makes it much faster.
Anyway try with -lavcopts vcodec=mpeg4:mbd=0:turbo=yes:vqscale=2


More information about the MEncoder-users mailing list