diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com> | 2023-10-25 13:32:30 +0300 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com> | 2023-10-25 13:55:06 +0300 |
commit | ee93448de796830233a4568fa7c2760e900bde94 (patch) | |
tree | 7ea3d2450d66fe9367d408899b767e9ca9e54255 /utils/livesync | |
parent | 6633cc4046aa1f5a22ba8e1ee39a101b9b9559c5 (diff) |
livesync: example: Add identities single-segment=1
These let us change the runtime offset of the test buffers via pad
offsets without pushing new segments into livesync, which is necessary
to demo the late-threshold behavior.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1369>
Diffstat (limited to 'utils/livesync')
-rw-r--r-- | utils/livesync/examples/gtk_livesync.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/livesync/examples/gtk_livesync.rs b/utils/livesync/examples/gtk_livesync.rs index 40e09cf6e..b0a77089b 100644 --- a/utils/livesync/examples/gtk_livesync.rs +++ b/utils/livesync/examples/gtk_livesync.rs @@ -35,6 +35,7 @@ fn create_pipeline() -> gst::Pipeline { gst::parse_launch( r#"videotestsrc name=vsrc is-live=1 ! video/x-raw,framerate=60/1,width=800,height=600 + ! identity single-segment=1 ! timeoverlay text="Pre:" ! queue ! livesync latency=50000000 @@ -44,6 +45,7 @@ fn create_pipeline() -> gst::Pipeline { ! gtk4paintablesink name=vsink audiotestsrc name=asrc is-live=1 ! audio/x-raw,channels=2 + ! identity single-segment=1 ! queue ! livesync latency=50000000 ! audiorate |