From cde2fb6244a791b3c5b746112e3a8be3a79f39a4 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Fri, 12 Jul 2024 09:39:47 +0000 Subject: [feature] support processing of (many) more media types (#3090) * initial work replacing our media decoding / encoding pipeline with ffprobe + ffmpeg * specify the video codec to use when generating static image from emoji * update go-storage library (fixes incompatibility after updating go-iotools) * maintain image aspect ratio when generating a thumbnail for it * update readme to show go-ffmpreg * fix a bunch of media tests, move filesize checking to callers of media manager for more flexibility * remove extra debug from error message * fix up incorrect function signatures * update PutFile to just use regular file copy, as changes are file is on separate partition * fix remaining tests, remove some unneeded tests now we're working with ffmpeg/ffprobe * update more tests, add more code comments * add utilities to generate processed emoji / media outputs * fix remaining tests * add test for opus media file, add license header to utility cmds * limit the number of concurrently available ffmpeg / ffprobe instances * reduce number of instances * further reduce number of instances * fix envparsing test with configuration variables * update docs and configuration with new media-{local,remote}-max-size variables --- testrig/media/cowlick-small.jpeg | Bin 5272 -> 6922 bytes testrig/media/kip-static.png | Bin 802 -> 1056 bytes testrig/media/ohyou-small.jpg | Bin 6177 -> 7647 bytes testrig/media/rainbow-static.png | Bin 10413 -> 6092 bytes testrig/media/sloth-small.jpg | Bin 50820 -> 36046 bytes testrig/media/team-fortress-small.jpg | Bin 42308 -> 9921 bytes testrig/media/thoughtsofdog-small.jpg | Bin 19312 -> 11751 bytes testrig/media/trent-small.jpg | Bin 8803 -> 9764 bytes testrig/media/welcome-small.jpg | Bin 6872 -> 7587 bytes testrig/media/yell-static.png | Bin 10808 -> 8965 bytes testrig/media/zork-small.jpg | Bin 15374 -> 29812 bytes 11 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 testrig/media/ohyou-small.jpg mode change 100755 => 100644 testrig/media/rainbow-static.png mode change 100755 => 100644 testrig/media/trent-small.jpg mode change 100755 => 100644 testrig/media/welcome-small.jpg (limited to 'testrig/media') diff --git a/testrig/media/cowlick-small.jpeg b/testrig/media/cowlick-small.jpeg index b3cd2f647..4061653ab 100644 Binary files a/testrig/media/cowlick-small.jpeg and b/testrig/media/cowlick-small.jpeg differ diff --git a/testrig/media/kip-static.png b/testrig/media/kip-static.png index 1ba296687..c60b94c5c 100644 Binary files a/testrig/media/kip-static.png and b/testrig/media/kip-static.png differ diff --git a/testrig/media/ohyou-small.jpg b/testrig/media/ohyou-small.jpg old mode 100755 new mode 100644 index f561884d1..c862be1ff Binary files a/testrig/media/ohyou-small.jpg and b/testrig/media/ohyou-small.jpg differ diff --git a/testrig/media/rainbow-static.png b/testrig/media/rainbow-static.png old mode 100755 new mode 100644 index 79ed5c03a..f762a0470 Binary files a/testrig/media/rainbow-static.png and b/testrig/media/rainbow-static.png differ diff --git a/testrig/media/sloth-small.jpg b/testrig/media/sloth-small.jpg index 2787d535c..60f64a2fd 100644 Binary files a/testrig/media/sloth-small.jpg and b/testrig/media/sloth-small.jpg differ diff --git a/testrig/media/team-fortress-small.jpg b/testrig/media/team-fortress-small.jpg index f6773b9a0..8615834b6 100644 Binary files a/testrig/media/team-fortress-small.jpg and b/testrig/media/team-fortress-small.jpg differ diff --git a/testrig/media/thoughtsofdog-small.jpg b/testrig/media/thoughtsofdog-small.jpg index 98801d235..5f303f939 100644 Binary files a/testrig/media/thoughtsofdog-small.jpg and b/testrig/media/thoughtsofdog-small.jpg differ diff --git a/testrig/media/trent-small.jpg b/testrig/media/trent-small.jpg old mode 100755 new mode 100644 index 726c1aed0..4e9ac26b6 Binary files a/testrig/media/trent-small.jpg and b/testrig/media/trent-small.jpg differ diff --git a/testrig/media/welcome-small.jpg b/testrig/media/welcome-small.jpg old mode 100755 new mode 100644 index b1a585169..04179ccc9 Binary files a/testrig/media/welcome-small.jpg and b/testrig/media/welcome-small.jpg differ diff --git a/testrig/media/yell-static.png b/testrig/media/yell-static.png index 9b5d2837e..b60b9f62b 100644 Binary files a/testrig/media/yell-static.png and b/testrig/media/yell-static.png differ diff --git a/testrig/media/zork-small.jpg b/testrig/media/zork-small.jpg index 60be12564..e8fffe9cb 100644 Binary files a/testrig/media/zork-small.jpg and b/testrig/media/zork-small.jpg differ -- cgit v1.3