Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libavformat branch: high CPU usage on Ubuntu 18.04 and OF 0.10.0 #46

Open
pierrep opened this issue Oct 1, 2018 · 3 comments
Open

libavformat branch: high CPU usage on Ubuntu 18.04 and OF 0.10.0 #46

pierrep opened this issue Oct 1, 2018 · 3 comments

Comments

@pierrep
Copy link

pierrep commented Oct 1, 2018

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?

@bangnoise
Copy link
Owner

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?

@luiscript
Copy link

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.

@pierrep
Copy link
Author

pierrep commented Apr 20, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants