diff options
author | Antonio García-Domínguez <nyoescape@gmail.com> | 2018-07-23 10:00:58 +0100 |
---|---|---|
committer | Antonio García-Domínguez <nyoescape@gmail.com> | 2018-07-23 10:00:58 +0100 |
commit | 8dcddc871e50768c78f5316aa2b4a000322448e4 (patch) | |
tree | f353f4bd051189a75e1b988896cbb97452ab3eab | |
parent | 9555840edaa3a432a388118a3bd39d812e303a43 (diff) |
Add SYNC config variable with some small comments
-rwxr-xr-x | prepare-videochat.sh | 9 |
1 files changed, 7 insertions, 2 deletions
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 |