Skip to content

Add a quality option to the mediatheque 1.1 MediaConvert job - #25

Merged
dmongeau merged 1 commit into
mainfrom
feature/24-v1-mediaconvert-quality
Nov 5, 2026
Merged

dmongeau merged 1 commit into
mainfrom
feature/24-v1-mediaconvert-quality

Conversation

@dmongeau

@dmongeau dmongeau commented Nov 5, 2026

Copy link
Copy Markdown
Member

Closes #24

MediathequeV1\Video\MediaConvert now sends a quality option to Eclair as quality, its CRF (lower is better), as the H264, WebM and HEVC jobs already do with theirs. Without it, nothing is sent and Eclair keeps its default (23 for H.264).

MediaConvert's QVBR is more efficient than x264's CRF. On two portrait videos (10 s and 51 s), Eclair's H.264 at CRF 23 matched MediaConvert's VMAF but was 25 to 45 % larger; at CRF 25, it is 10 to 15 % larger, 0.7 to 1.2 VMAF points lower. The option lets an application choose.

The mediatheque's own MediaConvert job doesn't use quality, so a pipeline can set it for Eclair and still switch back.

Checks

  • composer test:v1 with laravel-mediatheque 1.1.3: 8 tests OK; the updated assertion fails without the change
  • composer test with laravel-mediatheque 2: OK
  • composer lint: OK

🤖 Generated with Claude Code

The job sent no quality, so Eclair encoded at its default CRF. MediaConvert's
QVBR is more efficient than x264's CRF: at CRF 23, Eclair's H.264 files had
MediaConvert's quality but were 25 to 45 % larger. `quality` is now Eclair's
CRF, as for the H264, WebM and HEVC jobs, so a pipeline can choose its balance.

Closes #24

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dmongeau
dmongeau merged commit fa71af3 into main Nov 5, 2026
10 checks passed
@dmongeau
dmongeau deleted the feature/24-v1-mediaconvert-quality branch November 5, 2026 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mediatheque 1.1 MediaConvert job: a quality option

1 participant