Send data buffers over 2 pipelines

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Send data buffers over 2 pipelines

Topilski
This post was updated on .
Good day, i try to send buffers from one pipeline to other.
I use next code for this:
GstBuffer* buff = gst_buffer_copy_deep(buffer);
GST_BUFFER_DTS(buff) = 1;
GST_BUFFER_TIMESTAMP(buff) = timestamp;
GstFlowReturn ret = gst_pad_push(srcpad, buff);
CHECK(ret == GST_FLOW_OK);

the copied buffers recevied on second pipeline but output video is freezed.
How can i send data from one pipeline to other?
Reply | Threaded
Open this post in threaded view
|

Re: Send data buffers over 2 pipelines

Xavier Claessens-2
Hi,

You probably want to use appsink/appsrc elements. See
gst_app_sink_pull_sample() and gst_app_src_push_sample().Regards,
Xavier Claessens.

Le lundi 15 août 2016 à 07:23 -0700, Topilski a écrit :

> Good day, i try to send buffers from one pipeline to other.
> I use next code for this:
> GstBuffer* buff = gst_buffer_copy_deep(buffer);
> GST_BUFFER_DTS(buff) = 1;
> GST_BUFFER_TIMESTAMP(buff) = timestamp;
> GstFlowReturn ret = gst_pad_push(origin_->probe_in->pad(), buff);
> CHECK(ret == GST_FLOW_OK);
>
> the copied buffers recevied on second pipeline but output video is
> freezed.
> How can i send data form one pipeline to other?
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble
> .com/Send-data-buffers-over-2-pipelines-tp4679091.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Send data buffers over 2 pipelines

Topilski
Hello sorry but no, i use uridecodebin first read from network stream data, second from file, after for example 1 minute i block src on network stream and try to redirect file buffers output to first ppeline.