Reduce the size of the portrait test video

This commit is contained in:
Stefan Ceriu
2026-08-18 12:47:51 +03:00
parent 864d022f45
commit 804fccf650
2 changed files with 6 additions and 6 deletions
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cc39671ee91a08779e4149589a4635fa6b91519b07bfb2dee621ccab031a75c5
size 5825201
oid sha256:0b1465b1e379f4356e0cbde2ecc1a9cd2a58c7a69be7ca9f7b3b2df2e911e60c
size 2004302
@@ -122,8 +122,8 @@ final class MediaUploadingPreprocessorTests {
// Check resulting video info
#expect(videoInfo.mimetype == "video/mp4")
#expect(videoInfo.blurhash == "KSB{R8O]MuwQS4oJvcaIt8")
#expect(isEqual(videoInfo.size ?? 0, 5_824_946, within: 100))
#expect(videoInfo.blurhash == "KRB{K[TLMtw7S4oez,emtS")
#expect(isEqual(videoInfo.size ?? 0, 2_004_134, within: 100))
#expect(videoInfo.width == 1080)
#expect(videoInfo.height == 1920)
#expect(isEqual(videoInfo.duration ?? 0, 21, within: 100))
@@ -151,8 +151,8 @@ final class MediaUploadingPreprocessorTests {
// Check optimised video info
#expect(optimizedVideoInfo.mimetype == "video/mp4")
#expect(optimizedVideoInfo.blurhash == "KSC5.vO]MuwQS4oJvcaIt8")
#expect(isEqual(optimizedVideoInfo.size ?? 0, 12_169_117, within: 100)) // Note: This is slightly stupid because it is larger now 🤦‍♂️
#expect(optimizedVideoInfo.blurhash == "KRB{K[TLMtw7S4oez,emtS")
#expect(isEqual(optimizedVideoInfo.size ?? 0, 3_779_866, within: 100)) // Note: This is slightly stupid because it is larger now 🤦‍♂️
#expect(optimizedVideoInfo.width == 720)
#expect(optimizedVideoInfo.height == 1280)
#expect(isEqual(optimizedVideoInfo.duration ?? 0, 30, within: 100))