1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

gstplayer: set sync=false to reduce latency

This commit is contained in:
Derek Dai 2016-12-13 18:03:15 +08:00
parent eb5c563a8d
commit 12cef6e0fc
No known key found for this signature in database
GPG key ID: E109CC97553EF009

View file

@ -97,10 +97,10 @@ class Player(object):
if scale:
gstcommand += "videoscale method=1 ! video/x-raw,width="+str(self.width)+",height="+str(self.height)+" ! "
gstcommand += "autovideosink "
gstcommand += "autovideosink sync=false "
if audio:
gstcommand += "demuxer. ! queue max-size-buffers=0 max-size-time=0 ! aacparse ! avdec_aac ! audioconvert ! audioresample ! autoaudiosink "
gstcommand += "demuxer. ! queue max-size-buffers=0 max-size-time=0 ! aacparse ! avdec_aac ! audioconvert ! audioresample ! autoaudiosink sync=false "
self.pipeline = Gst.parse_launch(gstcommand)