# Pipeline stalls with tee

**URL:** <https://discourse.gstreamer.org/t/pipeline-stalls-with-tee/1939>\
**Category:** Application Development\
**Created:** [July 13, 2024, 11:09pm UTC](https://discourse.gstreamer.org/t/pipeline-stalls-with-tee/1939 "2024-07-13T23:09:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rottnest](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/rottnest/32/136_2.png) [@rottnest](https://discourse.gstreamer.org/u/rottnest)\
**Post date:** [July 13, 2024, 11:09pm UTC](https://discourse.gstreamer.org/t/pipeline-stalls-with-tee/1939/1 "2024-07-13T23:09:54Z")

</div>

This pipeline runs  
gst-launch-1.0 -vv   
v4l2src device=/dev/video0 !   
image/jpeg,width=1920,height=1080,framerate=30/1 !   
jpegdec !   
videoconvert !   
queue max-size-buffers=0 max-size-bytes=0 max-size-time=1000000000 !   
gdkpixbufoverlay name=logo !   
clockoverlay name=DT halignment=left valignment=top font-desc=“Sans, 12” time-format=“%d %b %Y %H:%M:%S” !   
tee name=t t. !   
queue ! glimagesink name=sink sync=false   
t. ! queue !   
x264enc speed-preset=ultrafast tune=zerolatency byte-stream=true bitrate=4000 key-int-max=100 !   
mux. pulsesrc device=alsa\_input.usb-0d8c\_USB\_Sound\_Device-00.analog-stereo !   
queue ! audioconvert !   
audioresample !   
audio/x-raw, rate=48000 !   
avenc\_aac !   
mux. qtmux name=mux !   
filesink location=/home/dvr/Channel1.14Jul2024.062335.mp4

but adding  
tee name=tt   
queue !   
filesink location=/home/dvr/Channel1.14Jul2024.062335.mp4   
tt. ! queue !   
fakesink

cause it to stall, I cannot see why. Can anybody enlighten me please

---

<div class="post-metadata">

**Author:** ![tpm](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@tpm](https://discourse.gstreamer.org/u/tpm)\
**Post date:** [July 14, 2024, 6:05pm UTC](https://discourse.gstreamer.org/t/pipeline-stalls-with-tee/1939/2 "2024-07-14T18:05:29Z")

</div>

> [@rottnest](#):
>
> but adding  
> tee name=tt  
> queue !  
> filesink location=/home/dvr/Channel1.14Jul2024.062335.mp4  
> tt. ! queue !  
> fakesink
> 
> cause it to stall, I cannot see why. Can anybody enlighten me please

There seems to be a link missing between the tee and the first queue?
