[Solved] Videos Stuttering in media players with Firefox 4.0 Hardware Acceleration enabled!

Firefox 4.0 just introduced the Direct2d/Directwrite/Direct3d10 composting aka hardware acceleration for the browser, But what happens after browsing for an hour or so with 30+ tabs open like me (sorry i am a tabber) the vram (Graphics card dedicated memory) is getting used up completely by our beloved firefox. But even if you close the tabs you wont recover it back…

this lack of memory makes the video stutter especially with  DXVA.

So to flush the gpu memory out :

1) just open an HD video file with Windows media player 12 & close it

(This just freed/flushed out the firefox from  GPU memory)

2) Now open your Video with your favorite mediaplayer (Arcsoft TMT3+/MPCHC/VLC) & Enjoy smooth fluid video playback…

<<<<<<<<<<<<<<<<<<<<<<Happy Computing>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Advertisements

Entering the world of 64 bit browsing..

64 bit OS has been  mainstream for 5 years now ( well i didnt include windows xp x64 as the adoption rate was not that great) and now the situation is different the majority of PC’s sold today are running 64 bit Windows 7 compared to the x86 / 32 bit version. Now OEMs are bundling windows 7 x64 and can utilise the potential of 4GB + RAM as we all know 32 bit OS can only utilize 3.5 GB of ram without PAE(physical address extention).

Adobe’s main crticism was that it was not havin Adobe Flash Player  64 bit ,which will hold back the use of 64 bit browsers.

“However, now with the Adobe flash 64-bit 10.2.161.22 developer preview AKA Flash Player “square” is released in September 2010, this criticism is now addressed”

Well adobe had to do it.. HTML 5 is here so adobe needs to be in competition… Well HTML 5 is not at all a flash killer okay…


As of now there are 2 browsers that are natively 64 bit IE 9 beta & Mozilla Firefox 4.0 beta. As i am not a fan of IE ( well i am a fan of Windows 7 though) Mozilla firefox is my kinda thingy… With the new jagermonkey javascript engine which is much faster than the previous firefox is gettin even better.

So now 64 bit browsing for me is Firefox x64 + flash x64

Link for Firefox x64 4.0 beta : http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/

Here is the link for the x64 Flash Player ” square Page” : http://labs.adobe.com/downloads/flashplayer10.html

Disable In built cd/dvd burning features of windows 7/vista!

I dont think we ever use built in burning feature of windows os specifically on vista/7. I dont say they are bad but the common trend is that we use dedicated applications like the Imgburn(my favorite) or  Nero. So why keeping that feature on?

Other benefits of keeping the built in burning feature off

1) Can stop spreading viruses that appear as ‘Files to be written on to the cd’

2) Can stop the discomfort of watching desktop.ini file to be written on to the disk as seen in windows 7!!!

Follow the steps 1 or step 2

1)Download the registry file (it contains 2 reg files 1 for disabling burning features and other for enabling)

http://www.mediafire.com/?nndmnyworj2

Or you can follow the below step Or you can use both

2) In Run type gpedit.msc. This will open the policy editor.

1) In the left pane expand user configuration, then expand administrative tools, then expand windows components, then click on windows explorer.

2) In the right pane you will see ‘Remove CD burning features’

3) To disable cd/dvd burning features make the policy ‘Remove CD burning features’ to Enabled.

4)To enable cd/dvd burning features make the policy ‘Remove CD burning features’ to Disabled or Not Configured.

As shown below:


Disable Autorun to protect against USB viruses on windows

With a little common sense you are “kind of” safe from internet borne threats. With firewall of your internet router, to the Operating system firewall , to the capable antivirus in your pc. A fairly deep defense in depth.

USB Borne threats : 

The fact is these viruses use the autorun.inf exploit in windows operating system. So what can be done?

I think the inconvenience in disabling autorun/autoplay of your windows is much  much lower than reformatting or searching for the fixes and removing reg keys the viruses altered.

Disabling autorun in Vista and Windows 7 do as follows :-

1) Download the reg key and run it so that windows will ignore autorun.inf 

http://www.mediafire.com/?ncmowojutji

Note:

The first step of merging the registry file is enough, the following steps are for additional security.

2) In windows vista/7 searchbar in start menu search autoplay & open autoplay

and Remove the check from ‘Use AutoPlay for all media and devices’  

3) In windows 7/vista editions except home basic and home premium do the following

In run type gpedit.msc

  1. In the  Computer Configuration expand Administrative Templates, then expand Windows Components.
  2. Click AutoPlay Policies and select ‘Default Behavior for AutoRun’.
  3. In the Default Behavior for Autorun Properties dialog, select Enabled. In the Default Autorun Behavior field, select Do not execute any autorun commands
  4. Click Apply, then click OK and close the Group Policy Object Editor

