Skip to content

Commit 8b7c222

Browse files
authored
Merge pull request #9 from Zozman/main
Update from main
2 parents c238acd + 9000336 commit 8b7c222

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout code
14-
uses: actions/checkout@v4
14+
uses: actions/checkout@v5
1515

1616
- name: Set up Go
1717
uses: actions/setup-go@v5
@@ -43,13 +43,13 @@ jobs:
4343

4444
steps:
4545
- name: Checkout code
46-
uses: actions/checkout@v4
46+
uses: actions/checkout@v5
4747

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

5151
- name: Build and cache Docker image
52-
uses: docker/build-push-action@v5
52+
uses: docker/build-push-action@v6
5353
with:
5454
context: .
5555
push: false
@@ -93,10 +93,10 @@ jobs:
9393

9494
steps:
9595
- name: Checkout code
96-
uses: actions/checkout@v4
96+
uses: actions/checkout@v5
9797

9898
- name: Download Docker image artifact
99-
uses: actions/download-artifact@v4
99+
uses: actions/download-artifact@v5
100100
with:
101101
name: docker-image-${{ github.run_id }}
102102
path: /tmp

cmd/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ func startFFmpegStream(ctx context.Context, config *Config, display string, stre
467467
"-i", fmt.Sprintf("%s+0,0", display), // Specify exact offset
468468
"-f", "alsa", // Use ALSA for audio capture (FFmpeg supports this)
469469
"-i", "default", // Use ALSA default device (configured to route to PulseAudio)
470+
"-map", "0:v", // Explicitly map video from input 0 (x11grab)
471+
"-map", "1:a", // Explicitly map audio from input 1 (alsa)
470472
"-vf", "crop=in_w:in_h:0:0", // Crop to exact dimensions
471473
"-c:v", "libx264",
472474
"-preset", "veryfast",

0 commit comments

Comments
 (0)