Posted: . At: 8:50 AM. This was 4 years ago. Post ID: 14228
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


Stream television online with mpv on Linux.


The MPV media player can easily stream television online. There are a few TV streams here: http://i.mjh.nz/au/.

Here is an example.

──[jason@192.168.1.2][~]
└──╼  ╼ $ mpv https://i.mjh.nz/au/Sydney/tv.320203000301.m3u8

This is to watch SBS in Sydney. The quality is perfect. This is a godsend. We should be able to stream any television online. Using a TV is not always practical and having a stream instead is much more practical. It also allows the user to capture a webm of an interesting section of a show. This is very easy when using a script.

If the file here: https://i.mjh.nz/au/Sydney/raw-tv.m3u8 is saved on an Android phone and then you open it with MPV, you may then watch TV on Android. This works perfectly, then you may switch channels by pressing the next and back arrows to switch to the next and previous items in the playlist. This is great for watching Australian TV on the move.

Changing to next playlist item in MPV.
Changing to next playlist item in MPV.

Click the tiny arrows to change to the next playlist item as shown above, and then as seen below, the playlist items will be displayed, this allows channel changing when using a playlist in MPV.

Playlist items visible in MPV.
Playlist items visible in MPV.

So, this works very well. Instead of using a DVB dongle to try and pick up TV in Australia, you can just stream TV online.

https://securitronlinux.com/debian-testing/how-to-encode-a-section-of-a-movie-to-a-webm-file-with-mpv/. The only problem with this is there is no timeshifting, but this is a small price to pay for the ability to stream TV online. So at least your Covid 19 segregation will be slightly more enjoyable if you can catch up on Married At First Sight.

Channel TEN Sydney: http://i.mjh.nz/au/Sydney/raw-tv.m3u8.

Channel TEN Melbourne: http://i.mjh.nz/au/Melbourne/raw-tv.m3u8.

Channel 9 South Australia: https://9now-live.akamaized.net/hls/live/708960/ch9-adl/master1.m3u8.

Free to air television Perth: http://i.mjh.nz/au/Perth/raw-tv.m3u8. Open this file in VI and you can list all of the channels available.
Read the file like this.

4.4 Fri Apr 10 jason@Yog-Sothoth 1: $ wget -O- -q http://i.mjh.nz/au/Perth/raw-tv.m3u8 | vi -
Vim: Reading from stdin...

More TV streams and information on here: http://i.mjh.nz/au/.

Enjoy.


1 thought on “Stream television online with mpv on Linux.”

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.