For Windows Xp users do as follows:-

1)Download the reg key and run it to disable the autorun.inf autoplay

http://www.mediafire.com/?ncmowojutji

Note:

The first step of merging the registry file is enough, the following steps are for additional security.

2)In Run type gpedit.msc and click OK. The Group Policy window will open.

  1. In the left pane expand Administrative Templates
  2. In the right pane click System,  and click Turn Off Autoplay
  3. In the Turn Off Autoplay Properties window, select Enabled & select All drives and then click ok.
  4. XP Home Edition dont have group policy editor and so have to edit that in the registry directly.
  5. In Run type regedit and click OK. The Registry Editor window will open.
  6. Go to:
    HKEY_CURRENT_USER \Software\Microsoft \Windows \CurrentVersion\Policies\Explorer

  7. Right click the value NoDriveTypeAutoRun and select Modify and change the value to 95 hexadecimal.

[Solved] Turbo C++ high CPU usage !

An introduction to the situation:-

It is pathetic to hear that Turbo C++ are still used in schools for teaching C,C++. It is a disturbing fact that this turbo c++ Version 3.0/3.1 that is commonly used is older than the students who are using it!!

Since Turbo c++ is a DOS based compiler when you are running it on windows xp,vista or 7 which is  32bit (in 64 bit they removed support for 16bit applications) will run ntvdm.exe which is nothing but an emulator for running 16 bit application and here it is our old school turbo c++. This ntvdm.exe spikes up the cpu usage with its poor emulation and uses nearly 100% cpu on single core processors and 50% on dual core processors leaving nothing for multitasking.

Benefits of the method shown below

1) CPU usage will be very low and you can multitask.

2) 64bit windows dropped the support for 16 bit applications and you can use DosBox and follow the method below and use turbo c++ and other 16 bit applications and games on your 64bit xp,vista,7.

3)This is not just for turboC++ and follow the below method for any 16bit applications and games.

So here is the solution..

1) Download and Install Latest version of Dosbox from http://www.dosbox.com/

2) Edit Configuration file of DosBox (it is there in the start menu)

3) To auto mount your turboc++ that is to make turboc++ run every time you click on Dosbox shortcut on the desktop

Add as shown in the screenshot in the config file.

Where d:\Turboc\ is the directory where Turbo c++ is installed.

4. For Reducing the cpu usage (optimum usage), we emulate a  cpu with 6mhz clock speed which is sufficient for turbo c++

for that do as shown in the screen shot below.

5. Also do the following settings in dosbox config file for optimum usage like working of aero in windows 7,vista. Better windows size, rendering etc.

[sdl]

FIX Washed Out Colors or Black Levels in VLC player

Tired of washed out colors or poor black levels in VLC player?

This happens mainly because VLC player might work in Luminanace Level of 16-235 ( TV LEVELS) instead of 0-255(PC LEVELS). Usually videos are stored in 16-235 YCbCr and is played back at 0-255 RGB so expansion is needed at some point.VLC player shows this issue specifically in PCs with Nvidia Graphics Cards.

FIX : (only if you have nvidia graphics card)

1) Goto Nvidia Control panel

2) In Nvidia Control Panel select adjust video color settings

3) In How do you make color adjustments? Select with Nvidia settings.

4) Select advanced of Nvidia video settings

5)Select FULL(0-255) in dynamic range.

To sum up do as shown in the screenshot.

NOTE: This will apply to all other players. And also will fix color issues with VLC player etc.

FIX Washed Out Colors or Black Levels in Windows Media Center

Tired of washed out colors or poor black levels in windows media center?

This happens mainly because Windows Media Center might work in Luminanace Level of 16-235 ( TV LEVELS) instead of 0-255(PC LEVELS). Usually videos are stored in 16-235 YCbCr and is played back at 0-255 RGB so expansion is needed at some point.

FIX 1 :

1) Open regedit

2) Goto HKEY_LOCAL_MACHINE\SOFTWARE

3) Add key “debug”.

4) Under debug add key “ehPresenter.dll”.

5) In that key add 32 bit DWORD – “NominalRange”. Set the value to 1.

This will expand all content in media center to 0-255. Should fix your level issues.
FIX 2: (only if you have nvidia graphics card)

1) Goto Nvidia Control panel

2) In Nvidia Control Panel select adjust video color settings

3) In How do you make color adjustments? Select with Nvidia settings.

4) Select advanced of Nvidia video settings

5)Select FULL(0-255) in dynamic range.

To sum up do as shown in the screenshot.

NOTE: This will apply to all other players. And also will fix color issues with VLC player etc.