1
0
Fork 0
mirror of https://github.com/Luzifer/cam2mjpeg.git synced 2024-12-20 17:31:19 +00:00

Add nobuffer flag

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-01-05 23:37:51 +01:00
parent 8c836c3b21
commit 0107f4b8b8
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -73,6 +73,7 @@ func main() {
"-s", fmt.Sprintf("%dx%d", cfg.Width, cfg.Height),
"-r", strconv.Itoa(cfg.FrameRate),
"-i", cfg.Device,
"-fflags", "nobuffer",
"-c:v", "mjpeg",
"-q:v", strconv.Itoa(cfg.Quality),
"-boundary_tag", "ffmpeg",