## Monday, May 12, 2014

### K-Lite Codec Pack crashes games when playing in-game videos

Several months ago, I updated the K-Lite Codec Pack and found out my game would crash when playing in-game videos. At that time, I simply uninstalled the new version, and got back the old version.

Two weeks ago, I decided to give the new version of K-Lite Codec Pack another try, and would like to see the problem has been solved. Unfortunately, nothing changed but crashing games. The FAQ on the official website of K-Lite Codec Pack provides some solutions (http://www.codecguide.com/faq_miscellaneous.htm#item1), but all failed to solve the issue.

What I suspected was that it is related to the configuration of the software. I checked the video format of the games, it is wmv videos. So I  did the following.
1. Opened the Codec Tweak Tool that comes with K-Lite.
2. Clicked on the Preferred splitters (under the section of Codec and Filter Management
3. In the pop up window, there are two columns ## 32-bit source filters ## and ## 64-bit source filters ##
4. Found out the .wmv section (both 32-bit and 64-bit sections), changed the setting from Use merit (recommended) to LAV Splitter
Problem was solved.

## Friday, April 11, 2014

### BD/DVD rom won’t read movie discs, but data discs OK

I don’t use my BD-rom often, maybe only several times a year. As far as I could remember, last time I had problem with it was almost half a year ago: it failed my three blank DVDs. But I was in a hurry, so didn’t investigate further, and forgot it completely afterwards.
Until today. Didn’t know where the idea came from, I wanted to watch a DVD. The disc was put in, but the BD-rom tried for a few seconds, and then the light went off. As a result, the windows didn’t think there was any disc there.
My first thought was hardware failure. But I highly doubted it. I don’t use it often, and it was working before. Therefore, I tried a data disc, and it worked! So basically I could rule out hardware failure.
Tried to uninstall and  reinstall the BD rom, and Microsoft fix it. No luck. The issue still remained unsolved. It didn’t look like a software issue either. Then I came to this post  DVD/RW will not read anything. That’s it. I followed the cleaning solution from Naveen:
... and I started cleaning the DVD lens with an ear bud.
When I pressed the lens it was moving in to/fro motion, i moved it left/right couple of time rotated the bud to clean the lens.... and that's it..Life was never the same again ..
The movie finally came alive…

## Friday, March 07, 2014

### Remove PDF password and restrictions using Ghostscript via drag and drop

I deal with and process lots of PDFs. However, sometimes the security settings of the PDF documents cause trouble.

There are several online websites available to remove these restrictions. Most offline tools cost more than 20 dollars. Actually we can do this ourselves via drag and drop, if Ghostscript is installed, free of charge.
1. If you don't have Ghostscript installed, download it from http://www.ghostscript.com/. It is free.
2. Save the following code as a .cmd file.
@echo off
echo.
echo.
set PATH="C:\Program Files\gs\gs9.07\bin"
echo **************************************
echo.
echo   Start processing, may take a while, please wait.
echo.
echo **************************************
echo.
echo.
set filein=%~1
set fileout=%filein:~0,-4%
gswin64c -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sPDFPassword= -dPDFSETTINGS=/prepress -dPassThroughJPEGImages=true -sOutputFile="%fileout%_noPW.pdf" "%~1"
3. Change this line according to the installation directory of the Ghostscript on your machine.

set PATH="C:\Program Files\gs\gs9.07\bin"

4. Change 'gswin64c' to  ‘gswin32c’ if you install the 32-bit version.
5. Once the configuration is done, you can drag a password protected PDF to the .cmd file icon, a file without restrictions will be generated in the same folder.
6. To change the icon of the file, create a shortcut to the .cmd file. The icon of the shortcut can be changed.
7. If the PDF requires a password to open, then this password must be known to remove restrictions. In this case, the password should be provided to gswin64c via

-sPDFPassword=YOUR PASSWORD