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

2017-10-10 Thread Michael Maurus
Hi guys, Thanks for the replies. I tried using the suggested ffmpeg plugin changes, but it didn't make a difference. Turns out the culprit was automatic texture scaling to power of two texture size. After setting the resizePowerOfTwoHint to false, I was able to play two 720p videos with 60fps.

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

2017-10-06 Thread Sebastian Messerschmidt
Hi Guys, Maybe this [1] might help to increase performance. I'm not sure which ffmpeg is supported now, but maybe that's a good argument to upgrade. Cheers Sebastian [1] https://developer.nvidia.com/ffmpeg Hi Michael, we use a modified version of the ffmpeg plugin with changes in OpenSceneG

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

2017-10-05 Thread Robert Osfield
Hi Michael, On 5 October 2017 at 15:41, Michael Maurus wrote: > This was actually a nice hint. > Only one of my CPUs was working at full capacity. > I haven't looked at the code recently so I'm a bit cold on the ffmpeg implementation side. I don't recall any external way to control the threads

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

2017-10-05 Thread Michael Maurus
This was actually a nice hint. Only one of my CPUs was working at full capacity. The FFmpegImageStream inherits from OpenThreads. So I should have two separate threads for both decoders, right? Is there a possibility to SetProcessorAffinityOfCurrentThread() from outside FFmpegImageStream? How a

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

2017-10-05 Thread Voerman, L.
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 Imag