Ubuntu 12.10 and MythTv

Quite recently I was tinkering around with new update Ubuntu 12.10 trying to get my Hauppauge HD-PVR (Gaming Edition) to work with MythTV, had hell of a time trying to configure it properly so I could record some gameplay footage with it. Getting the first initial setup did seem a little easy at first, but not until after I discovered I had to install some additional packages to get it all to work properly. Following the guide on getting and setting up MythTV from http://parker1.co.uk/mythtv_ubuntu.php, before discovering a different and more easy to follow guide in a video from YouTube user called UbuntuHelpGuy. Fantastic guides I should recommend following if you’re needing help or stuck with something that you’re trying to do.



So if you follow as instructed from this video you should be able to get setup with your Hauppauge HD-PVR recording device with no problems. –– I would highly recommend installing MythBuntu repo packages, that is one vital thing you need to do to make sure this works. http://www.mythbuntu.org/auto-builds


Once you’ve downloaded it, it should open up the Ubuntu Software Center and begin installing, it may ask for your password to install, and get a little dialogue for confirming you wish to accept and install agreement stuff.

After you’ve installed the repo packages, and other additional stuff from the Ubuntu Software Center as well as MythTV itself, you then run MythTV Backend to begin the initial setup as follows in the above video shown.



Step 1:

Make sure you’ve got your Hauppauge HD-PVR plugged into the computer then open up MythTV Backend then select Capture Cards, select New Capture Card from the menu list, then for Card type, select H.264 encoder card (HD-PVR), it should then in the next box say /dev/videoN where the N is, is the number it’s assigned, for example; /dev/video0 or /dev/video1. The probed info should say Hauppauge HD PVR [hdpvr] if you’ve got it plugged in.  For Audio input it should automatically have selected RCA Back, and the tuning timeout set at 12500 ms, make sure you hit Finish to save it.


Step 2:

Go back to the main menu by hitting Esc button then select Video Sources then select (new video source), you can name your video source whatever you want, so for example; HDPVR or Hauppauge HD-PVR, whatever you want to name it.  For the Listings Grabber make sure you select it as No Grabber. Leave Channel frequency table at it’s default and click Finish to save it, then return to the main menu again by hitten Esc.


Step 3:

Select Channel Editor from the menu, then select (Add New Channel), so again for Channel Name you can name it whatever you want, ie; Hauppauge HD-PVR so you know and remember what the channel is called. Next assign a channel number that you wish, it can be any number, so assign it 1 if that’s the number you want it. Name the callsign, ie; HDPVR. Make sure the checkbox Visible is checked. Next the Video Source, select from the list, it should already automatically select the one you created earlier. From here you can select the TV format type, ie; PAL, NTSC, NTSC-JP, etc… doesn’t really matter which leave it on Default if you’re fine as it is. For the Commercial Detection Method select All Available Methods. Click Next then Next again, the next page here you can adjust the TV video source settings like Finetune (kHz), Contrast, Brightness, Color, Hue, These settings are usually best left at their default state, but you can come back later if wish to change it to suit what you’d like, so just hit Finish for now, and you’ve created your channel for your Hauppauge HDPVR, then hit Esc to go back to the main menu.


Step 4:

Now it’s time for Input Connections, here you’ll see 3 things that says. Component, S-Video and Composite, what you want to select is Component. The display name you can name it whatever as an optional thing, ie; HDPVR. Make sure the Video Source is selected on from the menu list says HDPVR or from whatever you named it before in the previous steps. In the External channel change command text box make sure you type in /bin/true, then put Starting Channel to the number you created earlier if it’s not already selected. Now press Next then Finish and you’ve completed this step. You can now exit MythTV Backend by pressing Esc to go back to the main menu then again to quit.


When you close MythTV Backend it’ll ask you for your password, then it’ll ask if you wish to run Mythfilldatabase, just select No. Next you may have to logout and log back in again for the changes to take immediate effect, I’d recommend doing it as an optional thing, but do it anyway just to be sure. Next open up MythTV Frontend. Once opened up go down and select Watch TV, it should then bring you to live screen video feed that your Hauppauge HD-PVR is connected to like your game console for example. To begin recording something just press the R key on your keyboard, and if you wish to stop recording, just hit R key again.


With all that you’ll be able to replay video by going back to the main menu and selecting Watch Recordings. Another thing is if you have Media Server turned on, on your console like PS3 for example, you can playback the recordings on your PS3 as Ubuntu will broadcast it’s media server for MythTV to any computer that’s capable of receiving on your home network.


Typing Japanese Characters

When it comes to typing something your default is usually English unless of course you’ve got it as something else by default like French or Germen. But for those with English Keyboards you may be wondering how you can type Japanese characters on your keyboard? Answer is simple really, you don’t need another keyboard with the japanese characters on it, everything you need is already there to use on your computer, all you have to do is enable it and add it to your set of usable languages so you can switch between English and Japanese instantly and type whatever.

Here I’m gonna show you how to do it on Mac OSX, I’m doing it on Snow Leopard 10.6.8, I’ll show you how to do it on Windows below, so feel free to skip to the bottom of this post to see how to do it. –– Ok first for Mac OSX go and open up System Preferences from the (Apple Menu) 

Click on Language & Text from the list, once that’s loaded up select the Input Sources tab.

