Page 1 of 1

High priority transcoding and threads

Posted: 09 Jul 2007 07:02
by charlest
If I've switched on high priority transcoding, how many transcode threads should I be allocating?
If you've time, could you explain the ideas behind these two parameters?

According to help the two corresponding parameters are "transocde-threads" and "transcode-high-priority".

Re: High priority transcoding and threads

Posted: 09 Jul 2007 12:56
by dionoea
The threads options tells VLC how many threads the encoder can use (if the codec supports it). It's usually a good idea to set this to the number of CPU cores you have (or CPU x2 if they're hyperthreaded). This enables using more than 1 CPU at a time.

Re: High priority transcoding and threads

Posted: 10 Jul 2007 00:45
by charlest
Thanks for your reply. I've several related questions.

If I don't specify the "transcode-threads" option, am I correct to assume only one thread would be used by the encoder?
If I'm DirectShow as the software encoder, would VideoLAN supports the parameters "transocde-threads" and "transcode-high-priority"?

Re: High priority transcoding and threads

Posted: 10 Jul 2007 10:43
by dionoea
Default is to only use one thread per encoder (which is what most encoders support anyway. The only one I know to be able to use more than 1 thread is x264).

About the directshow stuff, I don't have a clue. You should ask Trax on our IRC channel.