[gst-devel] Problem with Pipeline udpsrc -> mux -> filesink
prabhulinga Swamy B S
prabhu.fort at gmail.com
Thu Dec 23 15:17:06 CET 2010
Hi all,
I'm able to send, receive and playback H264 video file using rtph264pay,
rtph264depay and ximagesink elements across different hosts. I'm using
following pipeline.
host_send $ gst-launch filesrc location=./Cam111-20101126-193700.avi ! \
avidemux ! h264parse ! rtph264pay ! udpsink
host=172.16.10.32 port=3000
host_rec $ gst-launch udpsrc port=3000 \
caps="application/x-rtp,media=(string)video,encoding-string=(string)H264" !
\
rtph264depay ! h264parse ! ffdec_h264 ! ffmpegcolorspace !
ximagesink
The above combination of pipelines works correctly.
The problem is, when I try to save the video into any container format(
say, .avi or .mp4),
udpsrc element reports "Internal data flow error".
I tried following pipeline,
host_rec $ gst-launch udpsrc port=3000 \
caps="application/x-rtp,media=(string)video,encoding-string=(string)H264" !
\
rtph264depay ! h264parse ! avimux ! filesink
location=test.avi
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal
data flow error.
Additional debug info:
gstbasesrc.c(2507): gst_base_src_loop ():
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 73780416 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
I wonder how it affects changing the sink element. I tried changing
the properties of 'h264parse' and tried setting the full caps for 'udpsrc'.
same problem persists.
Can anybody guide me regarding this.
--
Regards,
Prabhu B S
More information about the gstreamer-devel
mailing list