Video corruption in rtsp server with appsink->appsrc

Joel Holdsworth joel.holdsworth at vcatechnology.com
Thu Mar 31 13:47:59 UTC 2016


Where are we using appsink/appsrc? As far as I know we shouldn't be using
those in the vca pipeline.
On 28 Mar 2016 14:51, "Serj TorresSoldado" <torres.soldado at gmail.com> wrote:

> Hi All,
>
>  I am doing a sink -> src push. The sink is in a separate pipeline and the
> src is created by gst-rtsp-server when creating the media pipeline.
>
>  I have tried both using a pull (need-data signal) and push (new-sample)
> methods and the result is the same.
>
>  I am copying the buffer from the sink to the source. I am setting the PTS
> on the copied buffer otherwise after the first client disconnects I am
> unable to connect again.
>
>  GST_BUFFER_PTS(bufcpy) = client->timestamp_;
>  client->timestamp_ += GST_BUFFER_DURATION(bufcpy);
>  gst_app_src_push_buffer(client->appsrc_, bufcpy);
>
>  When cofiguring the client I have "played" with the following appsrc
> properties but they don't seem to make a difference:
>
>   gst_util_set_object_arg(reinterpret_cast<GObject*>(appsrc.Get()),
> "format", "time");
>   g_object_set(reinterpret_cast<GObject*>(appsrc.Get()), "block", false,
> nullptr);
>   g_object_set(reinterpret_cast<GObject*>(appsrc.Get()), "is-live", true,
> nullptr);
>   g_object_set(reinterpret_cast<GObject*>(appsrc.Get()), "do-timestamp",
> true, nullptr);
> //  g_object_set(reinterpret_cast<GObject*>(appsrc.Get()), "stream-type",
> "random-access", nullptr);
> //  g_object_set(reinterpret_cast<GObject*>(appsrc.Get()), "max-bytes",
> 1000, nullptr);
>
> Any help would be awesome, thanks.
>
> Serj
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160331/27f3a6a0/attachment.html>


More information about the gstreamer-devel mailing list