udp transmission with appsrc

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

udp transmission with appsrc

Mehta, Neel

Hi.

 

I am running a script which passes custom application buffers to appsrc and streams via udp:

 

'appsrc is-live=true name=source caps="video/mpeg, mpegversion=(int)4, framerate=(fraction)1001/30000, width=(int)1280, height=(int)720" ! udpsink host=172.24.190.141 port=5000

 

At the receiver side (ip:172.24.190.141), I am running the pipeline:

 

gst-launch-0.10 -v udpsrc port=5000 caps="video/mpeg, mpegversion=(int)4, framerate=(fraction)1001/30000, width=(int)1280, height=(int)720" ! filesink location=udp.m4v

 

Below is the output (GST_DEBUG=3) on the server side. On the server side, the frames are being pushed into the appsrc (based on a printf debug statement that I had created). But the output file does not contain any data at the receiver side. I have also worked on the server pipeline replacing the udpsink by filesink and the file is written perfectly. So, where is the problem??

 

I am attaching the file (appsrc_udp.txt) which contains the code on the server side.

 

Thanks in advance.

 

Regards,

Neel.

 

GST_DEBUG=3 output (SERVER SIDE):

 

0:00:00.003243500  1240   0x2a1a38 INFO              GST_INIT gst.c:611:init_pre: Initializing GStreamer Core Library version 0.10.23

0:00:00.008008583  1240   0x2a1a38 INFO              GST_INIT gst.c:612:init_pre: Using library installed in /home1/neel/target/filesys//opt/gstreamer/lib

0:00:00.009483542  1240   0x2a1a38 INFO              GST_INIT gst.c:622:init_pre: Linux 172.24.190.8 2.6.10_mvl401_IPNC-2.1.0 #5 Thu Feb 19 17:51:05 CST 2009 armv5tejl

0:00:00.013499417  1240   0x2a1a38 INFO              GST_INIT gstquery.c:105:_gst_query_initialize: init queries

0:00:00.057699458  1240   0x2a1a38 INFO              GST_INIT gstmessage.c:73:_gst_message_initialize: init messages

0:00:00.063471917  1240   0x2a1a38 INFO    GST_PLUGIN_LOADING gstplugin.c:261:_gst_plugin_initialize: registering 0 static plugins

0:00:00.074288208  1240   0x2a1a38 INFO    GST_PLUGIN_LOADING gstplugin.c:246:gst_plugin_register_static: registered static plugin "staticelements"

0:00:00.075900708  1240   0x2a1a38 INFO    GST_PLUGIN_LOADING gstplugin.c:248:gst_plugin_register_static: added static plugin "staticelements", result: 1

0:00:00.077257000  1240   0x2a1a38 INFO              GST_INIT gst.c:923:ensure_current_registry: reading registry cache: /tmp/gst_registry.bin

0:00:00.406396833  1240   0x2a1a38 INFO          GST_REGISTRY gstregistrybinary.c:1285:gst_registry_binary_read_cache: loaded /tmp/gst_registry.bin in 0.327440 seconds

0:00:00.425684292  1255   0x2a1a38 INFO              GST_INIT gst.c:674:scan_and_update_registry: Validating registry cache: /tmp/gst_registry.bin

0:00:00.595751708  1255   0x2a1a38 INFO              GST_INIT gst.c:759:scan_and_update_registry: Registry cache has not changed

0:00:00.611931375  1240   0x2a1a38 INFO              GST_INIT gst.c:970:ensure_current_registry: registry reading and updating done, result = 1

0:00:00.616412292  1240   0x2a1a38 INFO              GST_INIT gst.c:446:gst_init_check: initialized GStreamer successfully

0:00:00.621581917  1240   0x2a1a38 INFO          GST_PIPELINE gstparse.c:291:gst_parse_launch_full: parsing pipeline description 'appsrc is-live=true name=source caps="video/mpeg, mpegversion=(int)4, framerate=(fraction)1001/30000, width=(int)1280, height=(int)720" ! udpsink host=172.24.190.141 port=5000'

0:00:00.664309917  1240   0x2a1a38 INFO    GST_PLUGIN_LOADING gstplugin.c:567:gst_plugin_load_file: plugin "/opt/gstreamer/lib/gstreamer-0.10/libgstapp.so" loaded

0:00:00.666314333  1240   0x2a1a38 INFO   GST_ELEMENT_FACTORY gstelementfactory.c:379:gst_element_factory_create: creating element "appsrc"

0:00:00.671041458  1240   0x2a1a38 INFO      GST_ELEMENT_PADS gstelement.c:641:gst_element_add_pad:<GstBaseSrc@0x2fe070> adding pad 'src'

0:00:00.728885833  1240   0x2a1a38 INFO    GST_PLUGIN_LOADING gstplugin.c:567:gst_plugin_load_file: plugin "/opt/gstreamer/lib/gstreamer-0.10/libgstudp.so" loaded

0:00:00.730912125  1240   0x2a1a38 INFO   GST_ELEMENT_FACTORY gstelementfactory.c:379:gst_element_factory_create: creating element "udpsink"

0:00:00.734165750  1240   0x2a1a38 INFO      GST_ELEMENT_PADS gstelement.c:641:gst_element_add_pad:<GstBaseSink@0x304168> adding pad 'sink'

0:00:00.761322375  1240   0x2a1a38 INFO   GST_ELEMENT_FACTORY gstelementfactory.c:379:gst_element_factory_create: creating element "pipeline"

0:00:00.767281333  1240   0x2a1a38 INFO          GST_PIPELINE ./grammar.y:478:gst_parse_perform_link: (null)

0:00:00.768932542  1240   0x2a1a38 INFO      GST_ELEMENT_PADS gstutils.c:1338:gst_element_link_pads: trying to link element source:(any) to element udpsink0:(any)

