Skip to content

Commit 9f61282

Browse files
authored
Explicitly mapped video and audio channel order
1 parent 35f9840 commit 9f61282

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)