[gst-devel] RTP pipeline for stream MPEG1/2 files

Mario Latronico mario.latronico at gmail.com
Thu Aug 9 18:43:05 CEST 2007


Hello,

i would like to stream MPEG1/2 files over the net, however i cannot
find a correct pipeline for the server side:
I tried the following pipeline, which doesn't give apparently any error:

/home/mario/apps/gstreamer/bin/gst-launch-0.10 -vvv filesrc
location=/home/mario/dreambox/video/mariner.mpg ! ffdemux_mpeg !
rtpmp2tpay ! udpsink host=10.14.99.31 port=5554

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...

where host is my client which will receive the stream on port 5554

When i try to enable debug some errors come out:

------------- begin pasted code ----------------


mario at mario-laptop:~$ /home/mario/apps/gstreamer/bin/gst-launch-0.10
--gst-debug=*:3 -vvv filesrc
location=/home/mario/dreambox/video/mariner.mpg ! ffdemux_mpeg ! tee !
rtpmp2tpay ! udpsink host=10.14.99.31 port=5554
0:00:00.000233000 25642 0x804e080 INFO              GST_INIT
gstquery.c:100:_gst_query_initialize: init queries
0:00:00.000675000 25642 0x804e080 INFO              GST_INIT
gstmessage.c:72:_gst_message_initialize: init messages
0:00:00.001219000 25642 0x804e080 INFO    GST_PLUGIN_LOADING
gstplugin.c:182:_gst_plugin_register_static: loaded static plugin
"staticelements"
0:00:00.001833000 25642 0x804e080 INFO              GST_INIT
gst.c:797:ensure_current_registry_forking: reading registry cache:
/home/mario/.gstreamer-0.10/registry.i686.xml
0:00:00.029971000 25642 0x804e080 INFO          GST_REGISTRY
gstregistryxml.c:573:gst_registry_xml_read_cache: loaded
/home/mario/.gstreamer-0.10/registry.i686.xml in 0.028093 seconds
0:00:00.032723000 25643 0x804e080 INFO              GST_INIT
gst.c:734:scan_and_update_registry: Registry cache has not changed
0:00:00.033038000 25642 0x804e080 INFO          GST_PIPELINE
gstparse.c:160:gst_parse_launch: parsing pipeline description filesrc
location=/home/mario/dreambox/video/mariner.mpg ! ffdemux_mpeg ! tee !
rtpmp2tpay ! udpsink host=10.14.99.31 port=5554
0:00:00.034957000 25642 0x804e080 INFO    GST_PLUGIN_LOADING
gstplugin.c:471:gst_plugin_load_file: plugin
"/home/mario/apps/gstreamer/lib/gstreamer-0.10/libgstcoreelements.so"
loaded
0:00:00.035001000 25642 0x804e080 INFO   GST_ELEMENT_FACTORY
gstelementfactory.c:376:gst_element_factory_create: creating element
"filesrc"
0:00:00.035118000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:628:gst_element_add_pad:<GstBaseSrc at 0x80ed010> adding pad
'src'
0:00:00.066860000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_4xm
0:00:00.066976000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_aiff
0:00:00.067317000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_avs
0:00:00.067416000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_daud
0:00:00.067510000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_dv
0:00:00.067603000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_ea
0:00:00.067704000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_ffm
0:00:00.067810000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_flic
0:00:00.067948000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_flv
0:00:00.068041000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_gif
0:00:00.068140000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_gxf
0:00:00.068232000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_idcin
0:00:00.068332000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_RoQ
0:00:00.068434000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_ipmovie
0:00:00.068588000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_mm
0:00:00.068685000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_mmf
0:00:00.092949000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_mpegts
0:00:00.093074000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_mxf
0:00:00.093178000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_nsv
0:00:00.093278000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_nut
0:00:00.093767000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_nuv
0:00:00.094008000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_psxstr
0:00:00.094241000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_ingenient
0:00:00.094529000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_film_cpk
0:00:00.094755000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_vmd
0:00:00.094973000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_smk
0:00:00.095197000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_sol
0:00:00.095410000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_swf
0:00:00.095675000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_voc
0:00:00.095971000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_wc3movie
0:00:00.096187000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_wsaud
0:00:00.096402000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_wsvqa
0:00:00.096615000 25642 0x804e080 INFO          GST_TYPEFIND
gsttypefind.c:83:gst_type_find_register: registering typefind function
for fftype_yuv4mpegpipe
0:00:00.099056000 25642 0x804e080 INFO    GST_PLUGIN_LOADING
gstplugin.c:471:gst_plugin_load_file: plugin
"/home/mario/apps/gstreamer/lib/gstreamer-0.10/libgstffmpeg.so" loaded
0:00:00.099227000 25642 0x804e080 INFO   GST_ELEMENT_FACTORY
gstelementfactory.c:376:gst_element_factory_create: creating element
"ffdemux_mpeg"
0:00:00.099394000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:628:gst_element_add_pad:<ffdemux_mpeg at 0x8175070> adding
pad 'sink'
0:00:00.099581000 25642 0x804e080 INFO   GST_ELEMENT_FACTORY
gstelementfactory.c:376:gst_element_factory_create: creating element
"tee"
0:00:00.099755000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:628:gst_element_add_pad:<GstTee at 0x8176030> adding pad
'sink'
0:00:00.104278000 25642 0x804e080 INFO    GST_PLUGIN_LOADING
gstplugin.c:471:gst_plugin_load_file: plugin
"/home/mario/apps/gstreamer/lib/gstreamer-0.10/libgstrtp.so" loaded
0:00:00.104469000 25642 0x804e080 INFO   GST_ELEMENT_FACTORY
gstelementfactory.c:376:gst_element_factory_create: creating element
"rtpmp2tpay"
0:00:00.104633000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:628:gst_element_add_pad:<GstBaseRTPPayload at 0x8191008>
adding pad 'src'
0:00:00.104790000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:628:gst_element_add_pad:<GstBaseRTPPayload at 0x8191008>
adding pad 'sink'
0:00:00.108513000 25642 0x804e080 INFO    GST_PLUGIN_LOADING
gstplugin.c:471:gst_plugin_load_file: plugin
"/home/mario/apps/gstreamer/lib/gstreamer-0.10/libgstudp.so" loaded
0:00:00.108671000 25642 0x804e080 INFO   GST_ELEMENT_FACTORY
gstelementfactory.c:376:gst_element_factory_create: creating element
"udpsink"
0:00:00.108844000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:628:gst_element_add_pad:<GstBaseSink at 0x8198068> adding
pad 'sink'
0:00:00.109073000 25642 0x804e080 INFO   GST_ELEMENT_FACTORY
gstelementfactory.c:376:gst_element_factory_create: creating element
"pipeline"
0:00:00.109327000 25642 0x804e080 INFO          GST_PIPELINE
./grammar.y:416:gst_parse_perform_link: linking filesrc0:(any) to
ffdemux_mpeg0:(any) (0/0) with caps "(NULL)"
0:00:00.109479000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstutils.c:1356:gst_element_link_pads: trying to link element
filesrc0:(any) to element ffdemux_mpeg0:(any)
0:00:00.109619000 25642 0x804e080 INFO              GST_PADS
gstutils.c:2034:gst_pad_can_link: trying to link filesrc0:src and
ffdemux_mpeg0:sink
0:00:00.109751000 25642 0x804e080 INFO              GST_PADS
gstutils.c:1261:prepare_link_maybe_ghosting: filesrc0 and
ffdemux_mpeg0 in same bin, no need for ghost pads
0:00:00.109889000 25642 0x804e080 INFO              GST_PADS
gstpad.c:1759:gst_pad_link_prepare: trying to link filesrc0:src and
ffdemux_mpeg0:sink
0:00:00.110027000 25642 0x804e080 INFO              GST_PADS
gstpad.c:1896:gst_pad_link: linked filesrc0:src and
ffdemux_mpeg0:sink, successful
0:00:00.110155000 25642 0x804e080 INFO          GST_PIPELINE
./grammar.y:416:gst_parse_perform_link: linking ffdemux_mpeg0:(any) to
tee0:(any) (0/0) with caps "(NULL)"
0:00:00.110289000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstutils.c:1356:gst_element_link_pads: trying to link element
ffdemux_mpeg0:(any) to element tee0:(any)
0:00:00.110449000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:871:gst_element_get_static_pad: no such pad 'video_%02d'
in element "ffdemux_mpeg0"
0:00:00.110586000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstutils.c:979:gst_element_get_compatible_pad:<ffdemux_mpeg0> Could
not find a compatible pad to link to tee0:sink
0:00:00.110727000 25642 0x804e080 INFO          GST_PIPELINE
./grammar.y:416:gst_parse_perform_link: linking tee0:(any) to
rtpmp2tpay0:(any) (0/0) with caps "(NULL)"
0:00:00.110860000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstutils.c:1356:gst_element_link_pads: trying to link element
tee0:(any) to element rtpmp2tpay0:(any)
0:00:00.110996000 25642 0x804e080 INFO              GST_PADS
gstutils.c:2034:gst_pad_can_link: trying to link rtpmp2tpay0:sink and
tee0:sink
0:00:00.111122000 25642 0x804e080 INFO              GST_PADS
gstutils.c:2049:gst_pad_can_link: Src pad rtpmp2tpay0:sink is not
source pad, failed
0:00:00.111286000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:628:gst_element_add_pad:<tee0> adding pad 'src0'
0:00:00.111420000 25642 0x804e080 INFO              GST_PADS
gstutils.c:1261:prepare_link_maybe_ghosting: tee0 and rtpmp2tpay0 in
same bin, no need for ghost pads
0:00:00.111551000 25642 0x804e080 INFO              GST_PADS
gstpad.c:1759:gst_pad_link_prepare: trying to link tee0:src0 and
rtpmp2tpay0:sink
0:00:00.111688000 25642 0x804e080 INFO              GST_PADS
gstpad.c:1896:gst_pad_link: linked tee0:src0 and rtpmp2tpay0:sink,
successful
0:00:00.111816000 25642 0x804e080 INFO          GST_PIPELINE
./grammar.y:416:gst_parse_perform_link: linking rtpmp2tpay0:(any) to
udpsink0:(any) (0/0) with caps "(NULL)"
0:00:00.111954000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstutils.c:1356:gst_element_link_pads: trying to link element
rtpmp2tpay0:(any) to element udpsink0:(any)
0:00:00.112087000 25642 0x804e080 INFO              GST_PADS
gstutils.c:2034:gst_pad_can_link: trying to link rtpmp2tpay0:src and
udpsink0:sink
0:00:00.112214000 25642 0x804e080 INFO              GST_PADS
gstutils.c:1261:prepare_link_maybe_ghosting: rtpmp2tpay0 and udpsink0
in same bin, no need for ghost pads
0:00:00.112343000 25642 0x804e080 INFO              GST_PADS
gstpad.c:1759:gst_pad_link_prepare: trying to link rtpmp2tpay0:src and
udpsink0:sink
0:00:00.112477000 25642 0x804e080 INFO              GST_PADS
gstpad.c:1896:gst_pad_link: linked rtpmp2tpay0:src and udpsink0:sink,
successful
Setting pipeline to PAUSED ...
0:00:00.112739000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<udpsink0> completed
state change to READY
0:00:00.112868000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<udpsink0> posting
state-changed NULL to READY
0:00:00.113023000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child 'udpsink0'
changed state to 2(READY) successfully
0:00:00.113161000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<rtpmp2tpay0> completed
state change to READY
0:00:00.113288000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<rtpmp2tpay0> posting
state-changed NULL to READY
0:00:00.113422000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child
'rtpmp2tpay0' changed state to 2(READY) successfully
0:00:00.113556000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<tee0> completed state
change to READY
0:00:00.113680000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<tee0> posting
state-changed NULL to READY
0:00:00.113813000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child 'tee0'
changed state to 2(READY) successfully
0:00:00.113949000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<ffdemux_mpeg0> completed
state change to READY
0:00:00.114077000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<ffdemux_mpeg0> posting
state-changed NULL to READY
0:00:00.114212000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child
'ffdemux_mpeg0' changed state to 2(READY) successfully
0:00:00.114346000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<filesrc0> completed
state change to READY
0:00:00.114472000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<filesrc0> posting
state-changed NULL to READY
0:00:00.114605000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child 'filesrc0'
changed state to 2(READY) successfully
0:00:00.114950000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2101:gst_element_continue_state:<pipeline0> committing
state from NULL to READY, pending PAUSED
0:00:00.115088000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2110:gst_element_continue_state:<pipeline0> continue
state change READY to PAUSED, final PAUSED
0:00:00.115266000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2064:gst_bin_change_state_func:<pipeline0> child 'udpsink0'
is changing state asynchronously to PAUSED
0:00:00.115417000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<rtpmp2tpay0> completed
state change to PAUSED
0:00:00.115546000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<rtpmp2tpay0> posting
state-changed READY to PAUSED
0:00:00.115681000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child
'rtpmp2tpay0' changed state to 3(PAUSED) successfully
0:00:00.115820000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<tee0> completed state
change to PAUSED
0:00:00.115948000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<tee0> posting
state-changed READY to PAUSED
0:00:00.116082000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child 'tee0'
changed state to 3(PAUSED) successfully
0:00:00.116231000 25642 0x804e080 INFO               filesrc
gstfilesrc.c:901:gst_file_src_start:<filesrc0> opening file
/home/mario/dreambox/video/mariner.mpg
0:00:00.116382000 25642 0x804e080 INFO               filesrc
gstfilesrc.c:901:gst_file_src_start:<filesrc0> opening file
/home/mario/dreambox/video/mariner.mpg
0:00:00.116604000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<ffdemux_mpeg0> completed
state change to PAUSED
0:00:00.116740000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<ffdemux_mpeg0> posting
state-changed READY to PAUSED
0:00:00.116878000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child
'ffdemux_mpeg0' changed state to 3(PAUSED) successfully
0:00:00.117027000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<filesrc0> completed
state change to PAUSED
0:00:00.117169000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<filesrc0> posting
state-changed READY to PAUSED
0:00:00.117304000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child 'filesrc0'
changed state to 3(PAUSED) successfully
Pipeline is PREROLLING ...
0:00:00.122750000 25642 0x8196350 INFO      GST_ELEMENT_PADS
gstelement.c:628:gst_element_add_pad:<ffdemux_mpeg0> adding pad
'video_00'
0:00:00.122801000 25642 0x8196350 INFO          GST_PIPELINE
./grammar.y:343:gst_parse_found_pad: trying delayed linking
ffdemux_mpeg0:(NULL) to tee0:(NULL)
0:00:00.122826000 25642 0x8196350 INFO      GST_ELEMENT_PADS
gstutils.c:1356:gst_element_link_pads: trying to link element
ffdemux_mpeg0:(any) to element tee0:(any)
0:00:00.122854000 25642 0x8196350 INFO              GST_PADS
gstutils.c:2034:gst_pad_can_link: trying to link
ffdemux_mpeg0:video_00 and tee0:sink
0:00:00.122875000 25642 0x8196350 INFO              GST_PADS
gstutils.c:1261:prepare_link_maybe_ghosting: ffdemux_mpeg0 and tee0 in
same bin, no need for ghost pads
0:00:00.122898000 25642 0x8196350 INFO              GST_PADS
gstpad.c:1759:gst_pad_link_prepare: trying to link
ffdemux_mpeg0:video_00 and tee0:sink
0:00:00.122933000 25642 0x8196350 INFO              GST_PADS
gstpad.c:1833:gst_pad_link_prepare: caps are incompatible
0:00:00.122955000 25642 0x8196350 INFO              GST_PADS
gstutils.c:2034:gst_pad_can_link: trying to link tee0:sink and
ffdemux_mpeg0:video_00
0:00:00.122974000 25642 0x8196350 INFO              GST_PADS
gstutils.c:2049:gst_pad_can_link: Src pad tee0:sink is not source pad,
failed
0:00:00.123020000 25642 0x8196350 INFO      GST_ELEMENT_PADS
gstelement.c:871:gst_element_get_static_pad: no such pad 'video_%02d'
in element "ffdemux_mpeg0"
0:00:00.123047000 25642 0x8196350 INFO      GST_ELEMENT_PADS
gstutils.c:979:gst_element_get_compatible_pad:<ffdemux_mpeg0> Could
not find a compatible pad to link to tee0:sink
0:00:00.123160000 25642 0x8196350 INFO      GST_ELEMENT_PADS
gstelement.c:628:gst_element_add_pad:<ffdemux_mpeg0> adding pad
'audio_00'
0:00:00.123185000 25642 0x8196350 INFO          GST_PIPELINE
./grammar.y:343:gst_parse_found_pad: trying delayed linking
ffdemux_mpeg0:(NULL) to tee0:(NULL)
0:00:00.123205000 25642 0x8196350 INFO      GST_ELEMENT_PADS
gstutils.c:1356:gst_element_link_pads: trying to link element
ffdemux_mpeg0:(any) to element tee0:(any)
0:00:00.123227000 25642 0x8196350 INFO              GST_PADS
gstutils.c:2034:gst_pad_can_link: trying to link
ffdemux_mpeg0:audio_00 and tee0:sink
0:00:00.123247000 25642 0x8196350 INFO              GST_PADS
gstutils.c:1261:prepare_link_maybe_ghosting: ffdemux_mpeg0 and tee0 in
same bin, no need for ghost pads
0:00:00.123265000 25642 0x8196350 INFO              GST_PADS
gstpad.c:1759:gst_pad_link_prepare: trying to link
ffdemux_mpeg0:audio_00 and tee0:sink
0:00:00.123294000 25642 0x8196350 INFO              GST_PADS
gstpad.c:1833:gst_pad_link_prepare: caps are incompatible
0:00:00.123315000 25642 0x8196350 INFO              GST_PADS
gstutils.c:2034:gst_pad_can_link: trying to link
ffdemux_mpeg0:video_00 and tee0:sink
0:00:00.123335000 25642 0x8196350 INFO              GST_PADS
gstutils.c:1261:prepare_link_maybe_ghosting: ffdemux_mpeg0 and tee0 in
same bin, no need for ghost pads
0:00:00.123352000 25642 0x8196350 INFO              GST_PADS
gstpad.c:1759:gst_pad_link_prepare: trying to link
ffdemux_mpeg0:video_00 and tee0:sink
0:00:00.123380000 25642 0x8196350 INFO              GST_PADS
gstpad.c:1833:gst_pad_link_prepare: caps are incompatible
0:00:00.123400000 25642 0x8196350 INFO              GST_PADS
gstutils.c:2034:gst_pad_can_link: trying to link tee0:sink and
ffdemux_mpeg0:audio_00
0:00:00.123419000 25642 0x8196350 INFO              GST_PADS
gstutils.c:2049:gst_pad_can_link: Src pad tee0:sink is not source pad,
failed
0:00:00.123444000 25642 0x8196350 INFO              GST_PADS
gstutils.c:2034:gst_pad_can_link: trying to link tee0:sink and
ffdemux_mpeg0:video_00
0:00:00.123462000 25642 0x8196350 INFO              GST_PADS
gstutils.c:2049:gst_pad_can_link: Src pad tee0:sink is not source pad,
failed
0:00:00.123502000 25642 0x8196350 INFO      GST_ELEMENT_PADS
gstelement.c:871:gst_element_get_static_pad: no such pad 'video_%02d'
in element "ffdemux_mpeg0"
0:00:00.123527000 25642 0x8196350 INFO      GST_ELEMENT_PADS
gstutils.c:979:gst_element_get_compatible_pad:<ffdemux_mpeg0> Could
not find a compatible pad to link to tee0:sink
0:00:00.123565000 25642 0x8196350 INFO             GST_EVENT
gstevent.c:528:gst_event_new_new_segment_full: creating newsegment
update 0, rate 1.000000, format GST_FORMAT_TIME, start
0:00:00.000000000, stop 99:99:99.999999999, position 0:00:00.000000000
0:00:00.127518000 25642 0x8196350 WARN                ffmpeg
gstffmpegdemux.c:1243:gst_ffmpegdemux_loop:<ffdemux_mpeg0>
av_read_frame returned -2
Caught interrupt -- handling interrupt.
Interrupt: Setting pipeline to PAUSED ...
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
0:00:02.248170000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<udpsink0> completed
state change to READY
0:00:02.248196000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<udpsink0> posting
state-changed READY to READY
0:00:02.248223000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child 'udpsink0'
changed state to 2(READY) successfully
0:00:02.248257000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<rtpmp2tpay0> completed
state change to READY
0:00:02.248277000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<rtpmp2tpay0> posting
state-changed PAUSED to READY
0:00:02.248303000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child
'rtpmp2tpay0' changed state to 2(READY) successfully
0:00:02.248332000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<tee0> completed state
change to READY
0:00:02.248351000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<tee0> posting
state-changed PAUSED to READY
0:00:02.248376000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child 'tee0'
changed state to 2(READY) successfully
/pipeline0/ffdemux_mpeg0.audio_00: caps = NULL
/pipeline0/ffdemux_mpeg0.video_00: caps = NULL
0:00:02.249557000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:746:gst_element_remove_pad:<ffdemux_mpeg0> removing pad
'video_00'
0:00:02.249589000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:746:gst_element_remove_pad:<ffdemux_mpeg0> removing pad
'audio_00'
0:00:02.249628000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<ffdemux_mpeg0> completed
state change to READY
0:00:02.249648000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<ffdemux_mpeg0> posting
state-changed PAUSED to READY
0:00:02.249675000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child
'ffdemux_mpeg0' changed state to 2(READY) successfully
0:00:02.249705000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<filesrc0> completed
state change to READY
0:00:02.249725000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<filesrc0> posting
state-changed PAUSED to READY
0:00:02.249750000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child 'filesrc0'
changed state to 2(READY) successfully
0:00:02.249777000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2101:gst_element_continue_state:<pipeline0> committing
state from READY to READY, pending NULL
0:00:02.249803000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2110:gst_element_continue_state:<pipeline0> continue
state change READY to NULL, final NULL
0:00:02.249837000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<udpsink0> completed
state change to NULL
0:00:02.249857000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<udpsink0> posting
state-changed READY to NULL
0:00:02.249885000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child 'udpsink0'
changed state to 1(NULL) successfully
0:00:02.249915000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<rtpmp2tpay0> completed
state change to NULL
0:00:02.249934000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<rtpmp2tpay0> posting
state-changed READY to NULL
0:00:02.249960000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child
'rtpmp2tpay0' changed state to 1(NULL) successfully
0:00:02.249993000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<tee0> completed state
change to NULL
0:00:02.250013000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<tee0> posting
state-changed READY to NULL
0:00:02.250041000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child 'tee0'
changed state to 1(NULL) successfully
0:00:02.250069000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<ffdemux_mpeg0> completed
state change to NULL
0:00:02.250089000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<ffdemux_mpeg0> posting
state-changed READY to NULL
0:00:02.250113000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child
'ffdemux_mpeg0' changed state to 1(NULL) successfully
0:00:02.250138000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<filesrc0> completed
state change to NULL
0:00:02.250156000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<filesrc0> posting
state-changed READY to NULL
0:00:02.250180000 25642 0x804e080 INFO            GST_STATES
gstbin.c:2058:gst_bin_change_state_func:<pipeline0> child 'filesrc0'
changed state to 1(NULL) successfully
0:00:02.250220000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2128:gst_element_continue_state:<pipeline0> completed
state change to NULL
0:00:02.251600000 25642 0x804e080 INFO            GST_STATES
gstelement.c:2141:gst_element_continue_state:<pipeline0> posting
state-changed READY to NULL
0:00:02.251628000 25642 0x804e080 INFO            GST_STATES
gstbin.c:1519:gst_bin_get_state_func:<pipeline0> getting state
FREEING pipeline ...
0:00:02.251658000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstpad.c:1538:gst_pad_unlink: unlinking rtpmp2tpay0:src(0x80ee280) and
udpsink0:sink(0x80ee400)
0:00:02.251680000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstpad.c:1573:gst_pad_unlink: unlinked rtpmp2tpay0:src and
udpsink0:sink
0:00:02.251701000 25642 0x804e080 INFO         GST_PARENTAGE
gstbin.c:1198:gst_bin_remove_func:<pipeline0> removed child "udpsink0"
0:00:02.251723000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2694:gst_element_dispose:<udpsink0> dispose
0:00:02.251743000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:746:gst_element_remove_pad:<udpsink0> removing pad 'sink'
0:00:02.251768000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2717:gst_element_dispose:<udpsink0> parent class dispose
0:00:02.251791000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2740:gst_element_finalize:<udpsink0> finalize
0:00:02.251810000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2751:gst_element_finalize:<udpsink0> finalize parent
0:00:02.251833000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstpad.c:1538:gst_pad_unlink: unlinking tee0:src0(0x80ee4c0) and
rtpmp2tpay0:sink(0x80ee340)
0:00:02.251853000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstpad.c:1573:gst_pad_unlink: unlinked tee0:src0 and rtpmp2tpay0:sink
0:00:02.251877000 25642 0x804e080 INFO         GST_PARENTAGE
gstbin.c:1198:gst_bin_remove_func:<pipeline0> removed child
"rtpmp2tpay0"
0:00:02.251898000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2694:gst_element_dispose:<rtpmp2tpay0> dispose
0:00:02.251916000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:746:gst_element_remove_pad:<rtpmp2tpay0> removing pad
'sink'
0:00:02.251940000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:746:gst_element_remove_pad:<rtpmp2tpay0> removing pad
'src'
0:00:02.251966000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2717:gst_element_dispose:<rtpmp2tpay0> parent class
dispose
0:00:02.251989000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2740:gst_element_finalize:<rtpmp2tpay0> finalize
0:00:02.252007000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2751:gst_element_finalize:<rtpmp2tpay0> finalize parent
0:00:02.252030000 25642 0x804e080 INFO         GST_PARENTAGE
gstbin.c:1198:gst_bin_remove_func:<pipeline0> removed child "tee0"
0:00:02.252051000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2694:gst_element_dispose:<tee0> dispose
0:00:02.252068000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:746:gst_element_remove_pad:<tee0> removing pad 'src0'
0:00:02.252092000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:746:gst_element_remove_pad:<tee0> removing pad 'sink'
0:00:02.252118000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2717:gst_element_dispose:<tee0> parent class dispose
0:00:02.252139000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2740:gst_element_finalize:<tee0> finalize
0:00:02.252158000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2751:gst_element_finalize:<tee0> finalize parent
0:00:02.252178000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstpad.c:1538:gst_pad_unlink: unlinking filesrc0:src(0x80ee040) and
ffdemux_mpeg0:sink(0x80ee100)
0:00:02.252198000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstpad.c:1573:gst_pad_unlink: unlinked filesrc0:src and
ffdemux_mpeg0:sink
0:00:02.252218000 25642 0x804e080 INFO         GST_PARENTAGE
gstbin.c:1198:gst_bin_remove_func:<pipeline0> removed child
"ffdemux_mpeg0"
0:00:02.253552000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2694:gst_element_dispose:<ffdemux_mpeg0> dispose
0:00:02.253570000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:746:gst_element_remove_pad:<ffdemux_mpeg0> removing pad
'sink'
0:00:02.253594000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2717:gst_element_dispose:<ffdemux_mpeg0> parent class
dispose
0:00:02.253617000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2740:gst_element_finalize:<ffdemux_mpeg0> finalize
0:00:02.253636000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2751:gst_element_finalize:<ffdemux_mpeg0> finalize parent
0:00:02.253658000 25642 0x804e080 INFO         GST_PARENTAGE
gstbin.c:1198:gst_bin_remove_func:<pipeline0> removed child "filesrc0"
0:00:02.253682000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2694:gst_element_dispose:<filesrc0> dispose
0:00:02.253700000 25642 0x804e080 INFO      GST_ELEMENT_PADS
gstelement.c:746:gst_element_remove_pad:<filesrc0> removing pad 'src'
0:00:02.253723000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2717:gst_element_dispose:<filesrc0> parent class dispose
0:00:02.253744000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2740:gst_element_finalize:<filesrc0> finalize
0:00:02.253763000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2751:gst_element_finalize:<filesrc0> finalize parent
0:00:02.253782000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2694:gst_element_dispose:<pipeline0> dispose
0:00:02.253803000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2717:gst_element_dispose:<pipeline0> parent class dispose
0:00:02.253823000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2740:gst_element_finalize:<pipeline0> finalize
0:00:02.253842000 25642 0x804e080 INFO       GST_REFCOUNTING
gstelement.c:2751:gst_element_finalize:<pipeline0> finalize parent
0:00:02.253863000 25642 0x804e080 INFO              GST_INIT
gst.c:1221:gst_deinit: deinitializing GStreamer
0:00:02.256171000 25642 0x804e080 INFO              GST_INIT
gst.c:1245:gst_deinit: deinitialized GStreamer
mario at mario-laptop:~$


------------- end pasted code ----------------

i find that caps are incompatible.

How can i set a correct pipeline to stream an MPEG1/2 video over the
net with rtp mp2t payloader ?

Thank you !!!

Mario Latronico




More information about the gstreamer-devel mailing list