Can anyone test my pipeline for memory leak

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

Can anyone test my pipeline for memory leak

adeel
Hi

This is my pipeline. I am making an app in xcode. I am almost done with my app. Following is my timeline. I can share my full code

video_bin = gst_parse_bin_from_description("autovideosink", TRUE, NULL);
        video_filter_bin = gst_parse_bin_from_description("capssetter caps=video/x-raw,interlace-mode=interleaved", TRUE, NULL);
        audio_bin = gst_parse_bin_from_description("audioconvert ! autoaudiosink", TRUE, NULL);
       
        pipeline = gst_parse_launch("playbin", &error);
        const char *char_uri = [uri UTF8String];
        g_object_set(pipeline, "uri", char_uri, NULL);
        GST_DEBUG("URI set to %s", char_uri);
       
        g_object_set(pipeline, "video-sink", video_bin, NULL);
        g_object_set(pipeline, "video-filter", video_filter_bin, NULL);
        g_object_set(pipeline, "audio-sink", audio_bin, NULL);

The memory usage is very high when playing a file in loop. starting from 30 MB to 2.70 GB after two or more days continuous play. I am playing mpeg files and share these files also.

Regards
Adeel Arshad
Reply | Threaded
Open this post in threaded view
|

Re: Can anyone test my pipeline for memory leak

Carl Karsten-2
first - I am not a gst dev, so all I can don is confirm your observations.  I doubt it will help get it fixed.

I have hardware that I can test on for days, running fairly default ubuntu xenial, or yackity, and I don't mind building gst-master.

I don't have much time to figure out how to  build and run your test, so here is what I would ask:

1. If your mpeg files are more than 100mb, create a script that will generate them from gst's test sources. 

2. if you can use gst-launch to reproduce the memory leak, do that. 

else:

3. the easiest way for "me" to test would be to add a PPA and I'll apt-get install it onto ubuntu xenial.  But that may be more work than you want to do.

4. git clone... ./configure ... make ..    run and watch top or valgrind or whatever.




On Sun, Dec 11, 2016 at 12:58 PM, adeel <[hidden email]> wrote:
Hi

This is my pipeline. I am making an app in xcode. I am almost done with my
app. Following is my timeline. I can share my full code

video_bin = gst_parse_bin_from_description("autovideosink", TRUE, NULL);
        video_filter_bin = gst_parse_bin_from_description("capssetter
caps=video/x-raw,interlace-mode=interleaved", TRUE, NULL);
        audio_bin = gst_parse_bin_from_description("audioconvert !
autoaudiosink", TRUE, NULL);

        pipeline = gst_parse_launch("playbin", &error);
        const char *char_uri = [uri UTF8String];
        g_object_set(pipeline, "uri", char_uri, NULL);
        GST_DEBUG("URI set to %s", char_uri);

        g_object_set(pipeline, "video-sink", video_bin, NULL);
        g_object_set(pipeline, "video-filter", video_filter_bin, NULL);
        g_object_set(pipeline, "audio-sink", audio_bin, NULL);

The memory usage is very high when playing a file in loop. starting from 30
MB to 2.70 GB after two or more days continuous play. I am playing mpeg
files and share these files also.

Regards
Adeel Arshad



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Can-anyone-test-my-pipeline-for-memory-leak-tp4681144.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: Can anyone test my pipeline for memory leak

Digits
In reply to this post by adeel
Hi Adeel,

My OSX development machine will be free for a few days so I can test
your code.  Please provide a minimum test case or your development code
in a format I can compile in Xcode.  Links to your video files will help
too.  Which version of GStreamer framework do you have installed?

Do you still, ultimately, need this to play out on a Decklink card? My
OSX dev machine has a Decklink Optical Fibre card installed.

Regards,

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

Re: Can anyone test my pipeline for memory leak

adeel
Hi Dave

How are you. So kind of you to test my code. I am sending you the minimum code which I write to play.

The attached link contains test files and code also.

I am using 1.8 version of Gstreamer framework and I have a decklink extreme 3d card on my dev machine

Run the code and use the add button to add the file and double click in the table to run the file. 

Regards
Adeel Arshad
On Thu, Dec 15, 2016 at 5:27 PM, Digits <[hidden email]> wrote:
Hi Adeel,

My OSX development machine will be free for a few days so I can test your code.  Please provide a minimum test case or your development code in a format I can compile in Xcode.  Links to your video files will help too.  Which version of GStreamer framework do you have installed?

Do you still, ultimately, need this to play out on a Decklink card? My OSX dev machine has a Decklink Optical Fibre card installed.

Regards,

Dave.

_______________________________________________
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