You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pixelfed/app/Http/Controllers/Api
Rod 7e1034d649 Media: support .mov uploads via on-ingest transcode to mp4
Pixelfed's media allowlist exposed `video/mov`, but PHP/finfo reports `video/quicktime`
for actual .mov files. Even when the mime cleared validation, the post-upload pipeline
only dispatched processing for `video/mp4`, leaving quicktime media without a thumbnail
or playable URL.

This fixes both halves:
- Replace the bogus `video/mov` string with `video/quicktime` (and add `video/x-m4v`)
  in the admin allowlist (Vue + server validator) and StoryFetch's mime-to-extension
  table. Admin checkbox parser maps `video/quicktime`/`video/x-m4v` (and the legacy
  `video/mov`) back onto the existing `mov` key for backwards compat.
- Add `VideoPipeline\VideoTranscode` job that remuxes/encodes quicktime/m4v to H.264+AAC
  mp4 (with `+faststart` for web playback), updates the Media row, and chains into the
  existing `VideoThumbnail` job. ComposeController and ApiV2Controller dispatch it for
  `video/quicktime` and `video/x-m4v` uploads.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2 months ago
..
V1 Lint 7 months ago
AdminApiController.php
ApiController.php Lint 7 months ago
ApiV1Controller.php API: Media uploads leak orphaned files when status creation validation fails 4 months ago
ApiV1Dot1Controller.php API: Media uploads leak orphaned files when status creation validation fails 4 months ago
ApiV2Controller.php Media: support .mov uploads via on-ingest transcode to mp4 2 months ago
BaseApiController.php Update BaseApiController.php 5 months ago