20 Commits

Author SHA1 Message Date
Erik Thuning cbf29c4962 Implementing a unified job pool for transcodes and subtitles never panned out,
so the code was just adding unnecessary complexity. The pipeline now uses
mp.pool to manage ffmpeg jobs as before.

This reverts commit f91109fb3e and deletes the
WorkThread class and its associated tests.
2024-10-17 11:34:00 +02:00
Erik Thuning dd0af2221f Removed GPU code from transcode.py, since it never worked properly.
Also cleaned out irrelevant options from config.ini.example.

 - Removed the encoder setting for transcodes i config.ini.example since only
   software is supported now.
 - Since TranscodeWhisperHandler no longer uses the job pool, removed the
   jobsize setting in config.ini.example.
 - Changed default pool and job size to saner values.

The entire WorkThread class should probably be dropped.
2024-10-16 13:56:17 +02:00
Erik Thuning d6206f1e6b Changed instantiation logic for whisper handler:
- Separated GPU and CPU config keywords
 - GPUs are now chosen based on GPU index
 - Configurable number of threads per GPU
2024-10-14 16:26:31 +02:00
Erik Thuning 10c126a37c Split subtitles handling into two handlers.
One for generation and one for import.
2023-11-30 16:37:13 +01:00
Erik Thuning b5eda4695f Updated logging calls 2023-11-30 09:53:09 +01:00
Erik Thuning e75c1cc282 Added a clarifying comment about jobsize in relation to capacity 2023-11-22 11:11:38 +01:00
Erik Thuning 2e8606b9a4 Fixed a duplicate header 2023-10-09 17:23:32 +02:00
Erik Thuning f91109fb3e Handlers have been switched to the new WorkThread class.
config.ini.example updated to match.
2023-10-09 17:19:16 +02:00
Erik Thuning 2bc1621697 Fixed a typo 2023-10-04 15:07:34 +02:00
Erik Thuning 16a3a120ff Preparing for hardware encoding support 2023-10-04 14:09:12 +02:00
Erik Thuning 100aa9d4dc Started caching generated package ids so they stay consistent across daemon restarts 2023-09-22 23:01:51 +02:00
Erik Thuning 278fe30b02 Refactored subtitles handling to include generation via whisper. 2023-03-27 16:36:27 +02:00
Erik Thuning 870c832ac0 Documentation updates 2023-03-16 07:40:32 +01:00
Erik Thuning c9349ae30b Added logging 2022-11-28 11:40:43 +01:00
Erik Thuning 46bff015aa Added ThumbnailHandler config section 2022-11-28 11:39:43 +01:00
Erik Thuning 6291b66c86 Capitalized all sections in config
Implemented HTTP notification
2022-10-24 16:47:24 +02:00
Erik Thuning a6c714de33 TranscodeHandler now uses a multiprocessing pool for transcode jobs 2022-10-19 17:04:30 +02:00
Erik Thuning 75bd2c222b Updated example config 2022-10-17 11:53:41 +02:00
Erik Thuning bfb62c337f Added remaining preprocessors,
minor update to daisy class for educationalType lookup,
updated example config to reflect preprocessor needs
2022-10-13 17:04:04 +02:00
Erik Thuning 4b739e0a6c Updated readme and started on example config 2022-10-07 15:58:08 +02:00