<h2>Problem</h2>
I'm able to send an h.264 RTP stream to a client that can create an HLS. I'm also able to have the client save the stream as a series of .jpg files. But I haven't been able to do both at the same time with a tee.

It doesn't give an error, it just doesn't do anything. No .ts files or .jpg files emitted from the pipeline receiving the RTP stream when I use the tee. It works fine when I have two separate receiving pipelines.

<h2>Server: encode video from USB camera with h.264 encoding built-in</h2>
Pull the video off the camera and send it over the wire.

<pre>gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! rtph264pay pt=127 config-interval=4 ! udpsink host=192.168.1.200 port=8008 -v</pre>

<h2>Client: HLS on client - works</h2>
Receive the video stream and "re stream" it as an HLS

<pre>gst-launch-1.0 -v udpsrc port=8008 ! \
   application/x-rtp,payload=127 ! \
   rtph264depay ! \
   mpegtsmux ! \
   hlssink playlist-location=/var/www/html/hls/playlist1080p.m3u8 location=/var/www/html/hls/segment1080p-%05d.ts max-files=5</pre>

<h2>Client: Capture .jpg images every 5 seconds - also works</h2>
Grab an image that can be used as the current thumbnail every 5 seconds

<pre>gst-launch-1.0 -v udpsrc port=8028 ! \
   application/x-rtp,payload=127 ! rtph264depay ! decodebin ! videoconvert ! videoscale ! \
   videorate ! video/x-raw,framerate=1/10 ! jpegenc ! multifilesink location=/var/www/html/hls/snapshot.jpg</pre>

<h2>Client: Tee to do both the above at the same time - doesn't work</h2>
Put both together as a tee...

<pre>gst-launch-1.0 -v --gst-debug-level=2 udpsrc port=8008 ! application/x-rtp,payload=127 ! rtph264depay ! \
tee name=t \
  t. ! queue ! mpegtsmux ! hlssink playlist-location=/var/www/html/hls/playlist1080p.m3u8 location=/var/www/html/hls/segment1080p-%05d.ts max-files=5 \
  t. ! queue ! decodebin ! videoconvert ! videoscale ! videorate ! video/x-raw,framerate=1/5 ! jpegenc ! multifilesink location=/var/www/html/hls/snapshot.jpg</pre>

But that last one doesn't work. :( What am I doing wrong here?

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Save-incoming-RTP-to-HLS-and-jpg-with-tee-tp4674181.html">Save incoming RTP to HLS and .jpg with tee?</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>