203 Commits

Author SHA1 Message Date
Erik Thuning 5641aef235 Fixed a crash caused by empty sequence 2023-11-22 09:44:00 +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 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 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 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 480846b617 Refactored the temporary copy function and moved creation of the base directory for a package 2023-04-14 15:01:09 +02:00
Erik Thuning ab1d3bd86a Removed on_modified handling since it triggers unexpectedly 2023-04-14 14:23:29 +02:00
Erik Thuning 9bceb4c000 Added pickup of existing jobs on startup, and added handling of modified files 2023-04-14 11:20:53 +02:00
Erik Thuning 8c25f811c6 Updated the course format in the validation objects 2023-04-14 11:19:11 +02:00
Erik Thuning 1d44234c3c Fixed a number of bugs in the cattura preprocessor 2023-04-14 11:18:44 +02:00
Erik Thuning 6c48c103b1 The format for a course has changed, updated the thumbnail generation logic to match 2023-04-14 11:16:07 +02:00
Erik Thuning b15bcfb652 Temporarily(?) removed the requirement of at least one video stream having to play audio 2023-04-14 11:15:11 +02:00
Erik Thuning 6bee8a7e1c parseSemester had a few bugs, fixed 2023-04-14 11:14:38 +02:00
Erik Thuning 9d10f63587 Temporary files are now cleaned out when the daemon starts up 2023-04-14 11:13:49 +02:00
Erik Thuning 320bacb3b8 Added missing import 2023-04-04 11:34:43 +02:00
Erik Thuning 8582e32f1d Finished updating docstrings to conform to convention. Also made abstract methods throw an exception if they get called. 2023-03-28 16:43:45 +02:00