ofxHapPlayer
ofxHapPlayer copied to clipboard
libavformat branch: high CPU usage on Ubuntu 18.04 and OF 0.10.0
If I run one of the demo 480p hap videos I found online in the example, my CPU shoots to around 100-120% CPU usage according to the 'top' tool.
Running the same video through MPV uses around 18% CPU.
I tried converting the same file again using FFMPEG but got no benefits.
Any tips to get better performance?
Could you link to (or just name if it's one of the Vidvox samples) your specific test file? What hardware are you on, and which graphics driver?
I have the same issue running on MacOS with a Macbook pro Retina mid 2012 (NVIDIA GeForce GT 650M). The video is a 15'' clip (aprox. 340 MB file size) with audio at FullHD resolution and is taking 130% of CPU. If I load the same file with VDMX it only takes 25 % of CPU.
Just for testing I rendered the same file without audio and it works normal (30% of CPU). So I guess the problem is with audio stuff. Do I need to choose a specific audio format for rendering the video? Original file was encoded with PCM lineal audio format, I did another test with flac format and video was fine, taking 30% of CPU but no sound was played.
Thanks for reading this.
Hi @bangnoise only just around to looking at this again. The files I used are here http://vidvox.net/download/SamplePackOneHap1080p.zip
I'm on an Intel HD620, with Intel i5-7200U CPU, Mesa 18.2.8
~~I haven't tried but it could well be the audio issue that @luiscript mentions. All these files have audio.~~
After re-exporting all my files to not use audio (using FFMPEG), the CPU usage drops dramatically, to around 15-30%. So it would appear to be a problem with the audio.