Then select from the list Kotoeri and click the checkbox, it should check all in that list there. Don’t forget to click the checkbox at the bottom there for Show Input menu in bar. This will make it easier for you to switch between different language inputs.

Next select from the Input Menu bar at the top of the screen and select from Hiragana, Katakana or Romaji. Romaji let you type in plain English when you press the ⌥ + ⇧ + E hotkey combination, this will put you into Hiragana typing mode.

And if you’re needing help with typing certain characters you can refer to the Kana Table which can help you type Hiragana, Katakana and Romaji characters. Here’s a useful tip to remember if you’re not use to typing Japanese or ever learnt Japanese. Hiragana is used for writing words in general, adjectives and some names, Katakana is for writing names, and names of things, places. Kotoeri’s dictionary isn’t perfect so it won’t have words or names of everything in there so you’ll have to register some yourself, it’s best if you refer to a Japanese Dictionary so you can learn each word so the Dictionary can learn correctly of new words you put into it. –– There is no actual difference from typing with Full-width Romaji or Half-width Katakana, it just types the same way as Hiragana and Katakana, only the width of the characters changes.

Another thing, when you’re typing Japanese Characters you’ll have a quick popup menu for letting you change the characters of a word like so for example; 

To get this popup just press the Space bar on your keyboard, but take note here that it only shows up when the word is underscored, when it’s underscored you can press the Space bar and the little popup menu will appear.



Alright… Windows users… here is how you do the what I’ve explained above, I’m doing this on Windows 7. –– Firstly open up Control Panel, then select Region and Language.

This will open up the window for Region and Language, next click on the Keyboards and Languages tab, then click Change Keyboards… button.


That will then bring up the Text Services and Input Languages window like so…

Now because I’ve already added the Japanese IME, you’ll just pretend that we’re adding it for the first time. OK… You next have to click on Add… to then bring up Add Input Language window. Then scroll down and check the checkboxes for Japanese (Japan) and make sure you check the boxes for Japanese and Microsoft IME then click OK button.



Now that you’ve done that you’ll be all set to begin typing in Japanese, all you have to do next is click Apply then close the windows for Text Services and Input Languages.

You should have on your Taskbar with words EN on it next to a keyboard icon, click that then select JP, the icons on the task bar should change like so, next click on the red circle and paintbrush icon and select Microsoft IME.

and lastly click on the A icon and select from Hiragana, Full-width Katakana, Full-width Alphanumeric, Half-width Katakana and Half-width Alphanumeric.

Now that you’ve added the right keyboards for typing in Japanese on Windows, you should now be able to type almost anything in Japanese. There isn’t really any helpful stuff for typing Japanese on Windows like a Mac does… you may have a hard time trying to type the character you want without a table that’s ready there to use. :p  But don’t let that stop you since there’s plenty tables and guides out there on the Internet to help you type out stuff, Google Translate is one example that can help you type stuff for words or phrases.

Setting up Japanese Keyboard is more tedious than Mac OSX, …Windows has……well…pretty much……TOO MUCH windows, whereas Mac OSX……all you do is Apple Menu  > System Preferences > Text and Language > Input Sources > Checkbox > Done. It’s done faster than you can say Microsoft Windows. :P

Reset Network Preferences (OSX)

At times there may be one or two occasions where the network adapters such as AirPort or the Ethernet in your Mac suddenly cease to function properly, be that from hardware fault, software fault or accidental modification faults to your network. There is a way to reset them when things stop working as they should. If none of these methods work, you may have to send your machine in for some repairs if it’s hardware fault.

Resetting PRAM –

First steps, always try resetting SMC’s PRAM to see if that fixes the problem. Shutdown your computer and remove the power cable for atleast 15 minutes or so, I usually tend to do it in 7 to 8 minutes. If you’re doing it on Macbook or Macbook Pro, remove power cable and battery pack. Then you’ll  plug them back in. Next hold down  ⌘ + ⌥ + P + R   as you turn it back on, You should know if it was successful as usually you’ll hear the startup sound twice.

Network Preference File –

If the above method didn’t work then try this, this may well guarantee a 100% proper fix. In guidance for this I’m using Mac OSX 10.6.8 Snow Leopard, newer systems like 10.7 Lion will most likely be the same. Older systems may well differ from what I’ll show you here.

Navigate to /Library/Preferences/SystemConfiguration in Finder  (⌘ + ⇧ + G).  You will find two files there which relates to your network. NetworkInterface.plist and Preferences.plist, you will want to rename them and give them the extension on the end with .bak, so it looks something like this;

You will have to change the current permissions temporarily for that folder so you can rename them just hit  ⌘ + I  to bring up information, then click on the Padlock and enter your password if it asks for one, next click on the + sign and add yourself into the group permissions and change it from Read Only to Read & Write then make your changes to those files. You can go ahead and leave the permissions for that folder or revert them back to their original state to Read Only for you then remove yourself by clicking on your name then click on the  sign. Next all you just have to do is Reboot and should be in working order hopefully, this method should reset and restore AirPort and Ethernet together.

When you’ve done your Reboot, the computer will automatically recreate those Plist files you edited and be in ready normal working conditions. I think it will be safe to delete the old Plist files after the computer has created the new ones, as you shouldn’t need it anymore.