improving performance - general questions
Hi every one, I have only one processor and it tooks time to add subtitles. 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?. Thanks and regards Rossana
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.
On Sat, Aug 18, 2012 at 09:44:23PM +0200, Reimar Döffinger wrote:
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.
I missed this was on the mencoder list. So I suspect the issue is having to transcode to add subtitles. In that case it depends on what output format you need, what files size constraints you have, what resolution you want etc. For example with the MPEG-4 ASP encoder if you just set a qscale of 2 and mbd 0 you should be able to reach around 100 fps (ca. 4x realtime) encode speed for DVD resolution even with a single-core CPU. Threading doesn't help if you have only one core.
2012/8/18 Reimar Döffinger <Reimar.Doeffinger@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. 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 Thanks Ro _______________________________________________
MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
On Sat, Aug 18, 2012 at 04:56:45PM -0300, Rossana Guerra wrote:
2012/8/18 Reimar Döffinger <Reimar.Doeffinger@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
2012/8/18 Reimar Döffinger <Reimar.Doeffinger@gmx.de>
On Sat, Aug 18, 2012 at 04:56:45PM -0300, Rossana Guerra wrote:
2012/8/18 Reimar Döffinger <Reimar.Doeffinger@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
Sorry, I didn'y understand very well, maybe is my english and because I am totally new with mencoder. I need to add subtitles, sio why to use nosub? As I posted before, this is the command I am using: 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 thanks Rossana
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
On 08/18/2012 04:16 PM, Rossana Guerra wrote:
2012/8/18 Reimar Döffinger <Reimar.Doeffinger@gmx.de>
On Sat, Aug 18, 2012 at 04:56:45PM -0300, Rossana Guerra wrote:
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
Sorry, I didn'y understand very well, maybe is my english and because I am totally new with mencoder.
I need to add subtitles, sio why to use nosub?
To find out whether it's specifically the subtitles that are making it slow, or whether the encoding itself is the slow part. If the subtitles themselves are slowing down the encoding process more than minimally, then that might be a problem (even a bug) in need of fixing. If the encoding itself is slow, that may well just be the nature of the transcoding process.
As I posted before, this is the command I am using:
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
And he was suggesting that you add the '-lavcopts' option, with a particular set of suboptions, to possibly help speed up the encoding process. -- The Wanderer Warning: Simply because I argue an issue does not mean I agree with any side of it. Every time you let somebody set a limit they start moving it. - LiveJournal user antonia_tiger
On 12-08-18 8:44 PM, The Wanderer wrote:
On 08/18/2012 04:16 PM, Rossana Guerra wrote:
2012/8/18 Reimar Döffinger <Reimar.Doeffinger@gmx.de>
On Sat, Aug 18, 2012 at 04:56:45PM -0300, Rossana Guerra wrote:
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
Sorry, I didn'y understand very well, maybe is my english and because I am totally new with mencoder.
I need to add subtitles, sio why to use nosub?
To find out whether it's specifically the subtitles that are making it slow, or whether the encoding itself is the slow part.
If the subtitles themselves are slowing down the encoding process more than minimally, then that might be a problem (even a bug) in need of fixing. If the encoding itself is slow, that may well just be the nature of the transcoding process.
As I posted before, this is the command I am using:
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
And he was suggesting that you add the '-lavcopts' option, with a particular set of suboptions, to possibly help speed up the encoding process.
I repeat what Reimar asked earlier. Why not skip transcoding entirely, and use VLC to display the srt subtitles at playback time? Is there some specific reason you want the subtitles burned into the video (since that requires re-encoding the video, which is something of a hard job for a single processor machine)?
Rossana Guerra <guerra.rossana <at> gmail.com> writes:
Sorry, I didn'y understand very well, maybe is my english
and because I am totally new with mencoder.
Just to make sure you know: MEncoder is not actively maintained for several years, for all typical tasks you should use FFmpeg (which is actively maintained software). Unfortunately there are still things that MEncoder can do but FFmpeg can't but burning subtitles on videos was implemented a few days ago in FFmpeg iirc. And unrelated to above: On all mailing lists (ffmpeg-user, mplayer-users and here), you are expected to post your command line together with complete, uncut console output. Without it, it is very likely that the answer you get is missing the most important things. Carl Eugen
2012/8/19 Carl Eugen Hoyos <cehoyos@ag.or.at>
Rossana Guerra <guerra.rossana <at> gmail.com> writes:
Sorry, I didn'y understand very well, maybe is my english
and because I am totally new with mencoder.
Just to make sure you know: MEncoder is not actively maintained for several years, for all typical tasks you should use FFmpeg (which is actively maintained software). Unfortunately there are still things that MEncoder can do but FFmpeg can't but burning subtitles on videos was implemented a few days ago in FFmpeg iirc.
And unrelated to above: On all mailing lists (ffmpeg-user, mplayer-users and here), you are expected to post your command line together with complete, uncut console output. Without it, it is very likely that the answer you get is missing the most important things.
Carl Eugen
Hi Carl, thanks for your response. I'll cut my output console later, sorry for that. As for using VLC subtitles, that I was asked before, it isn't possible this time because some use requirements (non technical) that are beyond me and it will take longer to explain. Regards Rossana
_______________________________________________ MEncoder-users mailing list MEncoder-users@mplayerhq.hu https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
participants (5)
-
Carl Eugen Hoyos -
James Hastings-Trew -
Reimar Döffinger -
Rossana Guerra -
The Wanderer