<h2> Help would be appreciated</h2>
<p>So i am developing an application where a received RTSP video stream from an IP camera is sent to an UDPSink. The stream is the captured by an UDPSrc and then needs to be viewed and recorded as it receives the stream. The problem i am having is that running to seperate pipelines (one for viewing the stream and one forstoring the stream) works perfectly, but as soon as i try to multithread a single pipeline , the file stored is corrupt and the stream viewed freezes on the first frame. This is what i have: </p>

<h3>1.Sending stream to UDPSink</h3>
<p>
GST_DEBUG=3 gst-launch-1.0 -v  rtspsrc location=rtsp://10.15.1.216/h264/ch1/main/av_stream user-id=admin user-pw=admin123 name=source latency=0 ! udpsink host=10.15.1.187 port=5555 

Debug info (Cut of due to minicom restrictions): 
0:00:00.851016469  1376 0xb4a0e920 FIXME                default gstutils.c:3643:gst_pad_create_stream_id
0:00:01.077272027  1376 0xb4a0e8f0 WARN         rtpjitterbuffer rtpjitterbuffer.c:185:rtp_jitter_buffer0
</p>

<h4>2.Receiving and only playing stream(works but with weird error)</h4>
<p>
GST_DEBUG=3 gst-launch-1.0 udpsrc -e -v port=5555 caps="application/x-rtp" ! rtph264depay ! decodebin ! xvimagesink

Debug output: 
0:00:39.153089376  2102      0x1eb9590 WARN                   libav gstavcodecmap.c:2431:gst_ffmpeg_caps_to_pixfmt: ignoring insane framerate 1/0
0:00:39.179478785  2102      0x1eb9590 ERROR                  libav :0:: Invalid UE golomb code (this recurs until i stop the pipe)
</p>


<h5>3.Receiving and only storing the stream(works with same weird error)</h5>
<p>
GST_DEBUG=3 gst-launch-1.0 udpsrc -e -v port=5555 caps="application/x-rtp" ! rtph264depay ! decodebin ! x264enc ! mp4mux ! filesink location=file.mp4

Debug Output:
0:00:00.694398942  2302      0x116c190 WARN                   libav gstavcodecmap.c:2431:gst_ffmpeg_caps_to_pixfmt: ignoring insane framerate 1/0
0:00:00.702328266  2302      0x116c190 ERROR                  libav :0:: Invalid UE golomb code(this recurs until i stop the pipe)
0:00:02.737976169  2302      0x116c190 FIXME               basesink gstbasesink.c:3117:gst_base_sink_default_event:<filesink0> stream-start event without group-id. Consider implementing group-id handling in the upstream elements

<h6>4.Attempt to multithread 2 and 3(file corrupt and stream only showing first frame)</h6>
<p>
GST_DEBUG=3 gst-launch-1.0 udpsrc -e -v port=5555 caps="application/x-rtp" ! rtph264depay ! decodebin ! tee name-tp tp.! queue ! xvimagesink tp. ! queue ! x264enc ! mp4mux ! filesink location=file.mp4

Debug output:
0:00:00.818106680  2419       0xe274f0 WARN                   libav gstavcodecmap.c:2431:gst_ffmpeg_caps_to_pixfmt: ignoring insane framerate 1/0
0:00:00.820016110  2419       0xe274f0 ERROR                  libav :0:: Invalid UE golomb code
Redistribute latency...

</p>



        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Multi-threading-issue-with-udp-rtsp-packets-tp4675627.html">Multi threading issue with udp/rtsp packets</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>