Skip to content

Commit 625afe2

Browse files
fri1
1 parent 71c740f commit 625afe2

File tree

309 files changed

+65640
-2642
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

309 files changed

+65640
-2642
lines changed

.claude/commands/debug.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
You are asked to create debug mp4 video from given resources.
2+
3+
The user needs to supply full path of
4+
- MOV screen recording (often named as recording-[timestamp].mov)
5+
- metadata.json file (often named as recording-[timestamp]-metadata.json)
6+
7+
Optionally
8+
- audio WAV file (often named as recording-[timestamp]-audio.wav)
9+
- camera MOV recording (often named as recording-[timestamp]-camera.mov)
10+
11+
IF NOT PROVIDED, that means to run with previous resources. If the timeline was already generated, skip Step 1 unless explicitly asked to regenerate it.
12+
13+
## Step 1
14+
You need to run TimelineEngine.py to get timeline.json
15+
USAGE: `python3 TimelineEngine.py video.mov metadata.json output.json`
16+
Save output into /Users/ondrej.machala/dev/video/output/timeline.json (overwrite existing)
17+
18+
## Step 2
19+
You need to run DebugEngine.py to get debug.mp4
20+
USAGE: `python3 Debug.py VIDEO_PATH TIMELINE_JSON OUTPUT_PATH`
21+
Save output into /Users/ondrej.machala/dev/video/output/debug.mp4 (overwrite existing)
22+
23+
## Step 3
24+
Play the output video using mpv command
25+
USAGE: `mpv /Users/ondrej.machala/dev/video/output/debug.mp4`
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: 🎯 Critical Cursor Coordinate Tests
2+
3+
on:
4+
push:
5+
branches: [ main, master ]
6+
paths:
7+
- 'processor2/timeline/CursorTransform.py'
8+
- 'processor2/timeline/CursorProcessor.py'
9+
- 'processor2/TimelineEngine.py'
10+
- 'processor2/test_cursor_coordinates.py'
11+
pull_request:
12+
branches: [ main, master ]
13+
paths:
14+
- 'processor2/timeline/CursorTransform.py'
15+
- 'processor2/timeline/CursorProcessor.py'
16+
- 'processor2/TimelineEngine.py'
17+
- 'processor2/test_cursor_coordinates.py'
18+
19+
jobs:
20+
cursor-coordinate-tests:
21+
runs-on: ubuntu-latest
22+
name: 🚨 Prevent Cursor Triple Scaling Bug
23+
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- name: Set up Python 3.9
28+
uses: actions/setup-python@v4
29+
with:
30+
python-version: 3.9
31+
32+
- name: Install dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
# Only install minimal dependencies needed for cursor coordinate tests
36+
pip install opencv-python numpy
37+
38+
- name: 🧪 Run Critical Cursor Coordinate Tests
39+
run: |
40+
cd processor2
41+
python test_cursor_coordinates.py
42+
env:
43+
PYTHONDONTWRITEBYTECODE: 1
44+
45+
- name: 🚨 Test Results
46+
if: failure()
47+
run: |
48+
echo "❌ CURSOR COORDINATE TESTS FAILED!"
49+
echo "🚫 DO NOT MERGE - Triple scaling bug detected!"
50+
echo "📋 The cursor coordinates are being scaled incorrectly."
51+
echo "🔧 Check CursorTransform.py for coordinate transformation issues."
52+
exit 1

0 commit comments

Comments
 (0)