Multi threading issue with udp/rtsp packets
debruyn
debruynels1 at gmail.com
Wed Feb 3 09:56:09 CET 2016
Help would be appreciated
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:
1.Sending stream to UDPSink
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_id0:00:01.077272027 1376 0xb4a0e8f0
WARN rtpjitterbuffer rtpjitterbuffer.c:185:rtp_jitter_buffer0
2.Receiving and only playing stream(works but with weird error)
GST_DEBUG=3 gst-launch-1.0 udpsrc -e -v port=5555 caps="application/x-rtp" !
rtph264depay ! decodebin ! xvimagesinkDebug output: 0:00:39.153089376 2102
0x1eb9590 WARN libav
gstavcodecmap.c:2431:gst_ffmpeg_caps_to_pixfmt: ignoring insane framerate
1/00:00:39.179478785 2102 0x1eb9590 ERROR libav :0::
Invalid UE golomb code (this recurs until i stop the pipe)
3.Receiving and only storing the stream(works with same weird error)
GST_DEBUG=3 gst-launch-1.0 udpsrc -e -v port=5555 caps="application/x-rtp" !
rtph264depay ! decodebin ! x264enc ! mp4mux ! filesink
location=file.mp4Debug Output:0:00:00.694398942 2302 0x116c190 WARN
libav gstavcodecmap.c:2431:gst_ffmpeg_caps_to_pixfmt: ignoring insane
framerate 1/00: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: stream-start event without
group-id. Consider implementing group-id handling in the upstream elements
4.Attempt to multithread 2 and 3(file corrupt and stream only showing first
frame)
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.mp4Debug
output:0:00:00.818106680 2419 0xe274f0 WARN libav
gstavcodecmap.c:2431:gst_ffmpeg_caps_to_pixfmt: ignoring insane framerate
1/00:00:00.820016110 2419 0xe274f0 ERROR libav :0::
Invalid UE golomb codeRedistribute latency...
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Multi-threading-issue-with-udp-rtsp-packets-tp4675627.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160203/aa01f3c4/attachment.html>
More information about the gstreamer-devel
mailing list