[osg-users] [osgPlugins] Multiple video textures using ffmpeg plugin

Voerman, L. l.voerman at rug.nl
Thu Oct 5 06:58:23 PDT 2017


Try to make sure the ffmpeg decoding happens on different actual cores. osg
currently cannot detect hyperthreading, so the decode threads can end up on
the same core. Try to see in taskmanage (for windows) or top (for linux)
how many cores you actually use - this might hint to the problem.
The ImageStream sends frames one by one to the gfx in the graphics thread,
after detecting that a decoding thread changed the modified count.
Regards, Laurens.

On Thu, Oct 5, 2017 at 12:02 PM, Michael Maurus <michael.maurus at web.de>
wrote:

> Hello everyone,
>
> I am currently trying to display a video (mp4) on a textured quad using
> the osgmovie example. When displaying two of those, I suddenly get a frame
> drop from 60fps to 12fps.
>
> So my question: what's the proper way to to this without performance
> issues?
>
> I am not sure how the ImageStream class works in the background. Already
> looked at the source code but I couldn't figure out, if the current video
> frame will be loaded to the graphics cards every frame or the whole video
> will be uploaded to GPU memory
>
> Thank you!
>
> Cheers,
> Michael
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=72108#72108
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20171005/e00bd866/attachment-0001.html>


More information about the osg-users mailing list