[PD] GEM: pix_film terribly slow in Ubuntu

Matteo Sisti Sette matteosistisette at gmail.com
Mon Aug 16 15:38:54 CEST 2010


One curious thing is that totem and lqtplay seem to distribute the load 
among the two CPUs (I guess one thread is reading/decoding and another 
one is rendering the image), with a load of approximately 50% each; 
while GEM is consuming 100% of one CPU and less than 5-10% on the other one.

Is it possible that even using the same backend, media players do the 
reading and rendering in two different threads and pix_film does not?

(though, the difference in performance seems to me a bit bigger than 
this alone would explain...)


And a general question that is not related to GEM: is it reasonable that 
decoding and playing back a 950x540 25fps h264 video consumes in total 
about 50% of two 2.50GHz CPUs??

thanks
m.

On 08/16/2010 12:46 PM, Olivier Baudu wrote:
>  >If there's nothing below [pix_film] it's still slow.
>
> I would say... If there's nothing below [pix_film] the CPU is stil at
> 100%... :-p
>
> 2010/8/16 Olivier Baudu <lamouraupeuple at gmail.com
> <mailto:lamouraupeuple at gmail.com>>
>
>     Hi
>
>     Just to say I have the same problem. (Pd version 0.42.5-extended-rc5
>     // Ubuntu 10.04)
>     My avi file is in XVID MPEG-4.
>     I can read it with VLC and others players but with [pix_film] it's
>     slow like Matteo've described it.
>
>     If there's nothing below [pix_film] it's still slow.
>
>
>
>     2010/8/16 Matteo Sisti Sette <matteosistisette at gmail.com
>     <mailto:matteosistisette at gmail.com>>
>
>         Hi IOhannes,
>
>         thanks a lot for your help.
>
>
>
>             it seems like a missed the information about the exact
>             version of Gem.
>
>
>         It's 0.92.3 (Pd version 0.42.5-extended-20100601)
>
>
>
>             we need to know at least which backends are enabled on your
>             system (you
>             get that information the first time you create a [pix_film]
>             object).
>
>
>         Here's what pix_film says:
>
>         pix_film:: quicktime support
>         pix_film:: libmpeg3 support
>
>         I guess if only these are enabled it is because no more are
>         available on the system, do I guess right?
>
>
>             then we need to know which libraries you have installed to
>             support these
>             codecs (e.g. if you have the QT4L backend enabled, which
>             version of
>             libquicktime/libquicktim4linux do you have installed).
>             it's probably enough to send the output of
>             $ ldd /path/to/Gem.pd_linux
>
>
>         Here's the output of ldd:
>
>         linux-gate.so.1 =>  (0x00e67000)
>                 libftgl.so.2 => /usr/lib/libftgl.so.2 (0x00521000)
>                 libv4l2.so.0 => /usr/lib/libv4l2.so.0 (0x00774000)
>                 libv4l1.so.0 => /usr/lib/libv4l1.so.0 (0x00479000)
>                 libquicktime.so.1 => /usr/lib/libquicktime.so.1 (0x0047f000)
>                 libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0
>         (0x00e87000)
>                 libz.so.1 => /lib/libz.so.1 (0x00e17000)
>                 libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0x00a9f000)
>                 libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0x004f3000)
>                 libMagick++.so.2 => /usr/lib/libMagick++.so.2 (0x00c5b000)
>                 libMagickCore.so.2 => /usr/lib/libMagickCore.so.2
>         (0x00813000)
>                 libdv.so.4 => /usr/lib/libdv.so.4 (0x0064b000)
>                 libmpeg3.so.1 => /usr/lib/libmpeg3.so.1 (0x006dc000)
>                 libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x0054e000)
>                 libGLU.so.1 => /usr/lib/libGLU.so.1 (0x00d81000)
>                 libGL.so.1 => /usr/lib/nvidia-current/libGL.so.1
>         (0x00aa3000)
>                 libXext.so.6 => /usr/lib/libXext.so.6 (0x00d2d000)
>                 libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00d77000)
>                 libX11.so.6 => /usr/lib/libX11.so.6 (0x00ea0000)
>                 libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00674000)
>                 libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00fbd000)
>                 libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x0077f000)
>                 libv4lconvert.so.0 => /usr/lib/libv4lconvert.so.0
>         (0x00b68000)
>                 /lib/ld-linux.so.2 (0x007f6000)
>                 libMagickWand.so.2 => /usr/lib/libMagickWand.so.2
>         (0x20a63000)
>                 liblcms.so.1 => /usr/lib/liblcms.so.1 (0x00693000)
>                 libtiff.so.4 => /usr/lib/libtiff.so.4 (0x00716000)
>                 libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x00a49000)
>                 libXt.so.6 => /usr/lib/libXt.so.6 (0x00bd5000)
>                 libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00ceb000)
>                 libltdl.so.7 => /usr/lib/libltdl.so.7 (0x006c7000)
>                 libSM.so.6 => /usr/lib/libSM.so.6 (0x006d0000)
>                 libICE.so.6 => /usr/lib/libICE.so.6 (0x00a6a000)
>                 libgomp.so.1 => /usr/lib/libgomp.so.1 (0x00a83000)
>         liba52-0.7.4.so <http://liba52-0.7.4.so> =>
>         /usr/lib/liba52-0.7.4.so <http://liba52-0.7.4.so> (0x00a91000)
>                 libGLcore.so.1 => /usr/lib/nvidia-current/libGLcore.so.1
>         (0x1d457000)
>                 libnvidia-tls.so.1 =>
>         /usr/lib/nvidia-current/tls/libnvidia-tls.so.1 (0x00519000)
>                 libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00c28000)
>                 librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0x00c42000)
>                 libuuid.so.1 => /lib/libuuid.so.1 (0x0051b000)
>                 libXau.so.6 => /usr/lib/libXau.so.6 (0x00644000)
>                 libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00c4b000)
>
>
>         Thank you very much
>
>         m.
>
>         _______________________________________________
>         Pd-list at iem.at <mailto:Pd-list at iem.at> mailing list
>         UNSUBSCRIBE and account-management ->
>         http://lists.puredata.info/listinfo/pd-list
>
>
>




More information about the Pd-list mailing list