Playbin could not recognize H264 stream with RTP over UDP
lucky chou
shakin at outlook.com
Wed Nov 16 08:10:15 UTC 2016
Hi,
I am using GStreamer 1.10 and stream screen with RTP over UDP,pipeline as
follows:
sender:
gst-launch-1.0 -v ximagesrc ! videoconvert ! videoscale !
video/x-raw,width=1080,height=720 ! x264enc speed-preset=ultrafast
tune=zerolatency ! rtph264pay config-interval=3 ! udpsink host=127.0.0.1
port=5200
I tested, if with following pipeline, it works well.
----
gst-launch-1.0 udpsrc uri=udp://127.0.0.1:5200 caps='application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
packetization-mode=(string)1, payload=(int)96' ! rtph264depay ! h264parse !
decodebin ! glimagesink sync=false
----
However, playbin can not play, show the following error:
-----------
*gst-launch-1.0 playbin uri=udp://127.0.0.1:5200 *
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind:
*Could not determine type of stream.*
Additional debug info:
gsttypefindelement.c(994): gst_type_find_element_chain_do_typefinding ():
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind
Execution ended after 0:00:01.547020089
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
It seems like caps have not been detected?
Because I have several play scenes using playbin, I would like to ask,is
there any way to make playbin can play above stream?
Any comments and suggestion will be appreciated,thanks.
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Playbin-could-not-recognize-H264-stream-with-RTP-over-UDP-tp4680712.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list