Skip to content

Fix headless MPEG-TS timestamps to use encoder-managed PTS#852

Merged
leszko merged 1 commit into
mainfrom
ja/mpegts-fix
Apr 7, 2026
Merged

Fix headless MPEG-TS timestamps to use encoder-managed PTS#852
leszko merged 1 commit into
mainfrom
ja/mpegts-fix

Conversation

@j0sh
Copy link
Copy Markdown
Contributor

@j0sh j0sh commented Apr 7, 2026

Opening this since #851 seems to have somehow gotten merged a little early while I was still testing.


The TS streamer was using wall-clock time for video PTS, causing DTS collisions and non-monotonic timestamp warnings when the pipeline produces frames faster than realtime. Remove explicit wall-clock PTS assignment and let the encoder auto-assign from the stream rate, matching the headless MP4 recorder behavior.

Also fix the cleanup routine to prevent hangs sometimes.

Made-with: Cursor

The TS streamer was using wall-clock time for video PTS, causing
DTS collisions and non-monotonic timestamp warnings when the
pipeline produces frames faster than realtime. Remove explicit
wall-clock PTS assignment and let the encoder auto-assign from
the stream rate, matching the headless MP4 recorder behavior.

Also fix cleanup routine.

Signed-off-by: Josh Allmann <joshua.allmann@gmail.com>
Made-with: Cursor
@j0sh j0sh requested a review from leszko April 7, 2026 07:30
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 7, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e707b03d-5d66-4977-a4a3-fc9e1438a7af

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ja/mpegts-fix

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

🚀 fal.ai Preview Deployment

App ID daydream/scope-pr-852--preview
WebSocket wss://fal.run/daydream/scope-pr-852--preview/ws
Commit 0b9cd5f

Livepeer Runner

App ID daydream/scope-livepeer-pr-852--preview
WebSocket wss://fal.run/daydream/scope-livepeer-pr-852--preview/ws
Auth private

Testing Livepeer Mode

SCOPE_CLOUD_MODE=livepeer SCOPE_CLOUD_APP_ID="daydream/scope-livepeer-pr-852--preview/ws" uv run daydream-scope

@leszko leszko merged commit 76961fd into main Apr 7, 2026
11 checks passed
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.

2 participants