Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
121 commits
Select commit Hold shift + click to select a range
6220df8
Remove legacy Version 1 implementation
Nanahuse Sep 20, 2026
155be3f
Initialize Version 2 Python project
Nanahuse Sep 20, 2026
701f81c
Add package smoke test
Nanahuse Sep 20, 2026
b9ab375
Add CI workflow
Nanahuse Sep 20, 2026
ba89479
Update README for Version 2 development
Nanahuse Sep 20, 2026
ec914a0
Merge pull request #3 from Nanahuse/feature/v2-bootstrap
Nanahuse Sep 20, 2026
56f47f2
Add application and input domain models
Nanahuse Sep 20, 2026
699c270
Add recording and replay models
Nanahuse Sep 20, 2026
2485c17
Add worker command and event protocol
Nanahuse Sep 20, 2026
975cfc9
Add domain and protocol tests
Nanahuse Sep 20, 2026
5e199bc
Clean up CI bootstrap branch trigger and update README
Nanahuse Sep 20, 2026
f3e61cc
Merge pull request #4 from Nanahuse/feature/v2-domain
Nanahuse Sep 20, 2026
a2c0f3a
Add PyAV and NumPy runtime dependencies
Nanahuse Sep 20, 2026
7390b14
Implement version 2 segment recorder core
Nanahuse Sep 20, 2026
4429990
Add segment recorder tests
Nanahuse Sep 20, 2026
3fe12e9
Update README implementation status
Nanahuse Sep 20, 2026
ad36e08
Merge pull request #5 from Nanahuse/feature/v2-segment-recorder
Nanahuse Sep 20, 2026
e7a6b5c
Add ring storage error types
Nanahuse Sep 20, 2026
79e5f43
Implement ring storage with retention and snapshot leases
Nanahuse Sep 20, 2026
c52a421
Add ring storage and snapshot tests
Nanahuse Sep 20, 2026
6dd9cd5
Update README implementation status
Nanahuse Sep 20, 2026
1279b29
Merge pull request #6 from Nanahuse/feature/v2-ring-storage
Nanahuse Sep 20, 2026
2b7c935
Add replay asset error types
Nanahuse Sep 20, 2026
f46aa89
Implement stream-copy replay remux
Nanahuse Sep 20, 2026
07481ac
Implement replay asset builder
Nanahuse Sep 20, 2026
2c34d97
Add replay remux and asset builder tests
Nanahuse Sep 20, 2026
bdf3129
Update README implementation status
Nanahuse Sep 20, 2026
4d45b1d
Merge pull request #7 from Nanahuse/feature/v2-replay-asset
Nanahuse Sep 20, 2026
97ac905
Add ndi-python dependency
Nanahuse Sep 20, 2026
4b676ab
Add common InputSource abstraction
Nanahuse Sep 20, 2026
384b7c1
Implement NDI input discovery, backend, source and converter
Nanahuse Sep 20, 2026
bd6d883
Add UYVY support to the frame converter
Nanahuse Sep 20, 2026
83f7f85
Add NDI input and UYVY converter tests
Nanahuse Sep 20, 2026
cc5a304
Update README status and third-party license notes
Nanahuse Sep 20, 2026
b783578
Merge pull request #9 from Nanahuse/feature/v2-ndi-input
Nanahuse Sep 20, 2026
5e5933f
Add opencv-python dependency
Nanahuse Sep 20, 2026
c5a953b
Implement camera input backend, discovery and source
Nanahuse Sep 20, 2026
019b6a4
Add fake camera backend and camera input tests
Nanahuse Sep 20, 2026
909cd6d
Update README implementation status
Nanahuse Sep 20, 2026
70a23f5
Merge pull request #10 from Nanahuse/feature/v2-camera-input
Nanahuse Sep 20, 2026
fecbb4a
Add request id to StreamStarted
Nanahuse Sep 21, 2026
d02eae8
Add recorder worker settings, errors, inputs and frame queues
Nanahuse Sep 21, 2026
0f5f654
Add recording pipeline with capture and encode threads
Nanahuse Sep 21, 2026
f5bc36d
Add recorder worker runtime and spawn process wrapper
Nanahuse Sep 21, 2026
95603cb
Add recorder worker lifecycle, ordering and spawn tests
Nanahuse Sep 21, 2026
7cf0f53
Update README implementation status
Nanahuse Sep 21, 2026
536ce0e
Merge pull request #11 from Nanahuse/feature/v2-worker
Nanahuse Sep 21, 2026
1b27bd3
Add replay controller error hierarchy
Nanahuse Sep 21, 2026
f10c6a3
Add mpv JSON IPC transport and request client
Nanahuse Sep 21, 2026
f35fd7f
Add external mpv process wrapper
Nanahuse Sep 21, 2026
5e4d2b8
Implement replay controller
Nanahuse Sep 21, 2026
3585783
Add replay controller and mpv IPC tests
Nanahuse Sep 21, 2026
fd57881
Add replay controller verification tool
Nanahuse Sep 21, 2026
a4fd8df
Update README implementation status
Nanahuse Sep 21, 2026
1b0190f
Fix platform-specific ctypes attribute resolution for type check
Nanahuse Sep 21, 2026
b3e4dc3
Merge pull request #12 from Nanahuse/feature/v2-replay-controller
Nanahuse Sep 21, 2026
1be743f
Add ReplayController liveness check
Nanahuse Sep 21, 2026
aa5135f
Implement application controller
Nanahuse Sep 21, 2026
df172e2
Add application controller and integration tests
Nanahuse Sep 21, 2026
478b7f4
Update README implementation status
Nanahuse Sep 21, 2026
bc65730
Merge pull request #13 from Nanahuse/feature/v2-application-controller
Nanahuse Sep 21, 2026
3e50145
Implement configuration package
Nanahuse Sep 21, 2026
94f8532
Add configuration codec, store and runtime tests
Nanahuse Sep 21, 2026
5b5d7db
Update README implementation status
Nanahuse Sep 21, 2026
557cbd8
Merge pull request #14 from Nanahuse/feature/v2-configuration
Nanahuse Sep 21, 2026
2acb8eb
Add Flet 1.0 dependencies
Nanahuse Sep 21, 2026
1e63ff0
Add camera backend to input discovery
Nanahuse Sep 21, 2026
0a5bd23
Add Flet UI foundation
Nanahuse Sep 21, 2026
21c3156
Add headless UI foundation tests
Nanahuse Sep 21, 2026
93369ae
Update README implementation status
Nanahuse Sep 21, 2026
ba7d9da
Merge pull request #15 from Nanahuse/feature/v2-flet-ui-foundation
Nanahuse Sep 21, 2026
2fb85ad
Fix Windows recording cleanup race
Nanahuse Sep 21, 2026
e5af180
Add recording cleanup regression tests
Nanahuse Sep 21, 2026
be6db4b
Add recording cleanup stress tool
Nanahuse Sep 21, 2026
dbc09c6
Merge pull request #16 from Nanahuse/fix/v2-recording-cleanup-race
Nanahuse Sep 21, 2026
adc342e
Add replay controls to the Flet UI
Nanahuse Sep 21, 2026
eb5111f
Add headless replay UI tests
Nanahuse Sep 21, 2026
e7ffc27
Update README implementation status
Nanahuse Sep 21, 2026
3b39daf
Merge pull request #17 from Nanahuse/feature/v2-replay-ui
Nanahuse Sep 21, 2026
089485e
Add settings draft, validation and apply logic
Nanahuse Sep 21, 2026
5b7100d
Add the Flet settings dialog
Nanahuse Sep 21, 2026
e5a5206
Add headless settings tests and update README
Nanahuse Sep 21, 2026
2947315
Merge pull request #18 from Nanahuse/feature/v2-settings-ui
Nanahuse Sep 21, 2026
410c3e6
Harden Version 2 desktop UI lifecycle (#19)
Nanahuse Sep 21, 2026
36c07a2
Add Version 2 Windows packaging foundation
Nanahuse Sep 21, 2026
53fdcbe
Merge pull request #20 from Nanahuse/feature/v2-windows-packaging
Nanahuse Sep 21, 2026
f102e37
Prepare Version 2 Windows release artifacts
Nanahuse Sep 21, 2026
e0a45c8
Allow non-interactive Flutter setup in Windows CI
Nanahuse Sep 21, 2026
682f653
Set UTF-8 output for Windows packaging CI
Nanahuse Sep 21, 2026
88a5298
Merge pull request #21 from Nanahuse/feature/v2-release-readiness
Nanahuse Sep 21, 2026
0babf8d
Add automated Version 2 release workflow
Nanahuse Sep 21, 2026
4dd64a6
Use uv for release version detection
Nanahuse Sep 21, 2026
9d2bf76
Use existing release tags for version detection
Nanahuse Sep 21, 2026
f500bc7
Remove superficial release workflow test
Nanahuse Sep 21, 2026
f3b7c6a
Merge pull request #22 from Nanahuse/feature/v2-release-automation
Nanahuse Sep 21, 2026
f371e0b
Clean up tests and cover replay action races
Nanahuse Sep 21, 2026
85729d8
Merge pull request #23 from Nanahuse/feature/v2-test-suite-cleanup
Nanahuse Sep 21, 2026
96b10aa
Further streamline test suite
Nanahuse Sep 21, 2026
1b52470
Merge pull request #24 from Nanahuse/refactor/test-suite-cleanup-2
Nanahuse Sep 21, 2026
92db535
Finish test suite cleanup
Nanahuse Sep 21, 2026
14fd82f
Merge pull request #25 from Nanahuse/refactor/test-suite-final-cleanup
Nanahuse Sep 21, 2026
71b4af9
Prepare Version 2 release integration
Nanahuse Sep 21, 2026
14b29a4
Merge pull request #26 from Nanahuse/chore/v2-release-preparation
Nanahuse Sep 21, 2026
578744c
Harden release workflow recovery
Nanahuse Sep 21, 2026
23437cb
Merge pull request #27 from Nanahuse/fix/release-workflow-recovery
Nanahuse Sep 21, 2026
1270930
Normalize overlapping audio timelines
Nanahuse Sep 21, 2026
f06d1b7
Merge pull request #28 from Nanahuse/fix/ndi-audio-timeline
Nanahuse Sep 21, 2026
bfeda05
Improve replay controls and resume handling
Nanahuse Sep 21, 2026
64874a6
Merge pull request #29 from Nanahuse/fix/replay-ui-and-resume
Nanahuse Sep 21, 2026
feeaeb1
Hide mpv on-screen controller
Nanahuse Sep 21, 2026
f72e439
Merge pull request #30 from Nanahuse/fix/hide-mpv-osc
Nanahuse Sep 21, 2026
f2f557c
Add replay button hold repeat (#31)
Nanahuse Sep 22, 2026
a781bee
Add session stop lifecycle (#32)
Nanahuse Sep 22, 2026
fb29790
Split Setup and Session UI (#33)
Nanahuse Sep 23, 2026
b344020
Remove camera and OpenCV input support (#34)
Nanahuse Sep 23, 2026
e203675
Support BGRA video from NDI sources (#35)
Nanahuse Sep 23, 2026
3f30290
Accept 3D BGRA arrays from NDI (#36)
Nanahuse Sep 23, 2026
dfb474a
Polish the shared session header (#37)
Nanahuse Sep 24, 2026
8c3fe3e
Start each recording with fresh session state (#38)
Nanahuse Sep 25, 2026
e4c9b4f
Align Start Recording with mpv field (#39)
Nanahuse Sep 25, 2026
2804060
Open About in a standalone window (#40)
Nanahuse Oct 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI

on:
pull_request:
branches:
- main

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Set up Python 3.14
run: uv python install 3.14

- name: Sync dependencies
run: uv sync

- name: Lint
run: uv run ruff check .

- name: Format check
run: uv run ruff format --check .

- name: Type check
run: uv run ty check

- name: Test
run: uv run pytest
110 changes: 110 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: Release

on:
push:
branches:
- main

permissions:
contents: write

jobs:
release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Set up Python 3.14
uses: actions/setup-python@v5
with:
python-version: "3.14"

- name: Sync locked dependencies
run: uv sync --locked

- name: Detect version change
id: version
env:
GH_TOKEN: ${{ github.token }}
shell: pwsh
run: |
$current = (uv version --short).Trim()
if ([string]::IsNullOrWhiteSpace($current)) {
throw "Current project version is empty."
}
"version=$current" >> $env:GITHUB_OUTPUT
$tag = "v$current"
$tagResponse = gh api "repos/${{ github.repository }}/git/ref/tags/$tag" --include 2>&1
$tagExitCode = $LASTEXITCODE
$LASTEXITCODE = 0
if ($tagExitCode -eq 0) {
$tagExists = $true
} elseif ($tagResponse -match "404|Not Found") {
$tagExists = $false
} else {
throw "Failed to check tag $tag: $tagResponse"
}

$releaseResponse = gh api "repos/${{ github.repository }}/releases/tags/$tag" --include 2>&1
$releaseExitCode = $LASTEXITCODE
$LASTEXITCODE = 0
if ($releaseExitCode -eq 0) {
$releaseExists = $true
} elseif ($releaseResponse -match "404|Not Found") {
$releaseExists = $false
} else {
throw "Failed to check release $tag: $releaseResponse"
}

if ($releaseExists -and -not $tagExists) {
throw "Inconsistent release state: release $tag exists without its tag."
}

$releaseRequired = -not $releaseExists
$tagRequired = -not $tagExists
"release_required=$($releaseRequired.ToString().ToLowerInvariant())" >> $env:GITHUB_OUTPUT
"tag_required=$($tagRequired.ToString().ToLowerInvariant())" >> $env:GITHUB_OUTPUT
Write-Host "Tag exists: $tagExists; release exists: $releaseExists"

- name: Build Windows app
if: steps.version.outputs.release_required == 'true'
env:
PYTHONIOENCODING: utf-8
run: |
uv run flet clean
uv run flet build windows --python-version 3.14 --yes

- name: Create portable distribution ZIP
if: steps.version.outputs.release_required == 'true'
run: uv run python tools/package_windows_release.py

- name: Verify release ZIP
if: steps.version.outputs.release_required == 'true'
shell: pwsh
run: |
$zip = "dist/QuickReplay-${{ steps.version.outputs.version }}-windows-x64.zip"
if (-not (Test-Path $zip)) { throw "Release ZIP was not generated: $zip" }

- name: Create tag
if: steps.version.outputs.tag_required == 'true'
env:
VERSION: ${{ steps.version.outputs.version }}
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git tag -a "v$env:VERSION" "${{ github.sha }}" -m "QuickReplay v$env:VERSION"
git push origin "v$env:VERSION"

- name: Create GitHub Release
if: steps.version.outputs.release_required == 'true'
env:
GH_TOKEN: ${{ github.token }}
run: |
$tag = "v${{ steps.version.outputs.version }}"
$zip = "dist/QuickReplay-${{ steps.version.outputs.version }}-windows-x64.zip"
gh release create $tag $zip --repo "${{ github.repository }}" --verify-tag --title "QuickReplay $tag" --generate-notes
47 changes: 47 additions & 0 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Windows Build

on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Set up Python 3.14
uses: actions/setup-python@v5
with:
python-version: "3.14"

- name: Sync locked dependencies
run: uv sync --locked

- name: Read project version
shell: pwsh
run: |
$version = uv run python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])"
"RELEASE_VERSION=$version" >> $env:GITHUB_ENV

- name: Build Windows app
env:
PYTHONIOENCODING: utf-8
run: |
uv run flet clean
uv run flet build windows --python-version 3.14 --yes

- name: Create portable distribution ZIP
run: uv run python tools/package_windows_release.py

- name: Upload Windows distribution
uses: actions/upload-artifact@v4
with:
name: QuickReplay-${{ env.RELEASE_VERSION }}-windows-x64
path: dist/QuickReplay-*-windows-x64.zip
if-no-files-found: error
30 changes: 22 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
__pycache__
*/__pycache__/*
tmp_video/*.mp4
dist/*
build/*
*.spec
env/*
config.json
# Python
.venv/
__pycache__/
*.py[cod]
*.egg-info/

# Tooling caches
.pytest_cache/
.ruff_cache/

# Build output
dist/
build/

# Runtime recording data (keep intentional test fixtures tracked)
buffer/
*.mkv
!tests/**/*.mkv

# Local environment / editor
.env
.vscode/
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.14
16 changes: 0 additions & 16 deletions .vscode/launch.json

This file was deleted.

7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

48 changes: 29 additions & 19 deletions LICENSE_ThirdParty.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
# Python
Python Software Foundation License
# Third-party notices

This file lists the primary third-party components used by the QuickReplay
Version 2 runtime and Windows package.

## Python

Python Software Foundation License<br>
https://docs.python.org/3/license.html#psf-license

# Numpy
BSD 3-Clause License
## Flet

Apache License 2.0<br>
https://github.com/flet-dev/flet/blob/main/LICENSE

## PyAV

BSD 3-Clause License<br>
https://github.com/PyAV-Org/PyAV/blob/main/LICENSE.txt

## NumPy

BSD 3-Clause License<br>
https://github.com/numpy/numpy/blob/main/LICENSE.txt

# Opencv-Python
MIT License
https://github.com/opencv/opencv-python/blob/4.x/LICENSE.txt
## ndi-python

# Pillow / PIL
Historical Permission Notice and Disclaimer (HPND)
https://github.com/python-pillow/Pillow/blob/main/LICENSE
MIT License<br>
https://github.com/buresu/ndi-python/blob/master/LICENSE

# TCL/TK
Tcl/Tk License
https://fedoraproject.org/wiki/Licensing:TCL
## NDI SDK / NDI runtime

# ttkbootstrap
MIT License
https://github.com/israel-dryer/ttkbootstrap/blob/master/LICENSE
NDI SDK License<br>
https://ndi.video/for-developers/ndi-sdk/license/

# windows-capture-device-list (python-capture-device-list)
MIT License
https://github.com/yushulx/python-capture-device-list/blob/master/LICENSE
QuickReplay does not bundle mpv. Replay playback uses the external mpv
executable configured by the user.
Loading
Loading