broken appsrc example

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

broken appsrc example

William Salibrici

Hello,

I am new to gstreamer so I am working with some examples in your manuals to help with the learning curve. I have a question about the Appsrc example [GStreamer Application Development Manual (1.7.90), section 19.2.1.3, pages 96 – 98].

First, here is some info about my development environment:

·         Windows 7 OS,

·         Visual studio 2010,

·         Gstreamer version 1.5.2 [I will be working with legacy code at this version],

·         Using your windows pre-built binaries.

I am able to successfully compile, link, and execute your appsrc example which uses the pull mode method of pushing new buffers into appsrc although appsrc is running in push mode. The only change I made was to use the d3dvideosink. The example runs just fine except for one thing, there are severe memory leaks [viewed through the task manager] that continue to grow as long as the app runs. It appears that your example is broken.

Is this a side effect of using the pull mode method of pushing new buffers? How can this be fixed?

Regards,

Bill  

 

 


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: broken appsrc example

Sebastian Dröge-3
On Di, 2016-04-26 at 16:56 +0000, William Salibrici wrote:

> Hello,
>
> I am new to gstreamer so I am working with some examples in your
> manuals to help with the learning curve. I have a question about the
> Appsrc example [GStreamer Application Development Manual (1.7.90),
> section 19.2.1.3, pages 96 – 98].
>
> First, here is some info about my development environment:
>
> ·         Windows 7 OS,
> ·         Visual studio 2010,
> ·         Gstreamer version 1.5.2 [I will be working with legacy code
> at this version],
> ·         Using your windows pre-built binaries.
You should update at least to 1.6. 1.5.2 was a development snapshot,
not a proper stable release.

> I am able to successfully compile, link, and execute your appsrc
> example which uses the pull mode method of pushing new buffers into
> appsrc although appsrc is running in push mode. The only change I
> made was to use the d3dvideosink. The example runs just fine except
> for one thing, there are severe memory leaks [viewed through the task
> manager] that continue to grow as long as the app runs. It appears
> that your example is broken.
>
> Is this a side effect of using the pull mode method of pushing new
> buffers? How can this be fixed?
There was a memory leak in this specific example, which is fixed now:
http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=a4db38ab0578e598abf466a53dc6965c91e7a32e

It might be the one you saw, or not.

Please try this change and also upgrade at least to version 1.6.4,
which is the latest stable release from the release series of which
1.5.2 was a development snapshot.

Ideally upgrade to 1.8.1 though, many (also Windows related and
d3dvideosink related) problems were fixed there and it is completely
backwards compatible.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: broken appsrc example

William Salibrici
Sebastian,
Thank you for your reply.
I have upgraded to 1.6.4 and your fix works just fine.
I checked the release notes for the latest version, 1.8.1, and under known issues it states that the vp8enc plugin in now broken where it used to work fine before [Bugzilla #763663]. This would be a problem for me. Any idea when this would be fixed?
Regards,

Bill


-----Original Message-----
From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Sebastian Dröge
Sent: Wednesday, April 27, 2016 2:24 AM
To: Discussion of the development of and with GStreamer <[hidden email]>
Subject: Re: broken appsrc example

On Di, 2016-04-26 at 16:56 +0000, William Salibrici wrote:

> Hello,
>
> I am new to gstreamer so I am working with some examples in your
> manuals to help with the learning curve. I have a question about the
> Appsrc example [GStreamer Application Development Manual (1.7.90),
> section 19.2.1.3, pages 96 – 98].
>
> First, here is some info about my development environment:
>
> ·         Windows 7 OS,
> ·         Visual studio 2010,
> ·         Gstreamer version 1.5.2 [I will be working with legacy code
> at this version], ·         Using your windows pre-built binaries.

You should update at least to 1.6. 1.5.2 was a development snapshot, not a proper stable release.

> I am able to successfully compile, link, and execute your appsrc
> example which uses the pull mode method of pushing new buffers into
> appsrc although appsrc is running in push mode. The only change I made
> was to use the d3dvideosink. The example runs just fine except for one
> thing, there are severe memory leaks [viewed through the task manager]
> that continue to grow as long as the app runs. It appears that your
> example is broken.
>
> Is this a side effect of using the pull mode method of pushing new
> buffers? How can this be fixed?

There was a memory leak in this specific example, which is fixed now:
http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=a4db38ab0578e598abf466a53dc6965c91e7a32e

It might be the one you saw, or not.

Please try this change and also upgrade at least to version 1.6.4, which is the latest stable release from the release series of which
1.5.2 was a development snapshot.

Ideally upgrade to 1.8.1 though, many (also Windows related and d3dvideosink related) problems were fixed there and it is completely backwards compatible.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: broken appsrc example

Sebastian Dröge-3
On Mi, 2016-04-27 at 15:10 +0000, William Salibrici wrote:
> Sebastian,
> Thank you for your reply.
> I have upgraded to 1.6.4 and your fix works just fine.
> I checked the release notes for the latest version, 1.8.1, and under
> known issues it states that the vp8enc plugin in now broken where it
> used to work fine before [Bugzilla #763663]. This would be a problem
> for me. Any idea when this would be fixed?

It needs someone to spend time on debugging and fixing it. I'm not
aware of anybody working on that currently.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment