Discussion:
ffmpeg2theora multi-threading
Leo Izen
2011-01-22 02:56:43 UTC
Permalink
Is there a way to use multi-threading with ffmpeg2theora? Pretty much any
type i'm ok with, including multi-threaded theora encoding or multi-threaded
ffmpeg decoding, or using half of my cpu cores on ffmpeg decoding and the
other half on theora encoding. Is there a way to do multithreaded thoera
encoding?
Benjamin M. Schwartz
2011-01-22 05:40:26 UTC
Permalink
Post by Leo Izen
Is there a way to do
multithreaded thoera encoding?
The only thing I know of that seems relevant is gstreamer. With gstreamer
you can "easily" do decoding, processing, and re-encoding in separate
threads. You can make use of this directly (in a gstreamer pipeline via
gst-launch) or by using an application such as Pitivi, Arista, or
Transmaggedon that is based on gstreamer.

There is currently no truly multithreaded encoder that breaks the encoding
of Theora into multiple threads.

--Ben
Felipe Portavales Goldstein
2011-01-22 11:59:19 UTC
Permalink
On Sat, Jan 22, 2011 at 3:40 AM, Benjamin M. Schwartz
 Is there a way to do
multithreaded thoera encoding?
The only thing I know of that seems relevant is gstreamer.  With gstreamer
you can "easily" do decoding, processing, and re-encoding in separate
threads.  You can make use of this directly (in a gstreamer pipeline via
gst-launch) or by using an application such as Pitivi, Arista, or
Transmaggedon that is based on gstreamer.
There is currently no truly multithreaded encoder that breaks the encoding
of Theora into multiple threads.
Yes there is.
I did that:
http://svn.xiph.org/branches/theora-multithread/

But the gain with 2 cores is usually small (about 10% to 20%) due to
datapath dependencies of the implementation.
--Ben
_______________________________________________
theora mailing list
http://lists.xiph.org/mailman/listinfo/theora
--
________________________________________
Felipe Portavales Goldstein <portavales at gmail>
MS Student - IC-UNICAMP
Computer Systems Laboratory
http://lampiao.lsc.ic.unicamp.br/~portavales/
Loading...