Skip to content

feat: add server-side HLS transcoding - #35

Open
mahoshojoHCG wants to merge 2 commits into
mainfrom
codex/issue-11
Open

feat: add server-side HLS transcoding#35
mahoshojoHCG wants to merge 2 commits into
mainfrom
codex/issue-11

Conversation

@mahoshojoHCG

Copy link
Copy Markdown
Contributor

Summary

  • add server-side media probing with direct-play, remux, and selective transcode planning
  • stream progressive tokenized HLS through a bounded worker queue with cancellation, hardware fallback, resource limits, persistent versioned cache, and TTL/LRU cleanup
  • move incompatible MKV fallback from browser FFmpeg WASM to HLS.js while preserving direct playback, progress restore, subtitle preferences, external players, and next-episode autoplay
  • expose session state and transcoding metrics, package FFmpeg, and document operational settings
  • cover planning, cache reuse/invalidation, queueing, cancellation/failure cleanup, real FFmpeg HLS/WebVTT output, controller behavior, and authenticated/anonymous API boundaries

Verification

  • dotnet test SecondDimensionWatcherReDive.slnx -c Release --no-restore
  • yarn install --immutable
  • yarn test
  • yarn build
  • yarn node --check mock-server.mjs
  • podman build -f Containerfile -t localhost/sdw-issue-11-test .
  • verified ffmpeg and ffprobe execute inside the built image

Closes #11

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T15:24:46.061710Z 30192c9 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 30192c9d34

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread SecondDimensionWatcherReDive/Services/Transcoding/TranscodingPlanner.cs Outdated
Comment thread SecondDimensionWatcherReDive/Services/Transcoding/HlsTranscodingService.cs Outdated
Comment thread SecondDimensionWatcherReDive/Services/Transcoding/FfmpegProcessRunner.cs Outdated
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.

[P1] 增加服务端流式转码与 HLS 播放

1 participant