TechLifeWeb

Exploring the digital life

How to Make the Scroll Bar in Gmail Visible in Chrome

I really like the new Beach theme in Gmail. The problem I have with it is that the scroll bar on the right becomesb4 invisible in Google Chrome.  On the right is a snip from my screen.

Fortunately, we can fix this with an extension and some script.

First, go get the Stylish extension and install it.

Then go to this page where my script is: New Gmail – Visible Scroll Bar and click the Install with Stylish afterbutton. Once you do that and go to Gmail, the scroll bar will be a nice blue color. And it will stay blue no matter which theme you try.

If you don’t like my choice of blue, you can right-click on the Stylish icon at the top of your browser and then click Options. Then you click the Edit button under the name of the script.  You’ll then see a line that says rgba(0, 122, 255, 0.7) The first 3 variables are RGB code (search around the web for help with finding the code to a color you like). The 0.7 part has to do with transparency so you can experiment with that. Just click save and go back to Gmail (or, easier, open Gmail in another tab).

Hope that helps some people out.

How-to use the HD-PVR with Windows Media Center

The HD-PVR is a device that connects between a set-top box (such a your cable tuner box) and your computer (HTPC). It uses component video and S/PDIF optical audio connectors.

Earlier this year, Hauppauge released drivers for Windows 7 Media Center that let you use the device as one of your tuners within media center. In the community these are often referred to as the ‘native drivers’ since they come from Hauppauge rather than DVBLink which provides another solution for this to work.

People have had various experiences getting these drivers working. For some people they are great and others have a bad experience. My opinion is that this has to do with the other things running on your HTPC including background processes and codec packs.

While we all can hope that this should “just work”, there are many variables involved which combine to make it hard. Here is how I have it working with success. Much of this has been learned by my own experiences and the helpful people over on The Green Button. Hopefully it will help others get up and running.

First, my system specs:

  • Atom ION
  • 2GB RAM
  • Gigabit Ethernet
  • Windows 7 32-bit
  • Hauppauge 2250 Dual Tuner Card
  • HD Homerun Dual Tuner
  • HD-PVR using native drivers
  • My set-top box is a Scientific Atlanta 4250HDC

Getting started: Set up your set-top box correctly

The first thing you need to do is lock your set-top box to output only one resolution. By default, my SA 4250HDC had several resolutions checked. I changed this to ONLY 720P. The HD-PVR doesn’t seem to like the resolutions to change when you change channels

Next, be sure your set-top box is set to output Dolby Digital audio.

I can’t tell you how to do this on all boxes but here is basically how it is done on the SA 4250 (hopefully this will be close for some of you with other boxes)

  • Press the Settings button on your remote
  • Under Quick Settings, select Devices – Audio:Digital Output
  • Ensure Dolby Digital is selected
  • Still in settings, scroll right to Display
  • Go into Output Resolution and be sure to check only 1. On my box the dots on the left of the resolutions indicate which ones that will be used. I use 720P as progressive is best in my opinion. What ever you decide, choose either 720P or 1080i. Lock it in as only 1 so the box isn’t trying to switch depending on source.

Make sure Windows 7 is up to date

Run windows update (might as well)

