DecklinkSink and Caps
Krzysztof Konopko
krzysztof.konopko at youview.com
Mon Dec 3 02:56:13 PST 2012
Hi Johan,
In GStreamer 0.10.x format type should be GST_TYPE_FOURCC, not
G_TYPE_STRING and the value just "UYVY".
I guess you're reading documentation for GStreamer 1.0 where the format
type is indeed G_TYPE_STRING and the value should be "UYVY". The FOURCC
type has been refactored in GStreamer 1.0.
BTW, my personal advise is to use gst_parse_launch() wherever you can
which will save you time and effort as it allows you to specify
pipepline description as you do on the command line. IMHO this is
simpler and less error prone. You can still refer to individual elements
by their name property. Construct the pipeline on a bit-by-bit basis
only when it's absolutely necessary.
Kris
On 03/12/12 10:39, Johan Peerbolte wrote:
> Hello all,
>
> I have a pipeline :
>
> "gst-launch rtspsrc name=src timeout=1 buffer-mode=1 latency=9000
> protocols=GST_RTSP_LOWER_TRANS_TCP location=%s ! queue ! gstrtpbin
> latency=250 "
> "! queue min-threshold-time=500000 ! rtph264depay ! ffdec_h264 !
> interlace top-field-first=true field-pattern=1 ! videoscale
> add-borders=false ! videorate ! ffmpegcolorspace ! video/x-raw-yuv,
> framerate=25/1,format=(fourcc)UYVY ! decklinksink name=sink mode=2"
>
>
>
> This play rtsp and output of decklink sdi card, the decklinksink plugin
> take only UYVY.
> For this i have added caps at the end "video/x-raw-yuv,
> framerate=25/1,format=(fourcc)UYVY"
>
> I want to create a little binary to do the same work, but i have problem,
> maybe with caps
>
> I use this : "
> GstCaps *filtercaps = gst_caps_new_simple ("video/x-raw-yuv",
> "framerate", GST_TYPE_FRACTION, 25, 1, "format", G_TYPE_STRING,
> "(fourcc)UYVY", NULL);
> g_object_set (G_OBJECT (filter), "caps", filtercaps, NULL);
>
> gboolean link_ok = gst_element_link_filtered(colorsp,sink,filtercaps);
> gst_caps_unref (filtercaps);
> "
>
> i have attached sources
>
>
> the ouptut of GST_DEBUG=2 ./mybinary rtsp://server/app/file.mp4
>
> """""
> ** (mybinary:20272): WARNING **: Failed to link caps!
> Now playing: rtsp://cdn.actistream.com/vod/cam1.mp4
>
> A new pad recv_rtp_src_0_1866764401_96 was created
> application/x-rtpon the pad
> A new pad recv_rtp_src_1_1773709704_97 was created
>
> application/x-rtp0:00:07.569209168 20272 0x15af050 WARN
> rtspsrc gstrtspsrc.c:4184:gst_rtspsrc_loop:<rtspsrc0> error: Internal
> data flow error.
> 0:00:07.569229090 20272 0x15af050 WARN rtspsrc
> gstrtspsrc.c:4184:gst_rtspsrc_loop:<rtspsrc0> error: streaming task paused,
> reason not-linked (-1)
> Error: Internal data flow error.
> Returned, stopping playback
> 0:00:07.570128028 20272 0x15af050 WARN rtspsrc
> gstrtspsrc.c:4591:gst_rtspsrc_try_send:<rtspsrc0> receive interrupted
> 0:00:07.570145785 20272 0x15af050 WARN rtspsrc
> gstrtspsrc.c:6406:gst_rtspsrc_pause:<rtspsrc0> PAUSE interrupted
> 0:00:07.582227357 20272 0x15af050 WARN rtspsrc
> gstrtspsrc.c:4589:gst_rtspsrc_try_send:<rtspsrc0> error: Could not receive
> message. (Parse error)
> 0:00:07.582267763 20272 0x15af050 WARN rtspsrc
> gstrtspsrc.c:5885:gst_rtspsrc_close:<rtspsrc0> error: Could not send
> message. (Parse error)
> Deleting pipeline
>
> """""
>
> i think i made a mistake about caps, maybe one person have advice :-)
> Thanks
> Johan
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
More information about the gstreamer-devel
mailing list