capture use display from ENV.

This commit is contained in:
Miroslav Šedivý
2021-03-11 17:55:13 +01:00
parent d24cea3535
commit 6b638db825
2 changed files with 26 additions and 67 deletions

View File

@ -41,7 +41,7 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt
"! videoconvert "+
"! queue "+
"! x264enc threads=4 bitrate=4096 key-int-max=15 byte-stream=true tune=zerolatency speed-preset=veryfast "+
"! mux.", config.Device, config.Display,
"! mux.", config.AudioDevice, config.Display,
)
}
@ -74,7 +74,7 @@ func New(desktop types.DesktopManager, config *config.Capture) *CaptureManagerCt
"! audioconvert "+
"! queue "+
"! %s "+
"! appsink name=appsink", config.Device, config.AudioCodec.Pipeline,
"! appsink name=appsink", config.AudioDevice, config.AudioCodec.Pipeline,
)
}),
videos: map[string]*StreamManagerCtx{