how to set property for Appsrc?
Soho Soho123
soho123.2012 at gmail.com
Tue Aug 28 18:45:41 PDT 2012
Hi Stefan,
Do you have idea about max-bytes, min-latency, max-latency properties?
I do not know which value of min-latency, max-latency is suitable for
reducing latency?
Do you know where is the example about the usage?
If I set smaller for max-bytes, can it reduce latency?
Thanks!
Soho
2012/8/29 Stefan Sauer <ensonic at hora-obscura.de>:
> On 08/27/2012 03:03 PM, Matt Pekar wrote:
>
> I set my live appsrc video elements like this:
>
> g_object_set(G_OBJECT(appsrc), "caps", src_caps, NULL);
> g_object_set(G_OBJECT(appsrc), "is-live", TRUE, NULL);
> g_object_set(G_OBJECT(appsrc), "block", FALSE, NULL);
> g_object_set(G_OBJECT(appsrc), "do-timestamp", TRUE, NULL);
>
> FYI: a more efficient way would be to do it in one call:
> g_object_set(G_OBJECT(appsrc), "caps", src_caps, "is-live", TRUE, "block",
> FALSE,"do-timestamp", TRUE, NULL);
>
> Stefan
>
>
> I seem to recall other elements needing the timestamps. Then I spawn a
> background thread that pushes at a constant rate.
>
> GstBuffer* buffer = gst_buffer_new_and_alloc(width * height * 4);
> GstFlowReturn flow_return = gst_app_src_push_buffer(GST_APP_SRC(pd->appsrc),
> buffer);
>
> On Sun, Aug 26, 2012 at 10:22 PM, Soho Soho123 <soho123.2012 at gmail.com>
> wrote:
>>
>> Hi All,
>>
>> Can someone give me example about how to set latency for appsrc?
>> I can find the API about latency setting,
>> but I do not know how to use that:
>> which value is suitable for a rtp receiver?
>> Since I implement a rtp socket to receive rtp packet, it can receive
>> rtp packet, when I call gst_app_src_push_buffer to input payload to
>> appsrc element. It seems does not workable, the audio data can not
>> hear from alsa device.
>> I would like to modify the property of Appsrc,
>> like set latency, is-live,
>> which value is suitable for a rtp receiver when I call API
>> gst_app_src_set_latency?
>> And How to set property "is-live"?
>>
>> Thanks!
>> Best Regards,
>> Soho
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> _______________________________________________
> 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