0:00:00.770930000  1240   0x2a1a38 INFO              GST_PADS gstutils.c:792:gst_pad_check_link: trying to link source:src and udpsink0:sink

0:00:00.773534875  1240   0x2a1a38 INFO              GST_PADS gstutils.c:1243:prepare_link_maybe_ghosting: source and udpsink0 in same bin, no need for ghost pads

0:00:00.776921333  1240   0x2a1a38 INFO              GST_PADS gstpad.c:1849:gst_pad_link_prepare: trying to link source:src and udpsink0:sink

0:00:00.778604542  1240   0x2a1a38 INFO              GST_PADS gstpad.c:2022:gst_pad_link: linked source:src and udpsink0:sink, successful

0:00:00.781175917  1240   0x2a1a38 INFO         GST_PARENTAGE gstbin.c:3460:gst_bin_get_by_name: [pipeline0]: looking up child element source

0:00:00.787509458  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2152:gst_element_continue_state:<udpsink0> completed state change to READY

0:00:00.788892667  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2165:gst_element_continue_state:<udpsink0> posting state-changed NULL to READY

0:00:00.790834708  1240   0x2a1a38 INFO            GST_STATES gstbin.c:2328:gst_bin_change_state_func:<pipeline0> child 'udpsink0' changed state to 2(READY) successfully

0:00:00.792691833  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2152:gst_element_continue_state:<source> completed state change to READY

0:00:00.794071542  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2165:gst_element_continue_state:<source> posting state-changed NULL to READY

0:00:00.795858208  1240   0x2a1a38 INFO            GST_STATES gstbin.c:2328:gst_bin_change_state_func:<pipeline0> child 'source' changed state to 2(READY) successfully

0:00:00.797585417  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2125:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PLAYING

0:00:00.799337625  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2134:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PLAYING

0:00:00.802973333  1240   0x2a1a38 INFO            GST_STATES gstbin.c:2334:gst_bin_change_state_func:<pipeline0> child 'udpsink0' is changing state asynchronously to PAUSED

0:00:00.805932875  1240   0x2a1a38 INFO             GST_EVENT gstevent.c:590: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.810222042  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2152:gst_element_continue_state:<source> completed state change to PAUSED

0:00:00.811679083  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2165:gst_element_continue_state:<source> posting state-changed READY to PAUSED

0:00:00.813497792  1240   0x2a1a38 INFO            GST_STATES gstbin.c:2349:gst_bin_change_state_func:<pipeline0> child 'source' changed state to 3(PAUSED) successfully without preroll

0:00:00.815280542  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2125:gst_element_continue_state:<pipeline0> committing state from READY to PAUSED, pending PLAYING

0:00:00.816984000  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2134:gst_element_continue_state:<pipeline0> continue state change PAUSED to PLAYING, final PLAYING

0:00:01.161805000  1240   0x2a1a38 WARN                   bin gstbin.c:2217:gst_bin_do_latency_func:<pipeline0> failed to query latency

0:00:01.164057708  1240   0x2a1a38 INFO            GST_STATES gstbin.c:2334:gst_bin_change_state_func:<pipeline0> child 'udpsink0' is changing state asynchronously to PLAYING

0:00:01.165806583  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2152:gst_element_continue_state:<source> completed state change to PLAYING

0:00:01.167195333  1240   0x2a1a38 INFO            GST_STATES gstelement.c:2165:gst_element_continue_state:<source> posting state-changed PAUSED to PLAYING

0:00:01.168960375  1240   0x2a1a38 INFO            GST_STATES gstbin.c:2328:gst_bin_change_state_func:<pipeline0> child 'source' changed state to 4(PLAYING) successfully

0:00:01.198997125  1240   0x3065f8 INFO            GST_STATES gstbin.c:2736:bin_handle_async_done:<pipeline0> continue state change, pending PLAYING

0:00:01.202331292  1240   0x308cd8 INFO            GST_STATES gstbin.c:2534:gst_bin_continue_func:<pipeline0> continue state change PAUSED to PLAYING, final PLAYING

0:00:01.206007042  1240   0x308cd8 INFO             GST_EVENT gstevent.c:1062:gst_event_new_latency: creating latency event 0:00:00.000000000

0:00:01.208416875  1240   0x308cd8 INFO                   bin gstbin.c:2206:gst_bin_do_latency_func:<pipeline0> configured latency of 0:00:00.000000000

0:00:01.210840542  1240   0x308cd8 INFO            GST_STATES gstelement.c:2152:gst_element_continue_state:<udpsink0> completed state change to PLAYING

0:00:01.213242667  1240   0x308cd8 INFO            GST_STATES gstelement.c:2165:gst_element_continue_state:<udpsink0> posting state-changed PAUSED to PLAYING

0:00:01.220499583  1240   0x308cd8 INFO            GST_STATES gstbin.c:2328:gst_bin_change_state_func:<pipeline0> child 'udpsink0' changed state to 4(PLAYING) successfully

0:00:01.223041417  1240   0x308cd8 INFO            GST_STATES gstelement.c:2152:gst_element_continue_state:<source> completed state change to PLAYING

0:00:01.224411083  1240   0x308cd8 INFO            GST_STATES gstbin.c:2328:gst_bin_change_state_func:<pipeline0> child 'source' changed state to 4(PLAYING) successfully

0:00:01.225947500  1240   0x308cd8 INFO            GST_STATES gstelement.c:2152:gst_element_continue_state:<pipeline0> completed state change to PLAYING

0:00:01.227266750  1240   0x308cd8 INFO            GST_STATES gstelement.c:2165:gst_element_continue_state:<pipeline0> posting state-changed PAUSED to PLAYING


------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

appsrc_udp.txt (5K) Download Attachment