Commit graph

151 commits

Author SHA1 Message Date
ed ac1bc232a9 black 2024-05-31 08:57:33 +00:00
ed 07ea629ca5 keep most tags during audio transcode
metadata is no longer discarded when transcoding to opus or mp3;
this was a good idea back when the transcodes were only used by
the webplayer, but now that folders can be batch-downloaded with
on-the-fly transcoding, it makes sense to keep most of the tags

individual tags are discarded if its value exceeds 1023 letters

this should mainly affect the following:
* traktor beatmaps, size usually somewhere around 100 KiB
* non-standard cover-art embeddings, size around 250 KiB
* XMP (project data from adobe premiere), around 48 KiB
2024-05-30 23:46:56 +00:00
ed 82ce6862ee option to use pngquant for smaller waveform PNGs 2024-05-10 13:06:02 +00:00
ed 38e4fdfe03 batch-convert audio waveforms with ?tar&p 2024-05-10 12:55:35 +00:00
ed c04662798d play compressed s3xmodit chiptunes
adds support for playing gz, xz, and zip-compressed tracker files

using the de-facto naming convention for compressed modules;

* mod: mdz, mdgz, mdxz
* s3m: s3z, s3gz, s3xz
* xm: xmz, xmgz, xmxz
* it: itz, itgz, itxz
2024-05-10 12:45:17 +00:00
ed c8e3ed3aae retry failed renames on windows
theoretical issue which nobody has ran into yet,
probably because nobody uses this on windows
2024-04-12 20:38:30 +00:00
ed a080759a03 add transcoding to mp3
because CU's car stereo can't do opus...

incidentally adds support for playing any audio format in ie11
2024-03-29 16:36:56 +00:00
ed 8e5c436bef black + isort 2024-03-21 18:51:23 +00:00
ed 33f41f3e61 add hi-res thumbs (togglebtn/servercfg) 2024-02-18 13:04:22 +00:00
ed 3313503ea5 retry deleting busy files on windows:
some clients (clonezilla-webdav) rapidly create and delete files;
this fails if copyparty is still hashing the file (usually the case)

and the same thing can probably happen due to antivirus etc

add global-option --rm-retry (volflag rm_retry) specifying
for how long (and how quickly) to keep retrying the deletion

