openzim / python-scraperlib

Collection of Python code to re-use across Python-based scrapers
GNU General Public License v3.0
18 stars 16 forks source link

Limit ffmep to using only one CPU thread #123

Closed benoit74 closed 4 months ago

benoit74 commented 5 months ago

We would like to constrain ffmpeg to use only 1 CPU thread by default, and allow the scraper to let choose more if appropriate (usually it is not appropriate, the scrapers are already allowing to parallelize multiple videos processing).

Attention needs to be paid to the fact that the setting works with all encoders (at least the ones we use).