Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
10 changes: 5 additions & 5 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up Go
uses: actions/setup-go@v5
Expand Down Expand Up @@ -43,13 +43,13 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and cache Docker image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: false
Expand Down Expand Up @@ -93,10 +93,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v5

- name: Download Docker image artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v5
with:
name: docker-image-${{ github.run_id }}
path: /tmp
Expand Down
2 changes: 2 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,8 @@ func startFFmpegStream(ctx context.Context, config *Config, display string, stre
"-i", fmt.Sprintf("%s+0,0", display), // Specify exact offset
"-f", "alsa", // Use ALSA for audio capture (FFmpeg supports this)
"-i", "default", // Use ALSA default device (configured to route to PulseAudio)
"-map", "0:v", // Explicitly map video from input 0 (x11grab)
"-map", "1:a", // Explicitly map audio from input 1 (alsa)
"-vf", "crop=in_w:in_h:0:0", // Crop to exact dimensions
"-c:v", "libx264",
"-preset", "veryfast",
Expand Down