There is a Windows 7 hotfix that is not part of windows update yet. The notes on it do not indicate that it would help in this case but in my opinion it is a must for Media Center. I really do think it helps with channel changing. You can get it here: New functionality and performance improvements for the Windows 7 graphics platform (http://bit.ly/fRjCsw)

Set up and install the HD-PVR

Tip: If you have Windows Media Center set to start automatically with Windows, you might want to change that option to off. The installation process may take a couple reboots so this will help speed things up and minimize problems. For reference, this setting is in Media Center under Tasks – Settings – General – Startup and Windows Behavior.

Download the installation package and installation instructions from the Media Center tab of HD-PVR Support (http://bit.ly/ag73Cn)

Note: You do not need all the Arcsoft software provided with your HD-PVR for this to work.

Run the component cables and optical audio from you set-top to the HD-PVR input jacks.

Follow the instructions to install the HD-PVR down to the part about installing and setting up the IR utility.

Now, before you go on, take the time to make sure your HD-PVR is completely isolated from your other USB devices. 1Geek1Tool provides great instructions on How to isolate your HD-PVR (http://bit.ly/f4NdiH).

Once you have finished that process and your HD-PVR is on its own physical USB controller continue with the HD-PVR setup instructions to set up the IR software and the the MCE Installer.

The HD-PVR is considered a Digital Cable tuner when using the native drivers so you can easily install it along side your ATSC and QAM tuners.

After the tuners are set up in Media Center, disable background scanning to help improve performance:

  • Open up REGEDIT and go to
  • [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Service\BackgroundScanner]
  • Create a new DWORD value, and name it PeriodicScanEnabled  and set the ValueData to 0
  • Close Regedit, and reboot the box.

Note: Don’t forget to enable the switch to start Media Center with windows if you disabled it in the tip above.

Helpful Utilities

GuideTool is a handy tool for quickly editing your channel list (useful whether you use the HD-PVR or not). You can find it here: http://bit.ly/hBaw60.

Some people experience what is often called the Dual Tuner or Double Vision bug. This is where though you have only one HD-PVR showing up as 2 digital tuners. Fortunately, Mikinho of Missing Remote and The Green Button has written a piece of software that makes it easy to do a quick reset so only 1 tuner shows up. You can get it on Missing Remote here: http://bit.ly/hlN1Hj (note: you have to log in to see the attachment.)

Channel changing notes

The above instructions get you up and running with the HD-PVR’s built in IR port. Some people have issues with the built in IR blaster being causing long times changing channels. Here are some notes I’ve gathered:

How to increase the video bitrate and turn off the blue ‘bling’ LEDs

There isn’t a nice user interface method of change things like bitrate or that bright blue “bling” light. To do that you need a utility like GraphStudio. This isn’t hard, it just takes a few steps.

  • Download GraphStudio http://bit.ly/goE0aa
  • Ensure your HD-PVR isn’t recording a show then shut down Media Center
  • Run GraphStudio
  • Click Graph – Insert Filter
  • In the filter chooser dropdown, scroll down and click on WDM Streaming Encoder Devices
  • Select the Hauppauge HD-PVR Encoder in the left pane then click the Property Page button.
  • Click the Hauppauge H264 Encoder tab
  • Here you can change the Bitrate from its default 8 to 13.5 Mbps. You can also check the “Disable bling LEDs” box
  • Be sure to click the Apply button after any changes
  • That’s it! Simply close GraphStudio, start Media Center back up and enjoy some TV.
  • Note, there are also some settings for Luma and Chroma. I didn’t change these. If anyone has changed them in a way they think increases picture quality, I’d like to hear about the results.

Other Notes

  • The HD-PVR can take a lot of processing power. I suggest not running background processes such as Show Analyzer if possible. If you are having trouble and you must run these processes, at least try turning them off for a bit as a trouble shooting method.
  • Valkyrie-MT’s notes on getting this to work with Dish Network: here http://bit.ly/fJHL5F
  • Valkyrie-MT’s info on changing the audio to RCA if you absolutely have to: here http://bit.ly/fRzaK7
  • Media Center keeps all its tuners, channels, recording, EPG and other information in a single database file. If for some reason you want to take things back to a clean state, you can follow How to reset your Media Center database http://bit.ly/e0fC3V

Main Web Sites and Threads

The thread on The Green Button is the best place to go to get your questions answered. If you have other tips or helpful utilities I have missed, let me know in the comments below.

*** change log ***
12JAN11: Optimized the page for printing.
12JAN11: Fixed links to Missing remote that moved when they redesigned the site. Also added a link to some details on DirectTV channel changing over the network.
27DEC10: Added a link to my IR Server Suite note.

15DEC10: Added a link to uspino’s notes about Tivo channel changing. Also added a link to my notes on disabling other Hauppauge tuners.

15OCT10: Added section about increasing bitrate and disabling bling lights
14OCT10: Added a link to Mikinho’s Double Vision Quick Fix in the Helpful Utilities section

How To Convert iPod Video to Divx or Other Formats

I’m into podcasts both audio and video. Except for live things like baseball games I rarely even listen to the radio in my car any more.

One of the things that I don’t like is that most podcasters encode their video for the iPod. I don’t blame them. The iPod is the market leader and bandwidth and time are limited. Unfortunately we don’t have a video standard as ubiquitous as the mp3 file.

Thing is, I don’t own an iPod. Audio or Video. I do own the remarkable Archos Gmini 402. The 402 plays Divx compatible files and wmv files. That doesn’t do you much good in a video podcast world full of mov, m4v and mp4 files. Then there is the fact the some people like to encode to different screen resolutions and sizes. Some do 16:9 and some do 4:3.  It’s a whirlwind of file types and variables.

What I’m going to show you is how I take all those files and convert them to a format compatible with my player. I’ve been using this for a month or 2 now and have been tweaking the settings. This technique should work for any player that plays divx including the psp.

I chose divx compatible because it works in my player and other devices I have like my stand alone Divx-playing DVD player. With a bit of tweaking you can get it to encode to other formats as will.

The instructions are for Windows. The tools have versions available for other platforms such as Linux so if you are savvy enough to convert the batch file I’m going to tell you about you should be able to use it on those systems as well.

I’m going to assume you know how to acquire video podcasts. Actually, even if you just go to sites and download the files by hand and put them in the appropriate folder you’ll be able to use this technique as well. I’ll list a few of my favorite video podcasts at the end of this post.

Tools

To work this magic you need 3 tools. They’re all open source and free.

  • mencoder – This is the brilliant software that does the encoding. As of this writing, MPlayer-mingw32-1.0rc1 is the latest for Windows. Mencoder comes as part of MPlayer
  • xvid codec – You’ll want to make sure this is on your PC so you can play the files you create
  • My batch file – Described below

I chose to use a batch file because once you figure out how these things work you can easily tweak it. I also like to call the batch file from the task manager so I can use the power of the PC during the early hours of the morning to have everything waiting for me later on.

Additional Documents

If you get into this you might want to refer to these documents.

The Magic Batch File

Below is the text of the batch file. You might want to download it instead of copy/paste in case of line wrap issues. I tried to comment it as much as I could to help explain the options you need to set. You can’t just run it. You need to set up the directories you have and make decisions on the options I mention as you read through it. Fortunately you only need to do this once.

Once set up properly, when run, the batch file will check all the directory and subdirectories you indicate and process any video file (.mp4 or .m4v or .mov or .mpg or .wmv). Yes, even wmv. I do that because people who encode to wmv sometimes like to make these huge files that don’t always play well on portable devices.

One of the problems with video is that everyone likes to create their content in different sizes. While most video podcasts are 320:240 some can be bigger and some can be wider. Your screen is only designed for a certain maximum. If you look closely at the batch file it scales to 320:-3. That -3 is a special mencoder switch that calculates using the other dimension and the original aspect ratio. This is very important. If you hard code your dimensions and scale you’ll end up with people with squished or stretched heads. This magic switch keeps your aspect ratio.

NOTE: See below, I no longer resize the videos because it isn’t needed for the devices I use.

@echooff
REM By: Scott Kingery
REM email: techlifeblogged[at]gmail.com
REM Last updated 11:57 PM 4/4/2007

REM Purpose: This batch file will look for mp4, m4v, mov, mpg and wmv files in the input folder you specify
REM and convert them to Divx 5 compatible files using the XVID codec.

REM For this to work on your system you must enter the correct paths to various files.

REM **** Start User editable section ****

REM First you need to set the location of mencoder.exe
REM usually this is installed in c:\mplayer
REM Make sure of the location and put the path here
REM You can download the latest mplayer (which contains mencoder)

REM from http://www1.mplayerhq.hu/MPlayer/releases/win32/
REM as of this writing the current version of mplayer for Windows is MPlayer-mingw32-1.0rc1

set mencoderloc=c:\mplayer

REM inputdir is the location of files you want converted. Be sure to put in the complete path
REM to the TOP level directory. The script will look for and convert files in all subdirectories.
REM So if you have c:\dir1\dir2\dir3 and you specify inputdir as c:\dir1 the script
REM will convert all relevant files in dir1, dir2 and dir3
REM You can type it c:\dir1 or you can user system variables like %userprofile%

set inputdir=%USERPROFILE%\Documents\My Received Podcasts

REM inplace tells the program what to do with the output.
REM Set inplace to 1 if you want the output file in the same directory as the input file

set inplace=1

REM If you would rather have the output somewhere else, set inplace to 0 (zero)
REM and set outdir to the directory you want

set outdir=%USERPROFILE%\Documents\My Converted Podcasts

REM If you want to keep the original, set backup to 1.
REM Setting it to 0 (zero) will cause the file to be deleted.

set backup=1

REM If you do want a back up, set the directory you want the backups in here.
set backupdir=%USERPROFILE%\Documents\My Backup Podcasts

REM Lastly, do you want to add today’s date to the filename?
REM I include this because some places don’t include the date in the file name and
REM this makes it hard to know what is new and what isn’t when I look at it on my
REM device.
REM Setting incdate to 1 will cause the output to include todays date
REM For example, if an original file is called myshow.m4v and todays date is 18 March the output will be 20070318_myshow.avi

set incdate=1

REM **** End User editable section ****

REM **** DO NOT EDIT BELOW THIS LINE ****

if %incdate% == 1 set TodayDate=%date:~-4,4%%date:~-10,2%%date:~-7,2%_
echo on
cd “%inputdir%”

If %inplace% == 0 Goto ProcessMove
:P rocessInPlace
for /R %%i in (“*.mp4″ “*.m4v” “*.mov” “*.mpg” “*.wmv”) do %mencoderloc%\mencoder “%%i” -quiet -ovc lavc -lavcopts vcodec=mpeg4:v4mv:mbd=2:trell -vf expand=:::::4/3,scale=320:-3,harddup -oac mp3lame -lameopts fast:preset=medium -ffourcc DX50 -o “%%~dpi%TodayDate%%%~ni.avi”
for /R %%i in (“*.mp4″ “*.m4v” “*.mov” “*.mpg” “*.wmv”) do if exist “%%~dpi%TodayDate%%%~ni.avi” ren “%%i” “%%~nxi.converted”
Goto PostProc

:P rocessMove
if not exist “%outdir%” md “%outdir%”
rem for /R %%i in (“*.mp4″ “*.m4v” “*.mov” “*.mpg” “*.wmv”) do %mencoderloc%\mencoder “%%i” -quiet -ovc lavc -lavcopts vcodec=mpeg4:v4mv:mbd=2:trell -vf expand=:::::4/3,scale=320:-3,harddup -oac mp3lame -lameopts fast:preset=medium -ffourcc DX50 -o “%outdir%\%TodayDate%%%~ni.avi”
for /R %%i in (“*.mp4″ “*.m4v” “*.mov” “*.mpg” “*.wmv”) do if exist “%outdir%\%TodayDate%%%~ni.avi” ren “%%i” “%%~nxi.converted”

:P ostProc
If %backup% == 0 Goto DeleteOriginal

:SaveOriginal
if not exist “%backupdir%” md “%backupdir%”
for /R %%i in (“*.converted”) do move “%%i” “%backupdir%\%%~nxi”
Goto End

:D eleteOriginal
for /R %%i in (“*.converted”) do Del “%%i”

:End

UPDATE 20 MARCH 2008:

Since I originally wrote this how-to a new version of mencoder released. I now use MPlayer-mingw32-1.0rc2 which you can get from http://www1.mplayerhq.hu/MPlayer/releases/win32/

Also, I have updated the batch file as I no longer resize the video. I have left the old line in as examples should you still want to resize your videos.

I hope you found these instructions helpful. Let me know what devices you are using for you video podcasts and if you’ve changed any of the settings.

UPDATE 07MAY08:

This page was originally found on this page when I was using Blogger. Moved here because WP is much much better than blogger.

Technorati tags: , , , , , , , , , ,