memory leaks with qtdemux

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

memory leaks with qtdemux

Samuel Vinson-2
Hi,

When I run gst-launch with this command line : gst-launch filesrc
location=AAA.mov ! qtdemux ! fakesink
On some file I have a big memory leaks (10Mo /s)

        file type : QuickTime (.mov)
        video codec : dvcp (apple dv-pal)
        audio codec : twos: 16 bit signed big-endian 48kHz
        size : 720x576

But with another files There are not memory leaks

NO memory leaks with qtdemix :
        file type : QuickTime (.mov)
        video codec : jpeg(apple photos jpeg)
        no sound
        size : 640x480

Do you know if the problem becomes from audio stream or video stream
(dvcp) ?
Do you know what kind/type of test I should make to localize the bug ?

Samuel


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: memory leaks with qtdemux

Tim-Philipp Müller-2
On Wed, 2008-02-06 at 23:05 +0100, Samuel Vinson wrote:

> When I run gst-launch with this command line : gst-launch filesrc
> location=AAA.mov ! qtdemux ! fakesink
> On some file I have a big memory leaks (10Mo /s)
>   (snip)
> But with another files There are not memory leaks
>   (snip)
> Do you know what kind/type of test I should make to localize the bug ?

Use valgrind --leak-check=yes. Alternatively, just file a bug against
gst-plugins-good and make the file available somewhere, so we can have a
look.

Cheers
 -Tim



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: memory leaks with qtdemux

Albert Costa
In reply to this post by Samuel Vinson-2

Hi,

in fact I got similar problem. It came not from the format, but from the size of file.

If I use a file which is larger than 2Gb, then the component does not have same behavior as if smaller.

In normal case, qtdemux acts in pull mode, whereas it acts in push mode when file is >2Gb. Reason is that (in short terms), in gstfilesrc code the seekable flag is set to false because the fseek function used returns only signed 32bits length. In case the file is over 2Gb, fseek fails.

I have tried to replace all functions (fseek and other fstat...) by their 64bits equivalent, but still the qtdemux does not work properly.

And I don't know yet why it leaks memory in push mode.

 

Has anyone already got this kind of problem? Is there a way to handle nice and smooth files that are above the 2Gb limit? Is it expected to be handled in later releases of gstreamer?

Btw, I run under win32.

Regards,

Al.

 

 

 

>Hi,

>When I run gst-launch with this command line : gst-launch filesrc

>location=AAA.mov ! qtdemux ! fakesink

>On some file I have a big memory leaks (10Mo /s)

>file type : QuickTime (.mov)

>video codec : dvcp (apple dv-pal)

>audio codec : twos: 16 bit signed big-endian 48kHz

>size : 720x576

>But with another files There are not memory leaks

>NO memory leaks with qtdemix :

>file type : QuickTime (.mov)

>video codec : jpeg(apple photos jpeg)

>no sound

>size : 640x480

>Do you know if the problem becomes from audio stream or video stream

>(dvcp) ?

>Do you know what kind/type of test I should make to localize the bug ?

>Samuel



Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel