1
0
mirror of https://github.com/Luzifer/cam2mjpeg.git synced 2024-09-16 13:58:25 +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",