Unable to get gstreamer to launch tv window

Rinaldo Merlo rinaldomerlo at gmail.com
Wed Sep 17 05:06:23 PDT 2014


I have an ezcap usb device, and it works fine with the following mplayer
command:

$ mplayer tv:// -tv driver=v4l2:device=/dev/video0:input=1

A little tv window pops up and all is as expected

With gstreamer however, it doesn't error, but then no tv window pops up
either. I've tried a few different commands and settled on the following:

$ v4l2-ctl --set-input=1
$ v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=YUYV
$ gst-launch-1.0 v4l2src device=/dev/video0 !  autovideosink

All I get for output is:

$ gst-launch-1.0 v4l2src device=/dev/video0 !  autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

I've also attached the output from debug level 4. It appears it might be
something to do with the resolution. The ezcap card is is only capable of
640x480 maximum. Any help would be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140917/524e1e38/attachment.html>
-------------- next part --------------
$ gst-launch-1.0 --gst-debug-level=4 v4l2src device=/dev/video0 !  autovideosink
0:00:00.000636119 31946       0xaaac40 INFO                GST_INIT gstmessage.c:123:_priv_gst_message_initialize: init messages
0:00:00.000727835 31946       0xaaac40 INFO                GST_INIT gstcontext.c:77:_priv_gst_context_initialize: init contexts
0:00:00.000858089 31946       0xaaac40 INFO      GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.000946561 31946       0xaaac40 INFO      GST_PLUGIN_LOADING gstplugin.c:225:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.000957057 31946       0xaaac40 INFO      GST_PLUGIN_LOADING gstplugin.c:227:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.000976000 31946       0xaaac40 INFO            GST_REGISTRY gstregistry.c:1680:ensure_current_registry: reading registry cache: /home/rmerlo/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.016153564 31946       0xaaac40 INFO            GST_REGISTRY gstregistrybinary.c:617:priv_gst_registry_binary_read_cache: loaded /home/rmerlo/.cache/gstreamer-1.0/registry.x86_64.bin in 0.015164 seconds
0:00:00.016211649 31946       0xaaac40 INFO            GST_REGISTRY gstregistry.c:1539:scan_and_update_registry: Validating plugins from registry cache: /home/rmerlo/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.016872774 31946       0xaaac40 INFO            GST_REGISTRY gstregistry.c:1638:scan_and_update_registry: Registry cache has not changed
0:00:00.016890462 31946       0xaaac40 INFO            GST_REGISTRY gstregistry.c:1715:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.016903286 31946       0xaaac40 INFO                GST_INIT gst.c:707:init_post: GLib runtime version: 2.40.0
0:00:00.016915126 31946       0xaaac40 INFO                GST_INIT gst.c:709:init_post: GLib headers version: 2.40.0
0:00:00.016937406 31946       0xaaac40 INFO            GST_PIPELINE gstparse.c:322:gst_parse_launch_full: parsing pipeline description 'v4l2src device=/dev/video0 ! autovideosink '
0:00:00.018251107 31946       0xaaac40 INFO      GST_PLUGIN_LOADING gstplugin.c:830:gst_plugin_load_file: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstvideo4linux2.so" loaded
0:00:00.018273469 31946       0xaaac40 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:365:gst_element_factory_create: creating element "v4l2src"
0:00:00.018530395 31946       0xaaac40 INFO        GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:<GstBaseSrc at 0xc60100> adding pad 'src'
0:00:00.018702347 31946       0xaaac40 INFO      GST_PLUGIN_LOADING gstplugin.c:830:gst_plugin_load_file: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstautodetect.so" loaded
0:00:00.018721944 31946       0xaaac40 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:365:gst_element_factory_create: creating element "autovideosink"
0:00:00.018815366 31946       0xaaac40 INFO        GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:<GstAutoVideoSink at 0xc66020> adding pad 'sink'
0:00:00.019136087 31946       0xaaac40 INFO      GST_PLUGIN_LOADING gstplugin.c:830:gst_plugin_load_file: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstcoreelements.so" loaded
0:00:00.019156650 31946       0xaaac40 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "fakesink" named "tempsink"
0:00:00.019243273 31946       0xaaac40 INFO        GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:<GstBaseSink at 0xc6f270> adding pad 'sink'
0:00:00.019285413 31946       0xaaac40 INFO        GST_ELEMENT_PADS gstelement.c:897:gst_element_get_static_pad: found pad tempsink:sink
0:00:00.019303678 31946       0xaaac40 INFO                GST_PADS gstpad.c:2120:gst_pad_link_prepare: trying to link sink:proxypad0 and tempsink:sink
0:00:00.019319075 31946       0xaaac40 INFO                GST_PADS gstpad.c:2322:gst_pad_link_full: linked sink:proxypad0 and tempsink:sink, successful
0:00:00.019333119 31946       0xaaac40 INFO               GST_EVENT gstevent.c:1313:gst_event_new_reconfigure: creating reconfigure event
0:00:00.019366848 31946       0xaaac40 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:365:gst_element_factory_create: creating element "pipeline"
0:00:00.019429477 31946       0xaaac40 INFO            GST_PIPELINE ./grammar.y:578:gst_parse_perform_link: linking v4l2src0:(any) to autovideosink0:(any) (0/0) with caps "(NULL)"
0:00:00.019450404 31946       0xaaac40 INFO        GST_ELEMENT_PADS gstutils.c:1543:gst_element_link_pads_full: trying to link element v4l2src0:(any) to element autovideosink0:(any)
0:00:00.019465916 31946       0xaaac40 INFO                GST_PADS gstutils.c:936:gst_pad_check_link: trying to link v4l2src0:src and autovideosink0:sink
0:00:00.019498865 31946       0xaaac40 INFO                GST_PADS gstutils.c:1443:prepare_link_maybe_ghosting: v4l2src0 and autovideosink0 in same bin, no need for ghost pads
0:00:00.019522117 31946       0xaaac40 INFO                GST_PADS gstpad.c:2120:gst_pad_link_prepare: trying to link v4l2src0:src and autovideosink0:sink
0:00:00.019544081 31946       0xaaac40 INFO                GST_PADS gstpad.c:2322:gst_pad_link_full: linked v4l2src0:src and autovideosink0:sink, successful
0:00:00.019556928 31946       0xaaac40 INFO               GST_EVENT gstevent.c:1313:gst_event_new_reconfigure: creating reconfigure event
0:00:00.019567261 31946       0xaaac40 INFO               GST_EVENT gstpad.c:5083:gst_pad_send_event_unchecked:<v4l2src0:src> Received event on flushing pad. Discarding
Setting pipeline to PAUSED ...
0:00:00.019632121 31946       0xaaac40 INFO              GST_STATES gstbin.c:2227:gst_bin_element_set_state:<autovideosink0> current NULL pending VOID_PENDING, desired next READY
0:00:00.019650944 31946       0xaaac40 INFO              GST_STATES gstelement.c:2328:gst_element_continue_state:<tempsink> completed state change to NULL
0:00:00.019665447 31946       0xaaac40 INFO        GST_ELEMENT_PADS gstpad.c:1877:gst_pad_unlink: unlinking sink:proxypad0(0xc6a050) and tempsink:sink(0xc62310)
0:00:00.019680103 31946       0xaaac40 INFO        GST_ELEMENT_PADS gstpad.c:1931:gst_pad_unlink: unlinked sink:proxypad0 and tempsink:sink
0:00:00.019692915 31946       0xaaac40 INFO           GST_PARENTAGE gstbin.c:1556:gst_bin_remove_func:<autovideosink0> removed child "tempsink"
0:00:00.019706639 31946       0xaaac40 INFO         GST_REFCOUNTING gstelement.c:2873:gst_element_dispose:<tempsink> dispose
0:00:00.019716922 31946       0xaaac40 INFO        GST_ELEMENT_PADS gstelement.c:766:gst_element_remove_pad:<tempsink> removing pad 'sink'
0:00:00.019738895 31946       0xaaac40 INFO         GST_REFCOUNTING gstelement.c:2917:gst_element_dispose:<tempsink> parent class dispose
0:00:00.019751779 31946       0xaaac40 INFO         GST_REFCOUNTING gstelement.c:2948:gst_element_finalize:<tempsink> finalize
0:00:00.019761632 31946       0xaaac40 INFO         GST_REFCOUNTING gstelement.c:2953:gst_element_finalize:<tempsink> finalize parent
0:00:00.020156067 31946       0xaaac40 INFO      GST_PLUGIN_LOADING gstplugin.c:830:gst_plugin_load_file: plugin "/usr/lib/x86_64-linux-gnu/gstreamer-1.0/libgstxvimagesink.so" loaded
0:00:00.020174998 31946       0xaaac40 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:363:gst_element_factory_create: creating element "xvimagesink" named "autovideosink0-actual-sink-xvimage"
0:00:00.020281936 31946       0xaaac40 INFO        GST_ELEMENT_PADS gstelement.c:646:gst_element_add_pad:<GstBaseSink at 0xc71a10> adding pad 'sink'
0:00:00.020308000 31946       0xaaac40 INFO        GST_ELEMENT_PADS gstelement.c:897:gst_element_get_static_pad: found pad autovideosink0-actual-sink-xvimage:sink
0:00:00.022103546 31946       0xaaac40 INFO              GST_STATES gstelement.c:2328:gst_element_continue_state:<autovideosink0-actual-sink-xvimage> completed state change to READY
0:00:00.022126287 31946       0xaaac40 INFO              GST_STATES gstelement.c:2233:_priv_gst_element_state_changed:<autovideosink0-actual-sink-xvimage> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.022180110 31946       0xaaac40 INFO        GST_ELEMENT_PADS gstelement.c:897:gst_element_get_static_pad: found pad autovideosink0-actual-sink-xvimage:sink
0:00:00.022197606 31946       0xaaac40 INFO                GST_PADS gstpad.c:2120:gst_pad_link_prepare: trying to link sink:proxypad0 and autovideosink0-actual-sink-xvimage:sink
0:00:00.022211258 31946       0xaaac40 INFO                GST_PADS gstpad.c:2322:gst_pad_link_full: linked sink:proxypad0 and autovideosink0-actual-sink-xvimage:sink, successful
0:00:00.022223418 31946       0xaaac40 INFO               GST_EVENT gstevent.c:1313:gst_event_new_reconfigure: creating reconfigure event
0:00:00.022242809 31946       0xaaac40 INFO              GST_STATES gstbin.c:2227:gst_bin_element_set_state:<autovideosink0-actual-sink-xvimage> current READY pending VOID_PENDING, desired next READY
0:00:00.022259171 31946       0xaaac40 INFO              GST_STATES gstbin.c:2344:gst_bin_element_set_state:<autovideosink0-actual-sink-xvimage> skipping transition from READY to  READY
0:00:00.022270818 31946       0xaaac40 INFO              GST_STATES gstbin.c:2656:gst_bin_change_state_func:<autovideosink0> child 'autovideosink0-actual-sink-xvimage' changed state to 2(READY) successfully
0:00:00.022285356 31946       0xaaac40 INFO              GST_STATES gstelement.c:2328:gst_element_continue_state:<autovideosink0> completed state change to READY
0:00:00.022296033 31946       0xaaac40 INFO              GST_STATES gstelement.c:2233:_priv_gst_element_state_changed:<autovideosink0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.022313313 31946       0xaaac40 INFO              GST_STATES gstbin.c:2656:gst_bin_change_state_func:<pipeline0> child 'autovideosink0' changed state to 2(READY) successfully
0:00:00.022327166 31946       0xaaac40 INFO              GST_STATES gstbin.c:2227:gst_bin_element_set_state:<v4l2src0> current NULL pending VOID_PENDING, desired next READY
0:00:00.247481563 31946       0xaaac40 INFO                    v4l2 v4l2_calls.c:328:gst_v4l2_fill_lists:<v4l2src0> adding generic controls 'brightness'
0:00:00.247511584 31946       0xaaac40 INFO                    v4l2 v4l2_calls.c:328:gst_v4l2_fill_lists:<v4l2src0> adding generic controls 'contrast'
0:00:00.247524886 31946       0xaaac40 INFO                    v4l2 v4l2_calls.c:328:gst_v4l2_fill_lists:<v4l2src0> adding generic controls 'saturation'
0:00:00.247533333 31946       0xaaac40 INFO                    v4l2 v4l2_calls.c:328:gst_v4l2_fill_lists:<v4l2src0> adding generic controls 'hue'
0:00:00.247541612 31946       0xaaac40 INFO                    v4l2 v4l2_calls.c:328:gst_v4l2_fill_lists:<v4l2src0> adding generic controls 'red_balance'
0:00:00.247553229 31946       0xaaac40 INFO                    v4l2 v4l2_calls.c:328:gst_v4l2_fill_lists:<v4l2src0> adding generic controls 'blue_balance'
0:00:00.247561920 31946       0xaaac40 INFO                    v4l2 v4l2_calls.c:328:gst_v4l2_fill_lists:<v4l2src0> adding generic controls 'sharpness'
0:00:00.247570254 31946       0xaaac40 INFO                    v4l2 v4l2_calls.c:328:gst_v4l2_fill_lists:<v4l2src0> adding generic controls 'chroma_agc'
0:00:00.247577818 31946       0xaaac40 INFO                    v4l2 v4l2_calls.c:328:gst_v4l2_fill_lists:<v4l2src0> adding generic controls 'chroma_gain'
0:00:00.247585441 31946       0xaaac40 INFO                    v4l2 v4l2_calls.c:549:gst_v4l2_open:<v4l2src0> Opened device 'EM2860/SAA711X Reference Design' (/dev/video0) successfully
0:00:00.247607138 31946       0xaaac40 INFO              GST_STATES gstelement.c:2328:gst_element_continue_state:<v4l2src0> completed state change to READY
0:00:00.247616155 31946       0xaaac40 INFO              GST_STATES gstelement.c:2233:_priv_gst_element_state_changed:<v4l2src0> notifying about state-changed NULL to READY (VOID_PENDING pending)
0:00:00.247637713 31946       0xaaac40 INFO              GST_STATES gstbin.c:2656:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' changed state to 2(READY) successfully
0:00:00.247651163 31946       0xaaac40 INFO              GST_STATES gstelement.c:2303:gst_element_continue_state:<pipeline0> committing state from NULL to READY, pending PAUSED, next PAUSED
0:00:00.247662949 31946       0xaaac40 INFO              GST_STATES gstelement.c:2233:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed NULL to READY (PAUSED pending)
0:00:00.247696072 31946       0xaaac40 INFO              GST_STATES gstelement.c:2310:gst_element_continue_state:<pipeline0> continue state change READY to PAUSED, final PAUSED
0:00:00.247717638 31946       0xaaac40 INFO              GST_STATES gstbin.c:2227:gst_bin_element_set_state:<autovideosink0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.247737001 31946       0xaaac40 INFO              GST_STATES gstbin.c:2227:gst_bin_element_set_state:<autovideosink0-actual-sink-xvimage> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.247757564 31946       0xaaac40 INFO              GST_STATES gstbin.c:2662:gst_bin_change_state_func:<autovideosink0> child 'autovideosink0-actual-sink-xvimage' is changing state asynchronously to PAUSED
0:00:00.247775768 31946       0xaaac40 INFO              GST_STATES gstbin.c:2662:gst_bin_change_state_func:<pipeline0> child 'autovideosink0' is changing state asynchronously to PAUSED
0:00:00.247785522 31946       0xaaac40 INFO              GST_STATES gstbin.c:2227:gst_bin_element_set_state:<v4l2src0> current READY pending VOID_PENDING, desired next PAUSED
0:00:00.247802592 31946       0xaaac40 INFO                 basesrc gstbasesrc.c:1296:gst_base_src_do_seek:<v4l2src0> seeking: time segment start=0:00:00.000000000, stop=99:99:99.999999999, rate=1.000000, applied_rate=1.000000, flags=0x00, time=0:00:00.000000000, base=0:00:00.000000000, position 0:00:00.000000000, duration 99:99:99.999999999
0:00:00.247835770 31946       0xaaac40 INFO                    task gsttask.c:431:gst_task_set_lock: setting stream lock 0xc62150 on task 0xc8e050
0:00:00.247848057 31946       0xaaac40 INFO                GST_PADS gstpad.c:5415:gst_pad_start_task:<v4l2src0:src> created task 0xc8e050
0:00:00.247899570 31946       0xaaac40 INFO              GST_STATES gstelement.c:2328:gst_element_continue_state:<v4l2src0> completed state change to PAUSED
0:00:00.247908983 31946       0xaaac40 INFO              GST_STATES gstelement.c:2233:_priv_gst_element_state_changed:<v4l2src0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
0:00:00.247920930 31946       0xaaac40 INFO              GST_STATES gstbin.c:2699:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' changed state to 3(PAUSED) successfully without preroll
0:00:00.247932644 31946       0xaaac40 INFO              GST_STATES gstelement.c:2328:gst_element_continue_state:<pipeline0> completed state change to PAUSED
0:00:00.247939747 31946       0xaaac40 INFO              GST_STATES gstelement.c:2233:_priv_gst_element_state_changed:<pipeline0> notifying about state-changed READY to PAUSED (VOID_PENDING pending)
Pipeline is live and does not need PREROLL ...
0:00:00.247978454 31946       0xc86230 INFO        GST_ELEMENT_PADS gstelement.c:894:gst_element_get_static_pad: no such pad 'sink' in element "v4l2src0"
0:00:00.248086012 31946       0xc86230 INFO                    v4l2 gstv4l2object.c:1247:gst_v4l2_object_fill_format_list:<v4l2src0> got 10 format(s):
0:00:00.248096267 31946       0xc86230 INFO                    v4l2 gstv4l2object.c:1253:gst_v4l2_object_fill_format_list:<v4l2src0>   YUYV
0:00:00.248103862 31946       0xc86230 INFO                    v4l2 gstv4l2object.c:1253:gst_v4l2_object_fill_format_list:<v4l2src0>   411P
0:00:00.248110750 31946       0xc86230 INFO                    v4l2 gstv4l2object.c:1253:gst_v4l2_object_fill_format_list:<v4l2src0>   RGBP
0:00:00.248117255 31946       0xc86230 INFO                    v4l2 gstv4l2object.c:1253:gst_v4l2_object_fill_format_list:<v4l2src0>   BA81
0:00:00.248123708 31946       0xc86230 INFO                    v4l2 gstv4l2object.c:1253:gst_v4l2_object_fill_format_list:<v4l2src0>   YU12 (emulated)
0:00:00.248130431 31946       0xc86230 INFO                    v4l2 gstv4l2object.c:1253:gst_v4l2_object_fill_format_list:<v4l2src0>   YV12 (emulated)
0:00:00.248137123 31946       0xc86230 INFO                    v4l2 gstv4l2object.c:1253:gst_v4l2_object_fill_format_list:<v4l2src0>   BGR3 (emulated)
0:00:00.248143736 31946       0xc86230 INFO                    v4l2 gstv4l2object.c:1253:gst_v4l2_object_fill_format_list:<v4l2src0>   RGB3 (emulated)
0:00:00.248150349 31946       0xc86230 INFO                    v4l2 gstv4l2object.c:1253:gst_v4l2_object_fill_format_list:<v4l2src0>   GBRG
0:00:00.248156739 31946       0xc86230 INFO                    v4l2 gstv4l2object.c:1253:gst_v4l2_object_fill_format_list:<v4l2src0>   GRBG
Setting pipeline to PLAYING ...
0:00:00.249348119 31946       0xaaac40 INFO               GST_EVENT gstevent.c:1184:gst_event_new_latency: creating latency event 0:00:00.000000000
0:00:00.249379819 31946       0xaaac40 INFO                     bin gstbin.c:2499:gst_bin_do_latency_func:<pipeline0> configured latency of 0:00:00.000000000
0:00:00.249399075 31946       0xaaac40 INFO              GST_STATES gstbin.c:2227:gst_bin_element_set_state:<autovideosink0> current READY pending PAUSED, desired next PLAYING
0:00:00.249408225 31946       0xaaac40 INFO              GST_STATES gstbin.c:2662:gst_bin_change_state_func:<pipeline0> child 'autovideosink0' is changing state asynchronously to PLAYING
0:00:00.249420780 31946       0xaaac40 INFO              GST_STATES gstelement.c:2328:gst_element_continue_state:<v4l2src0> completed state change to PLAYING
0:00:00.249428021 31946       0xaaac40 INFO              GST_STATES gstelement.c:2233:_priv_gst_element_state_changed:<v4l2src0> notifying about state-changed PAUSED to PLAYING (VOID_PENDING pending)
0:00:00.249439607 31946       0xaaac40 INFO              GST_STATES gstbin.c:2656:gst_bin_change_state_func:<pipeline0> child 'v4l2src0' changed state to 4(PLAYING) successfully
New clock: GstSystemClock




More information about the gstreamer-devel mailing list