Skip to content

Commit

Permalink
Update FFmpeg device discovery for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Sep 2, 2023
1 parent 13a7957 commit 5645c73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/ffmpeg/device/device_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ func initDevices() {
for _, i := range m {
size, _, _ := strings.Cut(i[4], " ")
stream := &api.Source{
Name: i[3] + " | " + i[4],
Name: i[3],
Info: i[4],
URL: "ffmpeg:device?video=" + name + "&input_format=" + i[2] + "&video_size=" + size,
}

Expand All @@ -88,6 +89,7 @@ func initDevices() {
if err == nil {
stream := &api.Source{
Name: "ALSA default",
Info: " ",
URL: "ffmpeg:device?audio=default&channels=1&sample_rate=16000&#audio=opus",
}

Expand Down

0 comments on commit 5645c73

Please sign in to comment.