Raspberry Pi Multicast TV server

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
first thing I'm going to do is format the memory card so I'll just use this SD formatter program just to make sure it's all clean and good okay that's done make sure that now put the actual raspbian image on there just open up the file and write that now I'm not going to make your wait while it does that so I'll just skip ahead a bit okay that's done then we've got the raspbian image on there so we can connect to it and set things up now that's done just take the card and put it in the Raspberry Pi we're ready to put that on the network now going connect the Raspberry Pi to the network in my little network lab here so just connect it there into one of the ports on the switch and plug in the power now that will get an address from the DHCP server then we can SSH into it and do everything remotely now we can connect to the Raspberry Pi remotely we've SSH so just as a sage with these an N PI and the address that I got from the DHCP server and type yes please we now the password is raspberry and then we're in the first thing you do to sudo razz be config bring tough and coughing first thing you want to do is expand that filesystem change your password if you want looking at the Boot Options I just keep it on a console because we're not going to have a monitor on this and again you can you could set the timezone and all your country settings but I'm not going to bother for this demonstration pretty much it and host I'll give it a host name so we know what we're talking about I'll call it the TV server I think that'll do for now everything else is pretty fine as standard so I'll say ok to that and reboot now once that's rebooted we'll connect again set up the specifics for the actual TV server now for the TV tuner I've got this sum over media USB TV TV tuner so I'm just going to get the antenna and plug it into one of the USB ports and we'll go back to the console now we've got the TV tuner connected to the Raspberry Pi will connect up to it again and we'll look for that card in the system scriptdb be what we'll notice is it's found it but it's complaining about missing firmware right here it needs that file to run so you have to find the file whatever card you're using it will need a particular piece of firmware so for this one I have it here and I'm just going to copy that from my oven Xbox to the TV server ok so it's on there now so if I go back to it you can see it there now we need to put it in the right spot so just move it to little bit the way just reboot that now okay now that's rebooted we'll connect to it again and we'll have a look for that device again and this time we see in warm state that means it's found it and it's good so it's happy now and also to confirm you can check the devil directory for a DVD device and there it is so now we can make use of it who we do that we'll just update the system now there's a couple of programs we want to install first is DVB apps now this has just some utilities to do DVB kind of things to scan for channels and such okay the other one there's the actual DVD blast program this is the program that streams the UDP multicast down now that that's done we need to scan our area for what's available if you go to university now that that's done we need to scan our area for what's available and if you look in using shared dvvv legacy dt you'll see basically lots of cities that have different parameters so for me I mean Brisbane so I'll just show you what's in that file users shared now basically the six frequencies being transmitted in Brisbane and the parameters that it uses to scan so we run a program called scan and we use that file of parameters and you of course use wherever you are and what this does you see it turns in okay the first frequency it found these services we've got all the ABC surfaces and it'll keep going now Channel seven now you've got 772 these other ones The Nine Network ones so all of these on the same frequency or these on the same frequency and all up there are six frequencies here these channel tens frequency they will have SPS and lastly Bruce 31 now the output is this big bunch of parameters but what it basically has I'll use channel 10 is our demo so you see its name and the frequency a whole bunch of parameters and things and then right at the end is the PID that's the ID for that that channel if you like so general one is PID one six zero one channel 10 1 6 0 5 so we need that information later to create our multicast streams so for now I'll run that come out again and just put out put it two channels kampf instead of printing it to the screen it'll make a file of all that information again if it is so now we have a file called channels conf that contains all the parameters we need just for our reference what we need to do now is make a config file for DV bus to use so we'll make one for channel 10 and 11 so to go back to that channels comp file just have a look we have a look down for channel 10 and 11 we'll see ok shell 10 has a PID of 1 6 0 5 channel 11 has PID of 1 6 0 8 we're going to be on the same frequency so the frequency is the same because the can turn on each in one frequency at a time so what I'll do is I'll make a file called c1 cig 10 and the format is is like this you pick your multicast group - the first one I pick port 20 thousand one can't quite remember what that was for when I was 1 and now the the PID so for 10 it was 1605 you can put a little coin in it like another one different group for for 11 which was one 6:08 and that's just a simple config file for DB blast now to run it you DV blast adapter 0 now that was that device if you go back to slash dev slash DVB it'll be adapt to 0 I'm a frequency which again you can find here it's that frequency there that you scan the config file now that's the config we just made so we use config 10 modulation a Quayle 64 again this is in this information up here you can find it bandwidth is seven megahertz that's what we use in Australia ear for EPG data and that's about it if you run that you'll see it turns them in and that is now putting your DP data out into the network ok we can test that now with VLC and if we open the network stream use RTP and the multicast group that we made in our config file for channel 10 and just play that and in it comes and it's even got the title of the TV program and we had channel 11 as well on a different multicast group so folk a different multicast group will get the other channel as well so there they are now you have to make sure that your network can handle multicast because if it's not set up properly with proper switching you will a network very quickly I'll talk about that in another video bye one thing to be aware of if you look at the route on the Raspberry Pi it's got its local network here that we expect and for everything else has a default gateway that's fine and that's why it works now if we didn't have let's say that default gateway if we just had an IP address on our own network the multicast wouldn't leave the raspberry pi because the multicast group is not part of this out okay so you know like everything else that looks at this routing table first and if it doesn't have a destination that it can send it to it won't put it out anywhere so this works because I've got a gateway set up so just puts it out on the interface anyway but you at least have to define some sort of route for multicast traffic to fall into so that it actually leaves the Raspberry Pi in the first place you may want to get more raspberry PI's and TV tuners so you can stream all the stations out simultaneously to the network
Info
Channel: Tall Paul Tech
Views: 1,463,135
Rating: undefined out of 5
Keywords: IPTV, Raspberry Pi, Multicast
Id: KI0LuIcFM98
Channel Id: undefined
Length: 11min 39sec (699 seconds)
Published: Tue Aug 02 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.