summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Sieber <jonathan_sieber@yahoo.de>2017-05-10 14:17:07 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-05-10 14:17:07 +0200
commitd9678760203b9869c4b3673b33f7e8c5d55f7897 (patch)
tree840a8bef5033cc967917feea19588bb09494fa67
parentab182ff23ef488766ecc14f301440a36851c2261 (diff)
gst_video1: Fix latency issues (#247)
Tune x264enc for low latency...
-rw-r--r--modules/gst_video1/encode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gst_video1/encode.c b/modules/gst_video1/encode.c
index 045efad..b563d07 100644
--- a/modules/gst_video1/encode.c
+++ b/modules/gst_video1/encode.c
@@ -225,6 +225,7 @@ static int pipeline_init(struct videnc_state *st, const struct vidsz *size)
"do-timestamp=TRUE max-bytes=1000000 ! "
"videoparse width=%d height=%d format=i420 framerate=%d/1 ! "
"x264enc byte-stream=TRUE rc-lookahead=0 "
+ "tune=zerolatency speed-preset=ultrafast "
"sync-lookahead=0 bitrate=%d ! "
"appsink name=sink emit-signals=TRUE drop=TRUE",
size->w, size->h,