8.9 KiB
Streaming Australian TV Channels to a Raspberry Pi
If you’re anything like me, it’s been years since you’ve even thought about hooking an antenna to your television. With so much of the good stuff available by streaming and download, it’s easy go a very long time without even thinking about free-to-air TV.
But every now and again, something comes up – perhaps the cricket, news and current affairs shows, the FIFA World Cup – where the easiest thing would be to just chuck on the telly.
When I first started tinkering with the Raspberry Pi as a gaming and media centre platform, the standard advice for watching broadcast TV always seemed to involve an antenna and a USB TV tuner.
Which I guess is fine if you can be arsed.
But what if you utterly can’t?
What if you bitterly resent the idea of more clutter, more cords to add to the mess, more stuff to buy? What if every USB port is precious and jealously guarded for your keyboard, mouse, game controllers and removable storage? What if the wall port for your roof antenna is in a different room?
That’s all a bit of a hassle for a thing you might use only a few times a year.
In 2018, shouldn’t we just be able to stream free TV from the internet?
It turns out that, yes, we can access legal and high quality TV streams from any Australian IP using Freeview. And thanks to a cool Kodi Add-on by Matt Huisman, it’s now really easy to access this service from a Raspberry Pi.
I’ve tested this to work on a Model 3 B+ running Retropie 4.4 and Kodi 17.6. But it should work similarly for other models and operating systems, so long as you’re using a reasonably up-to-date version of Kodi.
Let’s jump right in.
If You Already Have Kodi Installed
If you’re already using your Raspberry Pi to watch movies and TV shows, there’s a good chance you’ve already installed Kodi.
Most Raspberry Pi operating systems intended for media centre use – such as OSMC or Xbian – come with Kodi installed by default.
It’s fairly easy to get running on other Linux operating systems, and you might have already installed it there too.
If your version of Kodi is more than a year or so old, it might be an idea to update it. The following instructions are written for the interface on Kodi 17 (Krypton).
You can do that by typing the following commands at the command line:
sudo apt-get update
sudo apt-get upgrade
And now you can skip ahead to the next section.
Installing Kodi
Installing Kodi on Retropie and other versions of Raspbian is fairly simple. Other Linux operating systems should be able to run it, perhaps with a bit of coaxing.
You will need to be connected to the internet to install it.
If you’re using something, such as Risc OS – you probably can’t install kodi. You will need to either swap in another SD card, or use a boot loader to boot into a media centre OS for your TV viewing.
Installing Kodi on Retropie
It’s really easy to install Kodi using the Retropie menu system.
Here’s how:
- Navigate to the Retropie main screen – that’s that horizontal menu where you can scroll left and right through all your different consoles
- Select “Retropie”
- Select “Retropie setup”
- Select “Manage Packages”
- Select “Manage Optional Packages”
- Scroll down and select “Kodi”
- Select “Install from Binary”
This will take a minute or two to install. Once it’s installed, you can exit out of the Retropie Setup screen. When you next restart Retropie, you will see Kodi under the “Ports” section of the Retropie main screen.
Installing Kodi on Raspbian
If you’re running Raspbian without Retropie. But that’s okay, because it’s pretty easy to do it from the command line
Just type:
sudo apt-get update
sudo apt-get install kodi
At this point you have a vanilla installation of Kodi. You can run it by typing:
kodi
It’s possible to delve a lot further into setting up Kodi from the command line. Check out this guide if you’re interested.
If not, what you’ve just installed will work just fine.
Installing Kodi on Other Versions of Linux
If you’re using a different flavour of Linux, such as Pidora or Arch Linux ARM, then the above might or might not work – I’m not really sure, because I don’t really use these operating systems.
If you get stuck, it might be worth a look at the how-to guide on the Kodi wiki.
Dual Booting a Media Centre OS
If your operating system of choice isn’t suitable for Kodi – or is just too confusing and difficult to figure out – it might be easiest to use a boot loader for multiple operating systems on the one SD card.
You can set this up using an OS installer like PINN.
Using PINN, you can install a media centre OS like OSMC to use Kodi – it will be installed with the operating system – and then your preferred OS for your other uses.
It’s even possible to move your existing OS over.
Adding Australian TV Channels to Kodi
With Kodi installed and running, you’ve got a pretty good media player for the files on your network and hard drive.
But we need to install an add-on if we want to use it to chuck on the telly. This only takes a minute or so.
Installing Matt Huisman’s Kodi Repository
Ready? Let’s get started.
- Open Kodi
- Click the cog icon at the top left to enter the settings
- Click “System Settings”
- Select “Add-ons”
- Make sure that “Unknown Sources” is enabled
- Right click anywhere on the screen to navigate back to the settings menu
- Click “File Manager”
- Click “Add Source”
- Double-click “Add Source”
- Select “”
- Type in exactly http://k.mjh.nz
- Select “OK”
- Click the text input underneath the label “Enter a name for this media source.”
- Type in exactly MJH
- Click “OK”
- Right click twice anywhere on the screen to navigate back to the main menu
- Select “Add-ons”
- Click “My Add-ons”
- Click “..”
- Click “Install from zip file”
- Click “MJH”
- Select “repository.matthuisman.zip”
The repository is now installing.
If you get stuck with any of this, here’s a video from Matt that starts by installing the repository.
https://www.youtube.com/embed/LWYg6WS1WoU?feature=oembed
Installing the Freeview Australia Add-On
We’re nearly there! Just a few more steps.
- Right click anywhere on the screen a couple of times to navigate back to the main menu
- Select “Add-ons”
- Click “My add-ons”
- Click “..”
- Click “Install from repository”
- Click “MattHuisman.nz Repository”
- Click “Video add-ons”
- Click “AU Freeview”
- Click “Install”
You can now have every free-to-air TV channel in your Add-ons main menu item.
Watching TV
When you want to chuck the telly on, all you need to do is click “AU Freeview” in the Add-ons main menu item. This will give you a list of channels to browse through and select.
If you want, you can also add individual channels to your Favourites menu by right clicking them and selecting “Add to favourites”.
By default you will be watching Melbourne television. You can change the region by right clicking on “AU Freeview” and clicking “settings”.
When you first tune in, it sometimes jumps a bit for a few seconds, but after that it’s pretty smooth.
After spending a few minutes with this, you’ll quickly realise that free-to-air TV hasn’t improved in the years since you last looked at. Unfortunately, I don’t think there’s a fix for that.
But at least it’s there now for when you want it.
via: https://blog.dxmtechsupport.com.au/streaming-australian-tv-channels-to-a-raspberry-pi/
作者:James Mawson 选题:lujun9972 译者:译者ID 校对:校对者ID