Avidemux Forum

Avidemux => Main version 2.6 => Topic started by: eltomassito on October 12, 2012, 06:19:11 AM

Title: Excessive CPU usage during playback - part 2
Post by: eltomassito on October 12, 2012, 06:19:11 AM
Sorry for my second post but this crappy forum hang up when I tried add attachments and I can't open first thread for couple of days even on second account. Postmaster didn't help to resolve this problem.

Problem occurs during playback many 720p videos (mp4 or wmv). I have 2.5 and 2.6 versions installed. In 2.5 CPU usage is about 40% on 2.6 CPU very often reaches 100% and frames are dropped.
I'm using Windows 7 32bit. The newest VGA driver from Intel website. Mobo Asus P8H61-M PRO R3.0 and CPU Intel Pentium G630T. I tried to install the newest LAVFilters but it didn't help.
AviDemux is downloaded from sourceforge, currently available version.

Below CPU Usage on the same vid in 2.5 and 2.6 version:
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi45.tinypic.com%2F352hw8m.png&hash=fc4a7dae9806418f1a2cf3385513b5fe38708009)
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fi48.tinypic.com%2F262b3o9.png&hash=e783cfad4a0a7a1b27a79fef20f751a13989d92c)
Title: Re: Excessive CPU usage during playback - part 2
Post by: Jan Gruuthuse on October 12, 2012, 06:37:50 AM
in avidemux 2.6: Main Menu -> Edit -> Preferences -> [Video] (tab)
Video display: select something else if you have here OpenGL selected.
If you don't have OpenGL selected try OpenGL (could be a conflict with intel driver)
Default Postprocessing unselect the 3 [ ] options there.
You can mark Enable openGL support.
[Threading] (tab)
Multi-threading: select (Ã,°) Custom [2] (real cores)
Prioritisation: Lower each option one step
See if this helps.
Install Process Explorer v15.23 (http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx) this gives you more detail then system information.




