d3d11screencapturesrc: how i can add delay to the video? (attention of Seungha Yang)

info at mbsoft.biz info at mbsoft.biz
Sat Feb 25 16:56:40 UTC 2023

I’m capturing a win32 form and adding audio from stdin and saving into an mkv file.

My pipeline Is this:

gst-launch-1.0.exe -e d3d11screencapturesrc capture-api=1 window-handle=1116712 crop-x=3 crop-width=1598 crop-y=3 crop-height=898 ! queue leaky=1 ! clockoverlay halignment=2 valignment=4 time-format="%e %b %Y %H:%M:%S" auto-resize=false font-desc="DS-Digital, 28" ! videoconvertscale ! video/x-raw,width=854,height=480 ! mfh264enc bitrate=1024 rc-mode=0 ! h264parse ! matroskamux name=mux streamable=true ! queue leaky=1 ! filesink location="D:\\90Giorni\\2023-02-25_0000.mkv" fdsrc ! rawaudioparse format=pcm pcm-format=s16le sample-rate=44100 num-channels=2 ! audioresample ! audioconvert ! opusenc bitrate=128000 ! opusparse ! mux.

Everything works like a charm but for some reason I need to add a little delay to the video (up to 1 second). I tried to use the queue min-threshold-time and min-threshold-bytes but no lucv, nothing change.

How I can add delay to the video in the pipeline using gst-launch-1.0.exe on windows?

Thank you

More information about the gstreamer-devel mailing list