getting gstreamer 1.0 to work with decklinksink

Mitchell Foley mitch at thefoley.net
Mon Dec 16 20:12:05 PST 2013


Thanks for the tip!

I built gstreamer from source using the packages here:
http://gstreamer.freedesktop.org/src/, getting versions 1.2.1 for
gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad, and
gst-plugins-ugly. I also needed to build orc, for which I grabbed version
0.4.18. However, I'm still getting the same errors. I only have some
experience with gdb, but I think I've got a backtrace here. Let me know if
I should provide any more information or file a bug report.

mitch at darksteel:~$ G_DEBUG=fatal_warnings gdb gst-launch-1.0
GNU gdb (GDB) 7.6.1-ubuntu
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/gst-launch-1.0...done.
(gdb) set args videotestsrc ! decklinksink
(gdb) run
Starting program: /usr/local/bin/gst-launch-1.0 videotestsrc ! decklinksink
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

(gst-launch-1.0:11511): GStreamer-CRITICAL **: gst_caps_intersect_full:
assertion 'GST_IS_CAPS (caps2)' failed

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ffff75d33d9 in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) bt
#0  0x00007ffff75d33d9 in g_logv () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ffff75d3522 in g_log () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff7b148b7 in gst_caps_intersect_full (caps1=0x6b8c00,
caps2=0x0, mode=<optimized out>) at gstcaps.c:1636
#3  0x00007ffff591772b in gst_decklink_sink_videosink_query (pad=0x7142c0,
parent=0x718080, query=0x6b8b70) at gstdecklinksink.cpp:568
#4  0x00007ffff7b3d07c in gst_pad_query (pad=pad at entry=0x7142c0,
query=query at entry=0x6b8b70) at gstpad.c:3473
#5  0x00007ffff7b6d314 in gst_pad_query_caps (pad=pad at entry=0x7142c0,
filter=filter at entry=0x0) at gstutils.c:2764
#6  0x00007ffff7b6df47 in gst_element_get_compatible_pad
(element=element at entry=0x718080, pad=pad at entry=0x714090, caps=caps at entry=0x0)
at gstutils.c:1057
#7  0x00007ffff7b6eb2e in gst_element_link_pads_full (src=src at entry=0x7100c0,
srcpadname=srcpadname at entry=0x0, dest=dest at entry=0x718080,
destpadname=destpadname at entry=0x0, flags=flags at entry
=GST_PAD_LINK_CHECK_DEFAULT)
    at gstutils.c:1644
#8  0x00007ffff7b6f12b in gst_element_link_pads (src=src at entry=0x7100c0,
srcpadname=srcpadname at entry=0x0, dest=dest at entry=0x718080,
destpadname=destpadname at entry=0x0) at gstutils.c:1803
#9  0x00007ffff7b6f4f3 in gst_element_link_pads_filtered
(src=src at entry=0x7100c0,
srcpadname=0x0, dest=dest at entry=0x718080, destpadname=0x0, filter=0x0) at
gstutils.c:1885
#10 0x00007ffff7b854c6 in gst_parse_perform_link (graph=0x7fffffffdd00,
link=0x7129c0) at ./grammar.y:580
#11 priv_gst_parse_launch (str=str at entry=0x709ff0 "videotestsrc !
decklinksink ", error=error at entry=0x7fffffffdd88, ctx=ctx at entry=0x0,
flags=flags at entry=GST_PARSE_FLAG_NONE) at ./grammar.y:1024
#12 0x00007ffff7b7c32f in gst_parse_launch_full
(pipeline_description=0x709ff0 "videotestsrc ! decklinksink ",
context=context at entry=0x0, flags=flags at entry=GST_PARSE_FLAG_NONE,
error=error at entry=0x7fffffffde68)
    at gstparse.c:325
#13 0x00007ffff7b7c5c5 in gst_parse_launchv_full (argv=argv at entry=0x709d60,
context=context at entry=0x0, flags=flags at entry=GST_PARSE_FLAG_NONE,
error=error at entry=0x7fffffffde68) at gstparse.c:262
#14 0x00007ffff7b7c6cc in gst_parse_launchv (argv=argv at entry=0x709d60,
error=error at entry=0x7fffffffde68) at gstparse.c:215
#15 0x0000000000403360 in main (argc=4, argv=0x7fffffffe1f8) at
gst-launch.c:963
(gdb)

I also attempted to build from git, but ran into problems compiling
gst-plugins-base. The result of my autogen.sh is
here<https://gist.github.com/walkingeyerobot/7964420>,
and the result of my make is
here<https://gist.github.com/walkingeyerobot/7964439>.
If building from git would be better than just building 1.2.1, I'm happy to
dig into my build issues further.

Thanks for taking a look!

-Mitch


On Mon, Dec 16, 2013 at 4:47 AM, Sebastian Dröge
<sebastian at centricular.com>wrote:

> On So, 2013-12-15 at 18:32 -0500, Mitchell Foley wrote:
> > Hello, I'm having problems getting gstreamer 1.0 to output anything to
> > decklinksink. I'd like to use 1.0 because I need to use the
> > device-number option as I have multiple cards.
> >
> >
> > This works fine:
> >
> >
> > gst-launch-0.10 videotestsrc ! decklinksink
> >
> >
> > But when I switch to 1.0, it fails with this:
> >
> > [...]
> > (gst-launch-1.0:18827): GStreamer-CRITICAL **: gst_object_unref:
> assertion 'object != NULL' failed
> > WARNING: erroneous pipeline: could not link videotestsrc0 to
> > decklinksink0
> >
> > Any suggestions?
>
> Which version of 1.0 are you using? Best try with 1.2.0 or later, there
> were some fixes that made it work (at least for some people).
>
> If you still have these problems with that version, try setting
> G_DEBUG=fatal_warnings in the environment and get a backtrace of those
> criticals/warnings with a debugger.
>
> --
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131216/ad456baa/attachment.html>


More information about the gstreamer-devel mailing list