default: retry for 5sec on windows, 0sec (disabled) on everything else
because this is only a problem on windows
2024-01-17 20:27:53 +00:00
ed 95a599961e add RAM usage tracking to thumbnailer;
prevents server OOM from high RAM usage by FFmpeg when generating
spectrograms and waveforms: https://trac.ffmpeg.org/ticket/10797
2024-01-14 04:15:09 +00:00
ed 86419b8f47 suboptimizations and some future safeguards 2024-01-10 23:20:42 +01:00
ed dc8e621d7c increase OOM kill-score for FFmpeg and mtp's;
discourage Linux from killing innocent processes
when FFmpeg decides to allocate 1 TiB of RAM
2024-01-07 17:52:10 +00:00
ed 8c52b88767 make linters happier 2023-11-30 17:33:07 +00:00
ed b66843efe2 reduce cpu priority of ffmpeg, hooks, parsers 2023-11-21 22:21:33 +00:00
ed 9ca8154651 prefer the new TTF in pillow 10.1 + pyinstaller 6.1 fixes 2023-10-15 18:47:34 +00:00
ed db668ba491 spectrograms are never cropped; share thumbcache 2023-10-15 11:42:57 +00:00
ed 2df76eb6e1 client decides if thumbnails should be cropped or not
this carries some intentional side-effects; each thumbnail format will
now be stored in its own subfolder under .hist/th/ making cleanup more
effective (jpeg and webm are dropped separately)
2023-10-15 10:21:25 +00:00
ed b54b7213a7 more thumbnailer configs available as volflags:
--th-convt = convt
--th-no-crop = nocrop
--th-size = thsize
2023-07-11 22:15:37 +00:00
ed d3ccd3f174 v1.6.15 2023-04-26 23:00:55 +00:00
ed 42099baeff v1.6.12 2023-04-20 21:41:47 +00:00
ed 749616d09d help iOS understand short audio files 2023-03-19 20:03:35 +00:00
ed 8adfcf5950 win10-based copyparty64.exe 2023-02-14 21:50:14 +00:00
ed dc2e2cbd4b v1.6.5 2023-02-12 14:11:45 +00:00
ed c48f469e39 park all clients waiting for a transcode 2023-02-11 17:23:29 +00:00
ed 44909cc7b8 print ffmpeg download url on windows 2023-02-11 17:22:24 +00:00
ed a4b56c74c7 support long filepaths on win7 + misc windows fixes 2023-02-10 18:37:37 +00:00
ed 6cf53d7364 try next thumbnailer if one fails;
libvips assumes imagemagick was built with avif
2022-12-15 22:34:51 +00:00
ed b070d44de7 libvips logging + raise codec errors 2022-12-15 22:22:04 +00:00
ed edad3246e0 make pylance happier 2022-10-29 20:40:25 +00:00
ed 4bcd30da6b cleaner daemon instancing 2022-10-23 12:05:44 +02:00
ed c003dfab03 unbold ansi grays 2022-10-19 15:30:17 +02:00
ed cecac64b68 v1.4.5 2022-10-09 11:19:40 +02:00
ed 47a1e6ddfa avoid windows funk 2022-09-21 08:25:44 +02:00
ed f1e0c44bdd better autocorrect for poor ffmpeg builds 2022-09-20 23:25:35 +02:00
ed f5520f45ef add pyinstaller 2022-09-19 00:59:54 +02:00
ed f85d4ce82f support alpine's ffmpeg 2022-09-17 23:56:32 +02:00
ed 6bec4c28ba add waveform seekbar 2022-09-17 23:40:37 +02:00
ed 995cd10df8 bump timeouts for zfs / bursty filesystems 2022-09-04 21:21:54 +02:00
ed 5c58fda46d only clean thumbs if there are thumbs to clean 2022-07-08 21:13:10 +02:00
ed 438384425a add types, isort, errorhandling 2022-06-16 01:07:15 +02:00
ed 4e5a323c62 more cleanup 2022-06-08 01:05:35 +02:00
ed 1d9f9f221a louder 2022-05-12 20:55:37 +02:00
ed 214a367f48 be loud about segfaults and such 2022-05-12 20:26:48 +02:00
ed 93febe34b0 truncate huge ffmpeg errors 2022-05-03 00:32:00 +02:00
ed b000707c10 detect poor ffmpeg builds 2022-04-14 18:20:48 +02:00
ed fd9d0e433d thumbnails: try FFmpeg for images too 2022-04-11 10:38:57 +02:00
ed cc4a063695 thumbnails: per-decoder filetype config 2022-04-10 22:59:45 +02:00
ed b64cabc3c9 thumbnails: add pyvips as alt/supp. to pillow 2022-04-10 14:16:09 +02:00
ed ff05919e89 support mpc/musepack audio (streaming + thumbnailing) 2022-04-02 22:17:16 +02:00
ed 36aee085f7 add timeouts to FFmpeg things 2021-11-16 22:22:09 +01:00
ed 51e6c4852b retire ogvjs 2021-11-14 19:28:44 +01:00
ed 171ce348d6 improve swr 2021-11-08 22:25:35 +01:00
ed f050647b43 rescan volumes on sigusr1 2021-11-06 18:20:31 +01:00
ed 862ca3439d proactive opus cache expiration 2021-11-02 20:39:08 +01:00
ed cc23b7ee74 better user-feedback when transcoding is unavailable 2021-11-02 03:22:39 +01:00
ed f6f9fc5a45 add audio transcoder 2021-11-02 02:59:37 +01:00
ed c2469935cb add audio spectrogram thumbnails 2021-11-02 00:26:51 +01:00
ed 6dade82d2c run tag scrapers in parallel on new uploads 2021-10-27 00:47:50 +02:00
ed 5562de330f slightly smaller jpeg thumbnails 2021-09-02 18:51:15 +02:00
ed 0bf41ed4ef exif orientation for thumbnails 2021-08-14 17:45:44 +02:00
ed 432cdd640f video-thumbs: take first video stream + better errors 2021-08-05 20:44:04 +02:00
ed e65f127571 list server ips on windows 2021-07-28 01:18:38 +02:00
ed fb40a484c5 mv(folder) works 2021-07-26 01:26:58 +02:00
ed d020527c6f centralize mojibake support stuff 2021-07-24 21:56:55 +02:00
ed 4451485664 mv/rm (serverside), 100% untested 2021-07-24 20:08:31 +02:00
ed 8eb8043a3d fix 3rdparty namecase 2021-07-18 22:50:29 +02:00
ed bac301ed66 get rid of iffy default-args 2021-07-12 00:15:13 +02:00
ed f757623ad8 make bdmv thumbnails 2021-07-09 20:09:32 +02:00
ed 3c7465e268 option to disable thumbcache eviction 2021-07-09 19:55:17 +02:00
ed 2f85c1fb18 add logging to file 2021-07-05 23:30:33 +02:00
ed be055961ae adjust up2k hashlen to match base64 window 2021-06-20 15:32:36 +02:00
ed 38c00ea8fc print thumbnail cleanup summary 2021-06-16 18:57:10 +02:00
ed fc024f789d v0.11.14 2021-06-14 03:05:50 +02:00
ed 473e773aea fix deadlock 2021-06-14 00:55:11 +00:00
ed aa12830015 keep transparency in thumbnails 2021-06-12 03:32:06 +02:00
ed 60ac68d000 single authsrv instance per process 2021-06-11 23:01:13 +02:00
ed a45a53fdce support macos ffmpeg 2021-06-11 03:05:42 +02:00
ed 972a56e738 fix stuff 2021-06-11 01:45:28 +02:00
ed d6bf300d80 option to store state out-of-volume (mostly untested) 2021-06-10 01:27:04 +02:00
ed 79c7639aaf haha memes 2021-06-08 21:10:25 +02:00
ed 9d729d3d1a add thread names 2021-06-08 20:14:23 +02:00
ed cda36ea8b4 support json replies from bput 2021-06-06 18:47:21 +02:00
ed 8efd780a72 thumbnail cleaner too noisy 2021-06-01 01:51:03 +02:00
ed eb5aaddba4 v0.11.0 2021-05-29 15:03:32 +02:00
ed d8fd82bcb5 ffthumb only gets one shot 2021-05-29 12:32:51 +02:00
ed d25881d5c3 mojibake fixes 2021-05-29 09:01:59 +02:00
ed 38d8d9733f fix bugs 2021-05-29 05:50:41 +02:00
ed 0fcb015f9a minor fixes 2021-05-28 05:16:28 +02:00
ed 0a22b1ffb6 dont log thumbnail GETs by default 2021-05-28 05:16:01 +02:00
ed 68cecc52ab dont grow thumbs 2021-05-28 05:01:25 +02:00
ed 53657ccfff add avif read support 2021-05-28 05:01:12 +02:00
ed 96223fda01 detect missing webp support 2021-05-28 05:00:08 +02:00
ed 5d63949e98 create webp thumbnails by default 2021-05-28 02:44:13 +02:00
ed 6b065d507d crop thumbs for AESTHETICS 2021-05-28 01:46:27 +02:00
ed 69dc433e1c ffprobe parser less bad 2021-05-27 01:41:12 +02:00
ed 483dd527c6 add cache eviction 2021-05-25 19:46:35 +02:00
ed e55678e28f fix thumb/ico bugs 2021-05-25 17:36:31 +02:00
ed 3f4a8b9d6f fixes 2021-05-25 06:35:12 +02:00
ed 02a856ecb4 create video thumbnails 2021-05-25 06:14:25 +02:00