Commit graph

3438 commits

Author SHA1 Message Date
Alex Gleason
59ad40fb3f
Remove extra space 2025-03-02 18:03:21 -06:00
Alex Gleason
484625842b
Skip ffmpeg tests in CI 2025-03-02 18:02:03 -06:00
Alex Gleason
ac0285293e
Remove pipelineEncounters.ts 2025-03-02 14:06:15 -06:00
Alex Gleason
2415dbe4e5 Merge branch 'transcode' into 'main'
Transcode uploaded videos with ffmpeg

See merge request soapbox-pub/ditto!706
2025-03-02 05:41:29 +00:00
Alex Gleason
7e8ff1f329
Get video dimensions from frame 2025-03-01 22:15:32 -06:00
Alex Gleason
5168ccd748
Write uploads to disk so ffmpeg can seek properly 2025-03-01 20:59:14 -06:00
Alex Gleason
c2e6e10a3a
Don't call ffprobe unless mediaTranscode is enabled 2025-03-01 18:03:57 -06:00
Alex Gleason
3035ecaca9
Make transcoding optional, refactor a bit 2025-03-01 17:45:01 -06:00
Alex Gleason
414a3b7651
Let FFMPEG_PATH and FFPROBE_PATH be configurable 2025-03-01 17:01:39 -06:00
Alex Gleason
8a94be803d
Give transcoded videos the proper file type 2025-03-01 16:39:09 -06:00
Alex Gleason
8c61efd75e
Improve blurhash performance of HD images 2025-03-01 13:56:17 -06:00
Alex Gleason
9051a59733
Measure performance of uploads 2025-03-01 13:09:42 -06:00
Alex Gleason
bd4c94852f
Call ffprobe, improve transcoding 2025-02-28 21:21:30 -06:00
Alex Gleason
2533d2f469
Support readable in extractVideoFrame 2025-02-28 20:52:11 -06:00
Alex Gleason
a28e6509fd
Make analyze return a lot more information 2025-02-28 19:48:53 -06:00
Alex Gleason
ad9cc676e6
Improve getVideoDimensions 2025-02-28 18:41:13 -06:00
Alex Gleason
5f10f92d4e
Let ffprobe pipe data to stdin 2025-02-28 18:29:41 -06:00
P. Reis
c79867d8ca feat: promote users to admin 2025-02-28 18:25:34 -03:00
Alex Gleason
d70a00a8ca
Expose thumb and image to Attachment view, don't set thumb (since it's redundant with image) 2025-02-28 10:51:08 -06:00
Alex Gleason
6774975051
Get blurhash and dimensions of video 2025-02-28 10:24:45 -06:00
Alex Gleason
7ecca587a9
ffmpeg: explicitly set stdin to null 2025-02-28 10:20:47 -06:00
Alex Gleason
aeaa60df45
transcode: add -nostdin -safe 1 2025-02-28 10:17:39 -06:00
Alex Gleason
43ec58085a
Extract a poster image from videos (not efficient yet) 2025-02-28 09:58:28 -06:00
Alex Gleason
813026e734
Transcode video before uploading 2025-02-28 09:36:49 -06:00
P. Reis
822f623018 refactor: this.handleRevokeNip05 before relay.event 2025-02-28 10:19:10 -03:00
Alex Gleason
26ca4aa7f7
Go back to just installing ffmpeg with apt 2025-02-28 00:01:28 -06:00
Alex Gleason
57c1871852
Try installing ffmpeg with curl 2025-02-27 23:54:06 -06:00
Alex Gleason
39821f8371
Install ffmpeg in GitLab CI 2025-02-27 23:47:27 -06:00
Alex Gleason
4f2aad9c5d
Export stuff from transcode/mod.ts 2025-02-27 23:42:29 -06:00
Alex Gleason
8f02c4125a
Add ffprobe module 2025-02-27 23:38:57 -06:00
Alex Gleason
e46b7bfa85
Rework ffmpeg to accept file URIs 2025-02-27 23:19:27 -06:00
Alex Gleason
d36efb7a30
transcode: export existing code in mod.ts 2025-02-27 22:06:03 -06:00
Alex Gleason
6ce64822e1
Split transcode and ffmpeg into separate modules 2025-02-27 21:59:19 -06:00
Alex Gleason
bb13a8dc71
Add ffmpeg module 2025-02-27 21:34:05 -06:00
Alex Gleason
bd47ae5930
Add @ditto/transcode package 2025-02-27 21:22:19 -06:00
Alex Gleason
462c00a3e7
transcode: simplify pipe 2025-02-27 20:16:25 -06:00
Alex Gleason
044930cc8d
transcodeVideoStream -> transcodeVideo 2025-02-27 20:08:26 -06:00
Alex Gleason
25d5db8db6
transcode: use a structured object for ffmpeg options 2025-02-27 20:07:28 -06:00
Alex Gleason
82f16e0cfe
Add transcode module 2025-02-27 20:01:11 -06:00
Alex Gleason
5fc874b768 Merge branch 'deno-2.2.2' into 'main'
Upgrade Deno to v2.2.2

See merge request soapbox-pub/ditto!705
2025-02-28 01:21:25 +00:00
Alex Gleason
96c845205b
Upgrade Deno to v2.2.2 2025-02-27 19:19:33 -06:00
Alex Gleason
381cbfd36f
Add ip to logiMiddleware 2025-02-27 18:24:05 -06:00
Alex Gleason
d458fc8464 Merge branch 'request-id' into 'main'
Add requestId middleware

See merge request soapbox-pub/ditto!704
2025-02-28 00:10:49 +00:00
Alex Gleason
368bf91b1f
Log requestId in some convenient spots 2025-02-27 18:08:55 -06:00
Alex Gleason
0cdb7b8cd5
Add requestId middleware 2025-02-27 17:57:22 -06:00
Alex Gleason
f683642478 Merge branch 'upload-conf' into 'main'
Remove `@/config.ts` import from utils/upload.ts

See merge request soapbox-pub/ditto!703
2025-02-27 23:37:57 +00:00
Alex Gleason
ee58a9f265 Merge branch 'metadata-conf' into 'main'
Remove `@/config.ts` import from utils/instance.ts

See merge request soapbox-pub/ditto!702
2025-02-27 23:34:46 +00:00
Alex Gleason
1bce9e2982
Remove @/config.ts import from utils/upload.ts 2025-02-27 17:34:35 -06:00
Alex Gleason
2acd23ebbe
Remove @/config.ts import from utils/instance.ts 2025-02-27 17:32:54 -06:00
Alex Gleason
f7ab4a6763 Merge branch 'stats-conf' into 'main'
Remove `@/config.ts` import from utils/stats.ts

See merge request soapbox-pub/ditto!701
2025-02-27 22:58:12 +00:00