I Made My Own TV Channel

SilkRoad Technology
124 followers
#technology #highend #gadget #robot #apple #iphone #macbookpro #gaming #accessories #gears #samsung #tesla
0:00 Personal Channel Creation
4:58 Building Blue Dog TV
7:19 Dynamic Content with Smart Collections
10:04 Adding Real TV Elements
11:33 Expanding to Multiple Channels
I miss television.
There, I said it.
With every show ever created at your fingertips,
deciding what to watch involves hours of scrolling,
reading endless reviews, and weighing pros and cons
just to ultimately end up on one of the same handful of series
you've been binge-watching repeatedly for years now.
Not having to make that big decision on what to watch,
sitting there and letting it play mindlessly, it's comforting.
And honestly, between having a toddler to take care of,
a whole company to run, and daily trips to the gym,
that sort of comfort is exactly what I need right now.
But with cable TV where all you get is 50% ads,
a bunch of trash series,
and an exorbitant price tag of $600 to $1,200 a year,
it got me thinking,
couldn't I just host my own TV?
Turns out, I can.
And I can use my existing hardware and a Plex library to do it.
Meaning, for a whopping $0,
we can free ourselves from the bondages of slavery
to our decision paralysis demons that haunt us.
Not only that, I can make multiple channels.
I can manage my own schedules,
decide on what I want to watch during ad breaks.
Should I choose to have ads at all?
Welcome back, you wouldn't steal a car.
The secret sauce is called Ursatz TV,
and it lets you build out your own custom IPTV channels from scratch.
While it did do that fairly well on the surface,
it's a system that became complex very quickly
and has caused me to gain a new appreciation
for all the people behind the scenes
that used to schedule TV channels manually.
But will this process be worth it,
or will it end up being a huge waste of time?
Only future me knows the answer to that.
So my team and I got started on this deep journey
of making our own self-hosted TV channel.
Since this is just for our team,
we should probably be in the native land of Linux,
but we've decided that we're bucking the trend a bit
of previous Homelab videos by running Windows.
Just for now, just as a treat,
because we know a lot of people run Plex on their Windows PCs too.
So I thought, hey, why not?
Installing Ursatz was simple enough.
You unzip the files to your preferred destination,
you run it, and everything you need to access
is available through your web browser,
just like it would be for Plex or Jellyfin.
Getting Plex connected involves some signing in,
setting up the libraries to sync,
and apparently Jellyfin and MB need an additional API key,
but that's not much more involved.
The media took a few minutes to get populated,
but once it was there,
we were ready to delve into a new world of simulated broadcast television.
Looking through the menu, there was channels,
which meant you could create a new channel.
That's when I noticed a little warning icon
down in the health checks portion of the menu.
Apparently, Ursatz hasn't quite figured out
how to automatically detect and set hardware acceleration,
which it seems like it should,
but if, like me, you don't know exactly
which of the four hardware acceleration types your GPU can use,
the health check error will let you know if you guess it incorrectly.
Since we're using a small Intel Arc GPU in this Dell Optiplex,
the correct answer is QSB,
but if you're on NVIDIA, you want NVENC, or N-V-E-N-C.
I don't know.
And if you're on AMD, you want either AMF if you're on Windows,
or VA-API on Linux.
Now, that's complicated.
With all the preliminary setup out of the way,
we could finally get to the real meat and potatoes,
setting up whatever channels you please.
Now, what should I do first?
An entire channel of just every Jurassic Park movie ever?
Or maybe I could be self-obsessed
and make a channel that exclusively plays switch and click videos.
That wouldn't be totally insane, right?
One other thing that's made my life a thousand times better
for the past four years is today's sponsor, Kinsta.
Kinsta is a managed hosting provider for WordPress
that I've personally used on our website,
and I absolutely love it.
For starters, we can run our website
while literally knowing nothing about programming,
web development, backend, frontend, anything.
Because Kinsta has a whole team of real people
ready to help you solve any problem you have with your website.
Like, they're just sitting there,
ready to help whenever a problem arises,
no matter how stupid or difficult it is.
They fix it on the spot.
They also help make sure your website is running like a speed demon,
because with a website, speed is everything.
It means better rankings, more of those sweet conversions,
and a user experience that feels magical.
And with Kinsta, you could get up to a 200% speed boost.
Plus, Kinsta will protect you and your website with a firewall
that puts the Great Wall of China to shame.
It has DDoS protection and a lot of other fancy security features
like isolated container technology
and up to 99.99% SLA backend uptime guarantees.
Who doesn't love that?
So if you're looking for a beefcake of a hosting provider,
skip all the sketchy ones and go straight for Kinsta like I did.
You can get your first month free plus a 30-day money back guarantee.
So it's completely risk-free.
Whatever we went with,
we needed to figure out how to build out a channel with a schedule.
So go to schedules, you create a new schedule,
and there are all the options for adding a new scheduled item.
Wow, I said scheduled a lot.
That's where the vastness of what ersatz can do started to become apparent.
So a schedule item is basically a single video in a playlist.
Its start time can be set to either dynamic or fixed.
With a dynamic start time,
it'll play right after the previous video finishes
like it would in a standard music playlist.
With a fixed start time,
it would be put on a timer to start either strictly at the given time
or flexibly move to the top of the playlist at the start time
waiting for the currently playing video to finish.
But ersatz doesn't actually schedule individual videos in the traditional sense
where it'll play season 3 episode 7 when the clock strikes at the top of the hour.
Instead, you have to tell it to pick from a collection of videos.
This can be a TV series, a season of TV series,
or any number of different collections that you build manually.
We wanted to keep things simple for our first channel,
so we opted to add a couple of television shows as scheduled items
set to play back to shuffle so that it plays a random episode
and we moved on.
After completing all the scheduled items, we hit save
and it just kind of sat there.
Hello? Earth to ersatz?
Turns out what we needed to do was add something called a playout.
Now what the heck is a playout?
I've never heard that.
So from what I've gathered between reading the docs and setting up this channel,
ersatz is a bunch of different kinds of database entries
that are all connected to one another in a chain.
So a playout is the connection between the schedule to the channel.
The whole workflow is pretty confusing and I'm honestly not sure I understand it still,
but all that I really had to do was create a playout
and then connect it to the schedule and the channel and ignore the rest
and we would be cooking.
To create a playout, there were options for classic, block, sequential, and scripted.
Now those names don't particularly mean anything to me
and after many empty drop downs, I was quite confused.
So I just picked the first option and prayed for the best.
Classic, it turns out, is what we needed to link a schedule to a channel.
Hallelujah! It works!
With that, we had our first channel up and playing.
Blue Dog TV.
It's a channel for shows that have blue dogs in them.
Blue's Clues, Bluey, Huckleberry Hound, all playing one after another
on a loop forever.
So to actually watch Blue Dog TV,
we needed something called a fancy M3U and XML TV links at the top of the page.
Now we could do this with Plex Live TV by setting it up as a custom tuner,
but I missed the lifetime deal for Plex Pass this year
and I will buy it next year when I can, I promise.
So instead, we're just using a generic IPTV player.
Most of the free offerings for Windows and mobile leave something to be desired,
but there's a decent one for Linux called Hypnotix
that is made by the Linux Mint team.
If you're using Jellyfin or MB or if you have a Plex Pass,
it's easiest just to use the built-in system.
For our case today, we're simply going to use IPTVnator
because it's free and open source.
Our first channel worked, which is great,
but it's not a true television experience
unless I can flip through the channel.
Sit there and just flip through.
So for that, we need something a little more complex.
Now that's where smart collections come in.
Ursatz has a search bar at the top of the page
and the documentation says that the search bar is pretty advanced.
It uses something called Lucene syntax,
which allows you to search different fields
and add in operators like AND and OR.
So what different fields, you might be wondering?
With all the metadata that Plex provides,
you can easily search by the usual suspects like genre and tag,
as well as more granular things like release date, the studio,
or even an actor's name.
Once you've done an advanced search like this,
you can save the search as a smart collection
so that anything that gets added to your media library in the future
automatically finds its way into your channel's rotation
if it fits your search criteria.
So I decided I want a Monty Python channel.
Why not?
Not only will it show Monty Python,
but also anything that any of the actors from Monty Python have been in.
Sure, Shrek 2 doesn't necessarily feel like a Monty Python movie,
but the king is played by John Cheese,
so why shouldn't it count?
I made two smart collections, one for shows, one for movies.
Then I went through all the steps as I did for Blue Dog TV.
I just love that name.
But this time, I decided to change it up a little bit
to add in some more variety between shows and movies.
It's the spice of life, right?
I created one schedule item for shows,
set my Python shows smart collection,
and changed playout mode from one to multiple,
setting the multiple count to five
so it will play five episodes of Flying Circus before playing a movie.
So I added another schedule item for movies,
keeping the playout mode as one,
created my channel, connected the classic playout,
and bam!
Monty Python television was open for my viewing pleasure
and anybody on the team.
Then to add another little element to make it feel a little bit more like real TV,
I went to the watermark section and created a new watermark
to show up in the bottom right corner of the screen.
It's extra, I know, but it makes it real.
There were a ton of options for placement, opacity,
as well as the option to have it appear on screen
at a set interval.
There was still something missing, something very important.
Commercials.
Admittedly, these are probably not something I'm going to keep,
but it's a fun novelty to have.
It's nostalgic, you know, you got commercials on TV.
Commercials function differently than TV shows or movies in a few different ways.
First of all, I'm not going to fill my Plex library with old commercials
since they need to be stored separately.
Artists Ads makes this quite easy
as it really lets you mix and match your media sources.
By simply going to local media sources,
I could add my folder of ripped piracy warnings
as the other video type to keep them separate from movies and shows.
But adding them as a schedule item was once again not an obvious task.
I had to set the collection type to search
and then use the library name field in order to get them in the schedule.
So this brought me to the second way that commercials need to be different.
They aren't supposed to show up on the TV schedule
that's seen by the viewer.
They're commercials.
This is easy to do as a schedule item
simply by changing the guide mode from normal to filler.
That way it knows to treat these silly advertisements as filler for the schedule.
And now we've got a channel with ads.
Yay!
With that, we had a few working channels
and we started billing out more over the coming days using smart searches.
We created a channel that only shows movies and episodes
added to our library in the past month or week.
We created a search episode with Halloween in the plot summary
to create a channel that only shows spooky holiday specials.
We also created a basic movie channel that loops through all the movies in our library
so we can tune in halfway through and miss important plot points.
That's the beauty of it.
We also decided that on a few channels instead of commercials,
we'd rather watch music videos.
The result of all this that we ended up searching through my library far less
and watching a lot more.
By creating channels with more variety but similar themes,
I didn't find myself burning out on shows after an episode or two.
It was a really enjoyable experience.
And that's all without getting into the much finer details of what our sets can do.
So block schedules allow you to show only certain series in certain blocks of time.
With well-defined start times and filler videos to get rid of that dead air
that might happen if movies or episodes don't fit in perfectly.
There's also the sequential schedule
that can do scheduling for a channel using text-based settings files,
giving you an easy way to back up all your settings for a channel and change it on the fly.
And there's scripted schedules that lets you control a channel schedule using Python.
Yeah, if you know how to code, you can do just about anything.
The standard streaming experience is great if you know what you want to see,
but deciding on something to watch can be a burden.
This has given me a new way to enjoy the media that I've spent
so much time collecting and curating.
And now instead of just collecting and curating, I'm watching it.
I'm actually enjoying it, doing what it was meant to be used for, entertainment.
Check out Kinsta, today's sponsor,
in the link below to upgrade your web hosting and get your first month free.
So I hope you try this out to make your own TV channels.
Heck, download all the switch and click videos and put it on a channel for your viewing pleasure.
But if you want to see more ways to rip DVDs and host your own media on your own servers,
watch this video right here.
Bye.
