mirror of
https://github.com/Luzifer/cam2mjpeg.git
synced 2024-11-09 14:10:03 +00:00
Add nobuffer flag
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
8c836c3b21
commit
0107f4b8b8
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
@ -73,6 +73,7 @@ func main() {
|
||||||
"-s", fmt.Sprintf("%dx%d", cfg.Width, cfg.Height),
|
"-s", fmt.Sprintf("%dx%d", cfg.Width, cfg.Height),
|
||||||
"-r", strconv.Itoa(cfg.FrameRate),
|
"-r", strconv.Itoa(cfg.FrameRate),
|
||||||
"-i", cfg.Device,
|
"-i", cfg.Device,
|
||||||
|
"-fflags", "nobuffer",
|
||||||
"-c:v", "mjpeg",
|
"-c:v", "mjpeg",
|
||||||
"-q:v", strconv.Itoa(cfg.Quality),
|
"-q:v", strconv.Itoa(cfg.Quality),
|
||||||
"-boundary_tag", "ffmpeg",
|
"-boundary_tag", "ffmpeg",
|
||||||
|
|
Loading…
Reference in a new issue