senko / python-video-converter

Python Video Converter (ffmpeg wrapper)
468 stars 191 forks source link

[IMP] Add the possibility to define the number of threads used by ffmpeg #55

Open qtheuret opened 9 years ago

qtheuret commented 9 years ago

To improve the performance of video encoding, ffmpeg is able to use multiple cores of the processor (See http://ffmpeg.org/pipermail/ffmpeg-user/2011-July/001735.html)

My pull request allows user to define the number of threads to use for the conversion. It adds a

-threads nb_threads

options to ffmpeg. This option can be set by putting a key 'threads' with a number of threads to use in the Converter.convert() method.