Erik Thuning
a0bba02840
Major updates to the subtitles handler with some knock-on effects
...
- More than one subtitles handler can be run in parallel
- Language can be specified in generation tasks
- Switched to pathlib for path handling in subtitles handler (simpler)
- Handlers are now instantiated via factory function
2023-11-24 16:17:51 +01:00
Erik Thuning
755b8e6839
Reduced the pool size in the tests for more sane error output
2023-11-23 15:44:07 +01:00
Erik Thuning
2ce11af099
Formatting
2023-11-23 15:43:38 +01:00
Erik Thuning
b81bd64ffd
Made it possible to have more than one handler of the same type
...
by making the handler's queue an init parameter.
2023-11-23 15:41:42 +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
c5bfc9f8d5
Made queue items be processed chronologically on start
2023-11-22 10:03:54 +01:00
Erik Thuning
5641aef235
Fixed a crash caused by empty sequence
2023-11-22 09:44:00 +01:00
Erik Thuning
1b9c77fd84
Updated the readme
...
The setup instructions now detail how to run the service in a venv.
Also fixed a bad Restart= setting
2023-11-17 12:40:51 +01:00
Erik Thuning
022949c3c2
Refactored the transcode pipeline
...
- better exceptions
- simpler handling of scaling
- terrible nvidia encode results (still)
2023-11-10 14:27:32 +01:00
Erik Thuning
8f466a8e09
Changed ValidationException to ValueError in default preprocessor,
...
in order to harmonize with errors thrown by raise_for_structure()
2023-11-08 10:30:17 +01:00
Erik Thuning
1e6c8ac178
Settled on how to stringify the error message from ffmpeg
2023-11-08 10:26:10 +01:00
Erik Thuning
10db80cbfa
Forgot an import
2023-11-08 10:22:48 +01:00
Erik Thuning
9bdb1dbef9
Trying to fix lack of newlines in ffmpeg errors
2023-10-26 09:49:13 +02:00
Erik Thuning
08a8db11b8
Accidentally a dict key
2023-10-25 16:03:40 +02:00
Erik Thuning
e08184e05b
Added an explicit check for existence of upload_dir if the job specifies it.
2023-10-19 11:22:12 +02:00
Erik Thuning
9b43bf5eee
Small tweak to avoid reserving space when nothing is waiting
2023-10-10 14:09:21 +02: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
291a828b1b
Removed dead code
2023-10-09 16:41:50 +02:00
Erik Thuning
6309f1f4a4
Added WorkThread, a class handling long-running jobs by means of a prioritized queue.
2023-10-09 16:39:55 +02:00
Erik Thuning
02d8c98665
Finished experimenting on nvidia options
2023-10-05 16:44:34 +02:00
Erik Thuning
88096714ff
More nvenc experiments
2023-10-04 15:25:01 +02:00
Erik Thuning
80cdf629c1
Removed obsolete variables in excpetion block
2023-10-04 15:13:08 +02:00
Erik Thuning
ae431e6902
Testing nvidia settings
2023-10-04 15:10:05 +02:00
Erik Thuning
2bc1621697
Fixed a typo
2023-10-04 15:07:34 +02:00
Erik Thuning
72e4a59101
Experimental nvidia settings
2023-10-04 15:06:00 +02:00
Erik Thuning
e9b6bb5376
Forgot an import
2023-10-04 14:11:36 +02:00
Erik Thuning
16a3a120ff
Preparing for hardware encoding support
2023-10-04 14:09:12 +02:00
Erik Thuning
c9187e5736
Fixed a missing qualifier in thumbnail.py
2023-10-02 16:51:29 +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
42efec0fb5
Attempting to prevent threads from dying on errors
2023-09-22 21:08:45 +02:00
Erik Thuning
7b3eb380c0
Missed an instance of the creation key to be changed
2023-08-30 20:40:13 +02:00
Erik Thuning
8bc1ff6318
Removed an empty subtitles key from cattura preprocessing, and fixed a misnamed 'creation' key to the correct name 'created'
2023-08-30 14:58:31 +02:00
Erik Thuning
deeb55b73f
Fixed the courseSegmentInstance sorting bug and added reasoning for sorting in the first place
2023-08-29 11:23:04 +02:00
Erik Thuning
c0fe9a8cb1
Fixed a bug when sorting booking items
2023-08-29 10:29:06 +02:00
Erik Thuning
c2a1cf61a0
Changed a bunch of debug messages to info, to make logging slightly less verbose if needed.
2023-08-24 14:06:39 +02:00
Erik Thuning
b7f0f562a8
Fixed a use before set, and refactored to make it less likely
2023-08-24 13:40:10 +02:00
Erik Thuning
4f97bfe44e
Guarding against exceptions when applying handler results to package
2023-08-24 13:27:04 +02:00
Erik Thuning
787fb605e1
Subtitle replacement and deletion now works as expected
2023-06-15 10:59:54 +02:00
Erik Thuning
3970c21a02
Fixed a logic bug where valid subtitle specifications were being rejected
2023-06-15 10:09:13 +02:00
Erik Thuning
bc5b3932f1
Fixed some logical errors in subtitle generation
2023-05-25 09:31:44 +02:00
Erik Thuning
c9d99add9d
Re-work of transcode handling so that errors in transcoding can be properly reported with no crashes.
2023-05-24 14:48:13 +02:00
Erik Thuning
98595461a0
Fixed existing packages not getting loaded correctly due to a bad assumption about package base paths
2023-05-24 14:46:54 +02:00
Erik Thuning
a0996a9bba
The distributor thread will no longer crash if there is more than one pending job for a single package.
2023-05-16 11:25:02 +02:00
Erik Thuning
ee5c420f4b
package_id wasn't being assigned if it was supplied in the incoming package
2023-05-16 10:28:57 +02:00
Erik Thuning
51c67e9737
Fixed duration keyts still being around in places where they shouldn't
2023-04-20 14:02:12 +02:00
Erik Thuning
0e08ae3f12
Uploaded files in subdirectories are now handled properly
2023-04-14 15:52:14 +02:00
Erik Thuning
06eb7dc233
Error notifications no longer cause the entire job to be deleted.
...
Preparing for improved mid-job error handling and fixed a bug involving the temporary package copy's basedir not existing
2023-04-14 15:08:43 +02:00
Erik Thuning
0f0c97125f
Added an FFmpegException type
2023-04-14 15:05:56 +02:00
Erik Thuning
9a372df9f6
Updated ERADME to reflect new course format
2023-04-14 15:05:23 +02:00