Raspberry Pi Multicast TV server
Вставка
- Опубліковано 1 сер 2016
- Setup instructions for turning a Raspberry Pi into an IPTV multicast server.
Tuner is AVerMedia AVerTV Volar Green
There are 2 models, but the good one uses firmware dvb-usb-it9135-02.fw The other one uses dvb-usb-af9035-02.fw but that didn't seem to work as well and got hot. They look the same on the outside though.
ID 07ca:3835 AVerMedia Technologies, Inc. AVerTV Volar Green HD (A835B) - Наука та технологія
New playlist with updated videos can now be found here ua-cam.com/video/oV3dCkmcsF0/v-deo.html
bloody heck, I was just having a quick browse of UA-cam and now I have to check out your other videos.
hahaha, same here....lmao
I was _expecting_ an explanation of what a "multicast server" is, but you just jumped into instruction, leaving me bewildered...
Maybe you need to learn what is tcp/ip, broadcast, multicast, udp, multicast group and rtsp first? This isn't networking 101 video...
holy cow, this is what ive been wanting to do for a long time and struggled to find the right software and get it all set up, wow thank you!
Great, I used to work at a catv headend with this kind of stuff, great memories, cool this guy adapted to a rasppi dev
This is amazing, thank you for this. Never crossed my mind to do this. Keep the vids coming! Ever tried it into kodi?
I love the low power idear.. I uses MythTv back end on a Ubuntu box, mythtv can allow the same dab multi-cast. and use a load of poe pis running openelec as front end's.
how much did it end up costing, if you don't mine me asking.
Straya! whoo!
Thanks heaps, this actually answers some questions I had regarding other projects im working on.
This video is one of the BEST Video for the setting up Multicast TV server, on RPx, BBB, iMX6 in compare to heap loads of others.
Awesome. You answered so many questions for me.
Great Video matey, got my spare RPi2 up and running streaming dvb-t very quickly with an old DVB-T stick I had laying about. My area of Australia wasn't listed so I used the auto-Australia to scan the whole range until it spat the local frequencies out. From there it wasn't rocket science to create some config files with your guide. The next step was to use VLC to also save the stream out to my PC as an .mp4 was very happy this was easy as well. Thanks for taking the time to post, now I want another 4 Raspberry Pi's and tuners :D
That's the way!
I have a new project in mind to redo all of this. Given the surprising popularity of this system, I might present it a bit better.
Do you have proper switching for this, or are you just getting by as is?
Decent networking. RPi2 +DVB-T are out in my shed where the NBN and TV Antenna terminates, feeds into the local switch and travels into the house with an 802.11q trunk to the switch here. 0 Problems multicasting and streaming a 1080p mkv & browsing over the trunk whilst watching TV streaming. Have just worked out how to make use of the rtp stream in Kodi, so its happy days and I'm now looking at testing/trying an antenna pigtail to see if i can use a cheapy SDR as another tuner :)
Is it just because you have lots of bandwidth on your LAN, or you have IGMP snooping set up? (ie, is it still flooding out all of your ports like a broadcast?)
There is of course nothing worth watching on TV these days. I just have this for the technology aspect of it :)
Yeah my home network isn't that busy so flooding it with the multicast isn't really noticeable. I had a couple of RPi2's running spare so I turned one into an ADB-S receiver feeding data to FR24 and another into the DVB-T receiver from your guide. Also more for the tech fun of it, we don't even have an antenna cable plugged into TV's here and all content is delivered via IP. Now I'm going to acquire some more for another couple of little projects although today's rainy day project might be to just task the 1 RPi2 into a DVB-T and ADS-B receiver/blaster/uploader. Edit: 15 mins later, single RPi2 running both :D.. Got a spare again :D
Be careful with multicast over Wi-Fi.. it will travel at a slow rate on home type systems.
As soon as I have all the parts for my next project, I'll upload it.
Very interesting video, Thanks.
Tell me please,
What brand, model and version is your DVB usb dongle?
From the description....
Tuner is AVerMedia AVerTV Volar Green
There are 2 models, but the good one uses firmware dvb-usb-it9135-02.fw The other one uses dvb-usb-af9035-02.fw but that didn't seem to work as well and got hot. They look the same on the outside though.
ID 07ca:3835 AVerMedia Technologies, Inc. AVerTV Volar Green HD (A835B)
you can tell this guy is smart. That keyboard what taking a beating. good stuff
are you changing keyboard every week. ? that enter key must feel a bit pressure
Great video. I'm just learning Linux, so thank you very much.
Are there any set-top recievers (roku, etc..) that you can setup a way to conveniently watch these streams on a regular TV? ie: think of "wife acceptance factor" in the definition of "convenient" :-) Or, can these streams be recorded in the new DVR feature of PLEX?
This is too cool. I can't believe it's that damn easy.
great projects I love it let me ask you a quick question you got a lot of TV tuner and you have a lot of black wire so do you have a switch all all of the black wire and what they call it the switch
You are amazing, thank you for the videos!
Well now... I got 2 PI's sitting on my desk at work for months. You just gave me a use for them. The kids will shit when I set this up, thanks for posting this. 👍
Hi there nice work! have you tested this on DVB-s ? which is a satellite tuner and I am not sure if anyone tried this but nice work again body, I've heard people attempted transcoding using PI but never worked for them, also are you transcoding or just sending the RAW video with DVBlast? and last question is can each RPI handle 2 or 3 channels tanscoding?
hi it's very nice project..
what merk and type your dvb on this lab?
Thank you for this video sir. You just gain another subscriber. :D
Nice little lab you have there!
Oh you know, it goes alright :)
Dude! You blow me away!!! Thumbs Up and already Subscribed!
Is there also a way to stream from dvd/playstation/sky box or whatever.
Thank you for this video. Can I ask - what do you use as an amp and what do you use for a splitter to all those Pi/Tuners you have? Does the 'blaster' pipe out the video 'on demand' or it always streaming on your network? How do you manage all those multicast groups - to make sure you don't reuse ones on different rPis? Is it just a case of having a unique port for each pi? Finally how much bandwidth do they take up when streaming? Is it - 'number Of Channels * 7 Mbps'? Thanks again, John.
Currently I have no RF amp, just a splitter from the antenna on the roof.
The Raspberry pi is constantly outputing all channels. The switch takes care of forwarding to who wants them (look up multicast and IGMP).
Each channel has its own multicast group.
Bandwidth depends on the channel content. For SD channels it's about 2.5Mb/s.
Good video. I'm gonna give this a try!
Using dvb-blast, how many different channels are you able to watch on different clients at a given time?
I've just been starting to look into this to see if this was possible to cut out my cable provider and have been watching several of your videos. Could I ask you a few questions?
1. I'm assuming this would all work in the USA?
2. Are you using a regular antenna as your input feed? I was planning on using a small internal digital antenna.
3. How would I get the video streams from the server to a TV? I only have 1 TV that is a smart TV while others are not. Would I need something like another computer (or RPi) to act as a receiver to feed each TV?
Anyway, thanks for the great information and hopefully it helps me.
Brilliant! A must see!
I can see this having the potential to let you digitally capture over the air broadcasts and perhaps properly configured, logging in from anywhere in the world and watching local TV.
can you make a tour of you network lab?
Veso266 he already did
How is the device called which you use for splitting the different frequencies (last clip with the multiple raspberries)? Or is this bound to your satellite antenna/cable connection.
good stuff, but man take it easy on the keyboard - you're hitting the key like you're trying to kill it. LOL!
...that has been said before. You've got to keep these machines in line you know ;)
Nice! Got it running on my network, but when I was streaming 3 channels at once my son started complaining that his (wireless connected) TV stopped playing Netflix ;-)
Haha... my friend, your network is not multicast capable. Most people don't have the right network infrastructure for high bandwidth multicast traffic.
See this video
ua-cam.com/video/fIg_9wJlQX4/v-deo.html
CWNE88, yes I know but at home I do not have switches that support IGMP snooping.It was just to try if I got it working with my Pi. Unfortunatly we have only 4 FtA channels., the others are encoded. But i was impressed that the Pi2 had no trouble streaming three channels at once.
Hans Combee
Were they all on the same frequency? Which area?
In the Netherlands we only have 3 public and one local TV station unscrambled. The commercial stations are scrambled so you need a subscription (and decoder) to watch. DVB-T is mainly used for the outer area's with lack of cable TV and for bedroom TV's. I had a Chinese TV dongle lying around to play with SDR and such. I never use it to watch TV. The public TV channels are all on the same frequency stream.
Are you using a Raspberry Pi to steam this or some other more powerful box?
There is a sneaky way to get around this multicast problem that I didn't mention. I may do a video on that one day.
Cool video. So each USB TV tuner can stream a maximum of 5 channels to the Raspberry Pi, simultaneously?
Ok daft question here do you need an aerial splitter for all the tv inputs per raspberi
Or one antenna per, probably better to use seperate antennas, TV towers are in four or five different directions where I live.
Could you access that from outside your network, remotely?
Good vid, David
Does the software support streaming via RTMP or only RTP ?
Awesome, very simple too.
Thanks for the great tutorial. However, I gave up trying to run TV server on Pi. Have it set up on a Core 2 duo PC with 3 TV tuners. Am successfully streaming all networks available in HOBART TASMANIA except ABC. I get nothing when I try to view ABC. Any suggestions?
I gota learn this type of stuff!
Keep watching you are learning
Something every day
+HBPowerwall that's my plan
yeah, the best way to learn honestly is to find something you are interested in and delve into the deepest depths of it. I was into gaming, and so was my dad me and him built a computer when I was 9 I also had my own Commodore 64 I would game on. I was the only 9 year old who knew what leisure suit larry and Monkey Island was in my school, I also rocked doom and doom 2.
When I got older (11) I was much poorer and didn't have money for games but Napster and then Bare Share, Lime wire and all of that came out and now I could Download games, in the process I 1. figured people on the internet were jerks cause I got viruses pretty regularly. 2. The Importance of back ups 3. How be comfortable inside a programs fil system say if I was editing a config file or whatever for cracking purposes.
Then when I got to be about 18 I had a job and wanted to build a computer, so I scoured the internet read everything I could find so I could build the best computer I could. I learned how to read spec sheets, what was important, and, more importantly what was important to me.
Through building 3 computers over the years that has blossomed into an interest in servers, compute performance, Raspberry Pi's and coding (to which I am graduating this year with a A.S. in Applied Science Software Engineering) then on to 4 year for B.S. in Computer Science.
all of this because I found something that I was interested in and learned everything I could about that topic, not because it was a job but because it was fun for me to learn and to learn the possibilities of what I could do. the whole time I didn't even think I was learning anything useful beyond just peaking my interest and now, I am finishing my degree that wouldn't have even been possible if it wasn't for Leisure Suit Larry, Monkey Island, Doom 1 & 2, and, Heretic.
TL;DR don't worry about the learning part, just stick with what you interested in and the knowledge will be effortless.
Jerks on the Internet? Never! :)
Haha. It sounds like you attack that keyboard like your trying to kill it.
I know, I was thinking the same thing. It sounds like he is just pounding the hell out of that keyboard!
It's a good example of a love and hate relationship =)
i know hey, his poor enter key
might be a mechanical keyboard, sounds like it
I sometimes type the same, especially when I am typing things that I type regularly, like passwords or certain short sentences.
Very very interesting video, Thanks, Thanks, Thanks, Thanks and 1000xThanks
Tell me please, What brand, model and version is your DVB usb dongle?
Good day. Are these channels you are streaming open or are they payed for/encrypted channels? I'd like to do something like this to not have to pay for TV like DSTV or any other payed subscription type service... Would this setup work?
Are these TV settings now permanent or do you need to redo some of the steps the next time your rpi/laptop/whatever restarts?
Great tutorial mate. Regarding multicast UDP traffic killing the network, are there some best practices (outside of using VLAN's etc) that one should follow? I'm doing a similar thing at the moment except I will be rebroadcasting CCTV streams to OSMC's pi's around the house.
Thanks!
You NEED to have a switch that can do IGMP snooping and avoid flooding to all ports, pure and simple. If you're planning on doing multicast video over Wi-Fi, then if it's general home grade equipment, forget it.
Could you use this multicast server to stream to streaming services like Twitch, Facebook, UA-cam Live at the same time if your connection supported the bandwidth?
I bought an HDHomeRun which works great. This is one of those projects i would do just because I can.
Great video, I just have one thing to note. "apt-get update" will only update the package lists, you need to run "apt-get upgrade" afterwards to download and install new versions of packages.
...if you want to upgrade all the existing stuff, sure. I was only interested in the programs that I was putting on to run this.
Ah okay, fair enough. If you're just making sure you had the latest repo info for dvb-apps and dvblast, that'll do the trick.
Where did you get the firmware file from?
Now I've got to ask, what "switching" would you recommend for this or are you getting at the capacity and quality of the switch? I'm looking at this for when we move house so we can watch FTA on mobile devices etc around the house over WiFi if it's practical. Can we get away with one tuner/pi per network or do we need one per PID if multiple people could be dragging multiple programs from the same transmitter? What minimum Pi would you recommend?
You'll need a switch that can do IGMP, but if you're planning on using it over Wi-Fi then you'll need a Wi-Fi system that can convert multicast to unicast, which is generally enterprise equipment. See my series on tv for an alternative idea using TCP.
0:40 that swift slight of hand doe
Hi, can you do this with any other AVerTV model? I need a DVB-T2 tuner. Please advise.
How many people can view 1 stream using one Raspberry PI?
Thank you
Excellent tutorial. Do you think you can do a video on how to make a tv tuner driver for linux?
Very interesting stuff. Now you have inspired me to try it going the other way and run the tv station off a PI. :-)
That's the way. What country are you in?
I'm in the US, for now. I think I've got most of the bits I need worked out to broadcast to cable from the PI using ffmpeg, with a few glitches here and there. (Cheap decoders and mpeg2 are finicky things.)
It's all for chuckles though, really. I can just imagine running the station off a Raspberry PI instead of a $20,000+ server. I wholeheartedly agree though, TV is just a pathetic thing, but the technology behind it is kind of interesting.
I like your style... but, the US doesn't use DVB-T and I think you're trying to do something different anyway.
People ask why I have this thing... it's just great for testing as it's a high bandwidth multicast video data source. Very handy.
The PA networks firewall you have, well I'm assuming it's firewall-- what model is it? And are you using a business class internet that comes with a static ip?
SORCERY!
this is amazing
where my tv is mounted, there's no antenna cable (old concrete house), can I use one Pi to stream thru my home's wifi? I dont want wires running on the side of the house.
Is this kind of a solution to build iptv channel sharing system for clients at end point?
I operate a private TV headend, are tunersticks and raspberry pi's stable enough for me to convert each of my open qam tv channels to multicast to different company locations? I'm thinking like hauppauge dual tuner stick and a capable raspberry pi to convert 2 channels each. Your thoughts? Thx.
CWNE88
Magnificent !
how many channels could this stream per fequency also could the pi handle more then 1 usb adapter ?
That seems to work very well ... but is this really worth it compared to buying let's say an HD Homerun? .... pi's and tuners add up in cost.
Hi, can I stream the channels also to the Internet? If yes, is it possible to change the bitrate so that it will use less bandwidth?
good to someone from brissy making videos
A fellow PAN fan! Good stuff!
Yeah, I quite like it. I do have one little issue with it though.. ipv6 from ISP via PPP. Something's not happy. Other than that, it does everything I want so far.
Hey mate, great tutorial - couple of questions:
- What is the minimum hardware for this? Raspberry Pi 2 Model B or better? Or can it run on the Original Raspberry Pi?
- As the Raspberry Pi 2 B has 4 USB ports, can it host multiple TV tuners on one device?
See here ua-cam.com/video/fjDbVIWD8YU/v-deo.html
Any TV Tuner will work or only the one you are using ?
Hi where did you get the firmware i am looking for H837 from avermedia and cannot find anything THX! by the wway its great video both part 1 and two!
I'm assuming you can set up a sort of DVR function with a recording server for all the channels being streamed right?
If you put your mind to it, you can do anything :)
yeah that's actually somewhat what I wanted to hear!
Although I suspect that with your results of 100MB/s of data the storage computer would need at least a couple SSD buffers.
Depends what you're trying to do in the real world. Each SD channel is about 4Mb/s. Just do something with mplayer to grab it and save the file, and maybe a web interface to control it. Don't ask me for tips on doing that though!
Can you post the instruction list or the How-to list on all the commands and the reasoning's behind them?
Love the haste. No slow typing and talking lol.
Do u have any blog for details or any another way to go through project details
Hi, not sure if it's been asked or if I missed it in the video, but,
what USB tuner are you using and what distro of linux?
he says hes using raspian
2:33 avermedia
can you do a how to use a pi zero to play from a local samba share (also if it could log into VPN remotely if ppl travel that be great)
Good use for old android boxes based on the rk3066 and rk3188
I get what this does, but why do it? I mean, are TVs typically able to tune into a multicast stream so you can omit your traditional antenna installation? And still use your TVs normal channel list with a normal CH+/- operation like a normal person? :)
Or is the point of this to watch with a PCs instead, but without having to plug the dongle and antenna cable into the PC?
Or would you use some media center hardware running some front-end software that can manage these streams along with your other content and sources? So you need an extra device at each TV?
I'm interested in doing this to omit the antenna installation in our house build (that infrastructure should have been made obsolete a decade ago), but if this doesn't just work with TVs in general then I struggle to see the point, at least in my use case, but maybe I'm missing a greater point?
This most probably isn't for you for a home use case. You already gave a couple of examples where it would be used. Think about large corporate networks, hotels, ISPs, basically anyone that is distributing on a large scale.
I'll be doing some more videos on this in greater detail in the very near future so be sure to check them out.
@@TallPaulTech - Awesome, thank you for the clarification, trying to make sure I wasn't missing something glaringly obvious. :)
Would it work to run with smaller numer of pies which would have 2+ tuners attached? In your setup 2 pies with 3 tuners each should be optimal I guess.
I just tried adding a second adapter. It worked, with each adapter outputting 5 TV stations. The network bandwidth jumped to 36Mb/s.
I'll have to use a newer Pi to test 3 adapters. Given that the NIC is shared with the USB bus internally, it might hit a limit, but I'll try later.
Хорошая вещь ! может пригодиться в хозяйстве =)
How about doing this when you have a lot of encrypted channels which needs a CI-module + card to decrypt? Any solution for that?
I do have a Hauppauge DVB-T USB device and a Hauppauge USB CI device.
Tvheadend might be able to integrate the CI
hmmm...
The TT CT-3650 will work under linux and it has the CI module. See supported cards in Linux here: wiki.openelec.tv/index.php/Supported_TV_Tuners
it's possible to use Elgato DTT deluxe? I'm having some problems with firmware!
Are there any videos about DAB multicast?
Thanks
Great tutorial. I'm in Hobart. Followed your directions, am now scanning. All networks except SBS are detected. SBS is the one I want most. What do I have to do?
Did you use auto-Australia or au-Hobart? Use the auto-Australia which scans every channel.
hi sir,
i need full setup. (Raspberry Pi 3 + TV Card + memory card ).
Make This Raspberry Pi Multicast TV server.
Thanks
So is this what IPTV providers use ie 500 channels = 500 of these Pi's (or similar)??
will that tuner support and shit out multiple channels at once, so different PCs or phone, etc can watch all something different at the same time?
Yes indeed. All channels are output simultaneously. Each tuner will output all the channels that are muxed in that frequency that it's tuned into.
Pricey !! Just to watch TV
Would it be possible to use a isdb t tuner with that?
What is the display used at the end of the video?
If you find those *â* border symbols annoying, you can fix them in that saved PuTTY session. I'm not 100% certain. But, IIRC, I think it's...
_Connection > Data > Terminal-type string_
Change it from *xterm* to *putty*.
It just tells the SSH server which client you're using. I think old servers are normally compatible with XTerm. So PuTTY uses it as the default.
It was great. now how can i broadcast bunch of video files through multicast via Raspberry Pi or a Mikrotik device?
Is it work to use DVB- SS2 USB card to broadcast satellite programs?
Plz Help me.
I take it that each tuner connected to a pi can only be tuned to one station/frequency hence why at the end you mention needing one for each station/frequency and its channels.
is there any cards that can be tuned to all stations/frequencies or is that just a limitation of using a usb dv tuner on a pi in this application?
ps. kudo's on the video, nice little project to test out when I get some free time and a pi.
These particular (and most) devices can only tune one frequency.
Also, the bandwidth of all the tv services on one frequency (at 7MHz RF bandwidth) is about 23Mb/s. All 6 of the Raspberry Pi added together is more than the 100Mb/s NIC on the device.
Having one card/frequency per Raspberry Pi is a comfortable workload for it.
Thanks mate, makes sense.
Do you have so many tuners simply to avoid retuning to view different channels? Wouldn't it be far more network efficient to have a single channel streamed at a time and some way of requesting the channel to be changed? Or are you or some service actually consuming up to all those channels simultaneously?
6 tuners because there are 6 frequencies in use here, giving a total of 20something channels.
This is the most network efficient IF the network is multicast capable. That's extremely important.
This way, the server (Raspberry Pi) only ever has to serve the channel once, so it just feeds it to the switch. The switching infrastructure does the rest of the work, so could stream to many thousands.
If you had them all trying to get an individual stream (unicast) from the Raspberry Pi, it would die after serving a few clients.
CWNE88 thanks for the info. I understand all the networking aspects, I just don't think I appreciate the fact you can't make these switch frequency on demand (when you want to watch a channel on another frequency). I'm comparing this to Freeview tuners in the UK though which might be apples to your oranges
I've done away with that need, as all frequencies are covered, so it stays simple
tvheadend is another great server for dvb/ATSC cards.
Cool project !!!!
"I do not watch TV! TV is just a pathetic thing. I'm in this purely for the technology side of it. "
true!
that is why i love tv. Not for the content, for what it goes behind it.
Sorry if I missed it in the video, but it does a 720p stream? It didn't look like 720p when you open VLC :(
It supports whatever size. It's merely getting data from the antenna, and putting it onto the network. Decoding is the job of the client.
So what about satellite signal could you decode it and send it ?
Sure, if you had a DVB-S adapter that works on Linux. I've never used satellite, but that program includes support for it.
very precise
being that this is multicast every machine gets it without filtering enabled,
say my switches don't support the filtering, and/or I only want 1 machine to receive all the streams and buffer/record them then transmit in RTSP unicast on demand.do I put a standard address in to transmit only in unicast (e.g. 192.168.1.100-200)
or what if I put in the address of the server and change the port number?