[feat] Upload filter to remux ISOBMFF (“.mp4”) for streaming #586

Open
opened 2023-07-12 08:24:14 +00:00 by mia · 0 comments

The idea

There should be an upload filter that remuxes ISOBMFF files with the moov atom at the start of the file (FFmpeg command line option for reference: -movflags +faststart).

The reasoning

Quite often when users upload videos in .mp4 containers, they are not muxed properly for streaming.

Fixing those with a filter will allow clients to get an index and stream ISOBMFF media files without having to download the whole thing or do range requests. This is faster/more efficient and also solves problems with Misskey and its forks (because the web framework those use to serve media files, shockingly, has no support for range requests).

Have you searched for this feature request?

  • I have double-checked and have not found this feature request mentioned anywhere.
  • This feature is related to the Akkoma backend specifically, and not pleroma-fe.
### The idea There should be an upload filter that remuxes ISOBMFF files with the moov atom at the start of the file (FFmpeg command line option for reference: `-movflags +faststart`). ### The reasoning Quite often when users upload videos in .mp4 containers, they are not muxed properly for streaming. Fixing those with a filter will allow clients to get an index and stream ISOBMFF media files without having to download the whole thing or do range requests. This is faster/more efficient and also solves problems with Misskey and its forks (because the web framework those use to serve media files, shockingly, [has no support for range requests](https://akkoma.dev/FoundKeyGang/FoundKey/issues/202#issuecomment-5611)). ### Have you searched for this feature request? - [x] I have double-checked and have not found this feature request mentioned anywhere. - [x] This feature is related to the Akkoma backend specifically, and not pleroma-fe.
mia added the
feature request
label 2023-07-12 08:24:14 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#586
No description provided.