Parallelize media-library (re)indexing
When serviio begins indexing a newly added directory, ffmpeg process can be seen in top(1) chewing up the CPU for that still image 120 seconds into the video. Contacting the external sources of metadata can also take real-time...
I'd like to see these steps performed in parallel -- today's computers have at least two cores, and often more than that. How many of each to run, can be configurable through console (like the number of rendering threads is set now), or determined with the following logic:
I'd like to see these steps performed in parallel -- today's computers have at least two cores, and often more than that. How many of each to run, can be configurable through console (like the number of rendering threads is set now), or determined with the following logic:
- The CPU-intensive steps can simply be one per CPU.
- Those involving remote connections can be even bigger in number -- two per processor would be conservative...
FreeBSD port of Serviio is now in the tree. Please, try using it and share your experience.