Title: Re: Excessive CPU usage during playback - part 2
Post by: eltomassito on October 12, 2012, 08:07:57 AM
Iv'e tried every options and didn't help. I've tried even uncheck CPU decoding features.
Process Explorer shows avidemux as most consuming process (97%).
As video decoder always is Lavcodec selected. Maybe if it will be possible to change it to another decoder then it will help. But I can't change it.
Title: Re: Excessive CPU usage during playback - part 2
Post by: Jan Gruuthuse on October 12, 2012, 09:02:47 AM
Should not be happening G630T is very similar to core I3 (http://www.cpu-world.com/Compare/324/Intel_Core_i3_i3-2100_vs_Intel_Pentium_Dual-Core_G630T.html)
Check if you can find and delete the avidemux file config2 could be somewhere in something like:
%APPDATA%/avidemux/
%APPDATA%/avidemux6
%APPDATA%/Roaming/avidemux/
%APPDATA%/Roaming/avidemux6/
Use windows search with option included system folders and hidden files.
That file should be rebuild upon restarting avidemux.

You are sure no other problems are causing issues on your computer? virus or whatever?
QuoteSorry for my second post but this crappy forum hang up when I tried add attachments
Title: Re: Excessive CPU usage during playback - part 2
Post by: eltomassito on October 12, 2012, 06:28:35 PM
Deleting didn't help. I've deleted config even from registry.
It's not virus. I can't open first thread from another computer too.
Tomorrow I'll try to reinstall OS. Maybe it will help.
In the meantime thanks for your help and contribution:)
Title: Re: Excessive CPU usage during playback - part 2
Post by: Jan Gruuthuse on October 13, 2012, 07:45:27 AM
Quote from: eltomassito on October 12, 2012, 06:28:35 PM
>8 >8
It's not virus. I can't open first thread from another computer too.
Neither can I open that posting, gives a:"Internal Server Error" for this one Excessive CPU usage during playback (http://www.avidemux.org/smf/index.php?topic=11447.msg59951#msg59951)
Title: Re: Excessive CPU usage during playback - part 2
Post by: eltomassito on October 15, 2012, 07:57:20 AM
Reinstallation didn't help. Problem occurs even on clean system. I think it's no possibility to find solution. It must be bug in the software. Poor compatibility with Pentium Desktop Processors from SandyBridge family. I don't know if it's possible to report this to developers because I can't see any contact or link for reporting.
Title: Re: Excessive CPU usage during playback - part 2
Post by: Jan Gruuthuse on October 15, 2012, 08:04:49 AM
Developers are reading here to.
Where did you download 32-bit avidemux 2.6?
Title: Re: Excessive CPU usage during playback - part 2
Post by: eltomassito on October 15, 2012, 08:52:47 AM
From here:
http://sourceforge.net/projects/avidemux/files/avidemux/2.6.0/avidemux_2.6.0_win32.exe/download?use_mirror=ignum
And here:
http://www.avidemux.org/nightly/win32/
Title: Re: Excessive CPU usage during playback - part 2
Post by: Jan Gruuthuse on October 15, 2012, 08:57:36 AM
check if the ones here do change anything: Download Beta Builds: Avidemux 2.6 Revision 8219 (http://avidemux.razorbyte.com.au/)
Title: Re: Excessive CPU usage during playback - part 2
Post by: eltomassito on October 15, 2012, 10:50:46 AM
In beta is the same. But I think I find the issue. Problem occurs with movies from my camera. I've tested them on quad CPU Core i7 2600 @3.4GHz and the result is the same. 100% on certain cores and stuttering. I think it's problem in Lavcodec used by Avidemux for decoding. Here is example of my movie:
https://hotfile.com/dl/176156977/112dffb/Test.mov.html (https://hotfile.com/dl/176156977/112dffb/Test.mov.html)
Title: Re: Excessive CPU usage during playback - part 2
Post by: nibbles on October 17, 2012, 03:11:51 AM
A couple of things are worth mentioning. The lead developer has stated several times that Avidemux is not at all meant to be a playback application and that people need to use something like mplayer for that.  Out of sync audio during playback, stuttering, excessive CPU usage are all expected to occur, and playback is not optimized for at all. On OSX we don't even have audio. So I wouldn't sweat this very much.

Secondly, you definitely will see an improvement if you enable opengl and can verify that it's in use by looking at your avidemux logs. There will be a ton of opengl messages in there if it's working.
Title: Re: Excessive CPU usage during playback - part 2
Post by: eltomassito on October 17, 2012, 09:23:27 AM
I'm not using Avidemux for playing videos. But in my case playback is very important because I'm setting splitting points roughly by picture and precisely by hear. So if there is stuttering and out of sync then I have completely no precision.
Can you restore playing engine (as option for selection) from 2.5 version? It was much better then this from 2.6.
Title: Re: Excessive CPU usage during playback - part 2
Post by: nibbles on October 17, 2012, 03:05:34 PM
2.6 is complete rewrite of Avidemux, and as such the parts of 2.5 you like can't drop into 2.6. Sorry about the hassle, but most people around here use a separate program for playback and finding their split points.  What did you find in your avidemux logs?  Was it full of opengl messages? I would also set my Playback Priority to "Above Normal" or "Normal."  The default option is too extreme for modern multitasking operating systems (that are doing a lot of there things in the background).

Also there is nothing stopping you from running 2.5 and 2.6 at the same time I suppose (but I don't run Windows anymore).  When I did use it, I also used Avisynth and AVSP, but that was 10 years ago.

I just examined your test.mov file, and it plays back on OSX at 12% CPU without stuttering (but like I said, Avidemux doesn't have audio on OSX).
Title: Re: Excessive CPU usage during playback - part 2
Post by: eltomassito on October 17, 2012, 05:17:07 PM
Finding split points in external player is very inconvenient and time consuming.

Changing priority don't help.

In log is only:
[UI_RunApp] OpenGL enabled at built time, checking if we should run it..
[UI_RunApp] OpenGL not activated, not initialized
But I have installed the newest vga driver from Intel website (SandyBridge HD Graphics 2000).

If I disable the sound for movie then it plays fluently and CPU usage is lower.
Title: Re: Excessive CPU usage during playback - part 2
Post by: Jan Gruuthuse on October 17, 2012, 06:11:20 PM
if you are not familiar with flashing and so on: Don't do this your self! Take it to the shop where you purchased the mobo. If you do something wrong this cold brick your mobo!
I don't take any responsibility for anything that can go wrong! The bios should be at least for Intel Pentium G630T (2.3G,35W,32nm,3MB,2C)    0602 since all PCB's (http://support.asus.com/cpusupport/cpu_support_right_detail_mkt.aspx?SLanguage=en&p=1&m=P8H61-M%20PRO&cpu=Intel%20Pentium%20G630T%20(2.3G,35W,32nm,3MB,2C)&pcb=ALL&sincebios=0602&memo=)
It is not clear to me if you only need VGA driver or VGA driver and Intel Graphics Accelerator Driver (http://www.asus.com/Motherboards/Intel_Socket_1155/P8H61M_PRO/#download)
Read mobo manual about GPU boost.
If you decide to add nvidia video card: Test before you buy. Sometimes it does not work with step B3 and Intel HD GPU integrated in CPU.
Title: Re: Excessive CPU usage during playback - part 2
Post by: eltomassito on October 19, 2012, 06:24:53 AM
I have the newest BIOS for mobo. I've tried both VGA drivers too.
What version of OpenGL is required by Avidemux to work? Sandy Bridge and Ivy Bridge have implemented OpenGL 3.1.
Adding additional VGA card is out adjective in my case.
Title: Re: Excessive CPU usage during playback - part 2
Post by: Jan Gruuthuse on October 19, 2012, 07:05:57 AM
Don't use OpenGL in Main Menu -> Edit -> Preferences -> [Video] for Video display: [OpenGL (best)].

you can leave [v] Enable openGL support marked.
Can't answer you on required version of openGL, perhaps developer can provide this info.
openGL implementation in avidemux is mainly orientated towards nvidia.
There are probably differences how AMD, intel and nvidia implement/interact openGL and there hardware.


Title: Re: Excessive CPU usage during playback - part 2
Post by: eltomassito on October 19, 2012, 09:49:04 AM
It's impossible to leave marked "Enable openGL support" because Avidemux crashes in any known computer to me.
OK. Maybe decoding will be fixed in future releases or maybe I will found another program for editing movies:)
Thanks for help.