From 8dcddc871e50768c78f5316aa2b4a000322448e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Garc=C3=ADa-Dom=C3=ADnguez?= Date: Mon, 23 Jul 2018 10:00:58 +0100 Subject: Add SYNC config variable with some small comments --- prepare-videochat.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'prepare-videochat.sh') diff --git a/prepare-videochat.sh b/prepare-videochat.sh index 4fe6c26..ee0cc81 100755 --- a/prepare-videochat.sh +++ b/prepare-videochat.sh @@ -180,6 +180,11 @@ CAPTURE_STREAM=av # want to skip autodetection (e.g. for multiple webcams): #DEVICE=/dev/video0 +# Force syncing to timestamps. Useful to keep audio and video in sync, +# but may impact performance in slow connections. If you see errors about +# timestamping or you do not need audio, you can try changing this to false. +SYNC=true + ### FUNCTIONS has_kernel_module() { @@ -537,13 +542,13 @@ pipeline_video() { ! videoscale \ ! videorate \ ! $GST_VIDEO_CAPS \ - ! v4l2sink device="$DEVICE" sync=true + ! v4l2sink device="$DEVICE" sync=$SYNC } pipeline_audio() { echo souphttpsrc location="$AUDIO_URL" do-timestamp=true is-live=true \ ! $GST_AUDIO_CAPS ! queue \ - ! pulsesink device="$SINK_NAME" sync=true + ! pulsesink device="$SINK_NAME" sync=$SYNC } if [ $CAPTURE_STREAM = av ]; then -- cgit v1.2.3