DVB-rewrite merged
Added by Adam Sutton almost 11 years ago
All,
Some of you have already noticed that the new DVB rewrite has been merged with master. Apologies that I forgot to post something about it before doing the merge.
The DVB engine has been completely re-written, and this has required a complete shift in configuration. Far too significant for the code to easily auto-migrate.
Clearly its caused some significant confusion to some users, since things are quite different and configuration appears to disappear etc..
I would strongly recommend that unless you're interested in testing out and helping to improve the new code, which is certainly a departure from the old and therefore still needs time to mature before its ready for release, that you switch to something more stable. To appease those that were used to the previous state of master I build a new DEB and placed it in the beta repository.
For those that still want to try the new code, you have 2 options:
1. Start again, completely fresh DVB configuration. There are some advantages to this, not least to me as it'll tell me what might be broken/difficult to understand about that. However I can appreciate that many of you, myself included, may have nicely crafted channel lists etc.. and not want to lose these.
2. Migrate the configuration, this is currently a semi-automatic process. Given the rather dramatic change in DVB configuration, it has been decided that an external script will do the migration (or at least most of it). Eventually I might build this into the DEB install (at least for the standard location), but not yet.
Migration¶
To run the migration script you will need to download the script (I've not yet included into the deb), https://github.com/tvheadend/tvheadend/raw/master/support/conf_migrate.py
./conf_migrate.py PATH_TO_TVHEADEND_CONF_FOLDER
Note: the above is not .hts, but the tvheadend subfolder.
After this all your channels and related configuration will have been migrated. All DVB multiplexes and services should also have been migrated. However you will need to re-configure your tuners (including Satellite config). Unfortunately migrating these isn't trivial, but setup shouldn't be too hard. See the next section for detail and just skip the bits you don't need.
New Setup¶
For the new DVB code, things have been re-organised with the hope of trying to make it easier to manage the DVB configuration. In particular where users have multiple tuners. The DVB config is now split into 4 sections:
- Inputs - DVB tuners
- Networks - The collection of muxes that a tuner can receive (or in the case of DVB-S, can receive from a given orbital position)
- Muxes - Standard DVB definition, a collection of services sent by the provider
- Services - Standard DVB definition, a given service/channel within a mux
To configure a single DVB network do the following:
1. Go to Configuration -> DVB Inputs -> Networks
2. Click "Add"
3. Select the type (DVB-S/T/C, ATSC)
4. Fill in a name, just for your own sanity and debug output. You can usually leave the defaults.
5. If you want to add a pre-configured network (set of muxes) then select from drop down.
6. If not, the go to Configuration -> DVB Inputs -> Muxes
7. Click "Add"
8. Select the network you're adding to.
9. Fill in the Mux settings (if you don't know these, you probably should use a pre-configured set)
This will be roughly the point at which the migration script will leave you, for those that have gone down that route.
10. Go to Configuration -> DVB Inputs -> Tuners
11. Select the relevant frontend device and tick enabled.
12. For non-DVB-S you should select network you want to link to this tuner.
13. If this is DVB-S then select the type of DiseqC arrangement (if you don't know what that should be, just select LNB only, default).
14. Hit Save
15. For DVB-S you need to select the appropriate sub-entry for your DiseqC config (either switchport or LNB)
16. Select appropriate network
17. Hit Save
If you have multiple tuners receiving the same network, then repeat the steps for each.
For those with DVB-S rotors or uncommitted switches I'm afraid the config is still a bit cumbersome. I will try and document it, but for now best to pop along to #hts.
If you go to the "Network" configuration tab, you should be able to watch the progress of the initial scan.
Well I'm sure there will still be plenty of teething problems, and I wouldn't expect a 4.0 release for sometime yet. But hopefully this will be enough to get people going.
Adam
Replies (44)
RE: DVB-rewrite merged - Added by Serge Buzzzzer almost 11 years ago
Hi.
conf_migrate.py not support iptvservices folder.
150 channels will add by hand again- need a lot of time. :(
Maybe has some solution?
thanks
RE: DVB-rewrite merged - Added by h w almost 11 years ago
But I have a friend, who uses the Sundtek USB DVB-C Adapter. I works fine also, but after every tvheadend restart he gets a new card with a strange cardID.
1. card: (null)/??/0000:0001
2. card: (null)/+??/0000:0001
3. card: (null)/K??/0000:0001
4. card: (null)/{??/0000:0001TVheadend and the USB SundTek Adapter are running on a Raspberry Pi. And it works, except the issue with these never ending new adapters
It seems that TVheadend fails to get the BUS Adress, right? If you need more data, I could get it.
Same Problem here .... What can we do??
RE: DVB-rewrite merged - Added by Adam Sutton almost 11 years ago
Guys,
I am aware of the problem I've just not had a chance to look into it.
Adam
RE: DVB-rewrite merged - Added by h w almost 11 years ago
Thanks Adam ... I'll deactivate hte sundtek Adapter in the meantime...
RE: DVB-rewrite merged - Added by piotr w almost 11 years ago
Just updated to latest beta. When I edit network and save I get:
2013-12-29 14:52:12.762 settings: Unable to create dir "/home/hts/.hts/tvheadend/input/linuxdvb/networks/474a59a6d88242b2b3b66f1eacf2210a/muxes/4ebece0a866dda1a6f69252b03f68297": Permission denied
2013-12-29 14:52:12.762 settings: Unable to create dir "/home/hts/.hts/tvheadend/input/linuxdvb/networks/474a59a6d88242b2b3b66f1eacf2210a/muxes/4852caa4c730293975e8523333d37772": Permission denied
2013-12-29 14:52:12.763 settings: Unable to create dir "/home/hts/.hts/tvheadend/input/linuxdvb/networks/474a59a6d88242b2b3b66f1eacf2210a/muxes/33d1f6e15fc3c5a3e262a25f36fb12c0": Permission denied
2013-12-29 14:52:12.763 settings: Unable to create dir "/home/hts/.hts/tvheadend/input/linuxdvb/networks/474a59a6d88242b2b3b66f1eacf2210a/muxes/7323bf0e9990036d6ba49196ad321f91": Permission denied
RE: DVB-rewrite merged - Added by Zoltan Arvai almost 11 years ago
Great work
I set up a raspberry pi with the current trunk version and it works almost fine.
Some notice:
- I miss the old "use ServiceID as channel number" option or a way to set the order of channels on server side for playlists.
- Switching between channels seems to slower a bit. I use separate tuners for each muxes (1 network = 1 mux = 1 tuner). With the old revisions this setup garanteed instant switching. Maybe current "keep fe open" is not fully implemented.
RE: DVB-rewrite merged - Added by Mario D almost 11 years ago
I'm wondering how far the the stable release is the actual trunk version? Is it just a bug-fixing process missing (but it looks not so bad) or there are other features comming?
Thanks all for this great piece of software!
RE: DVB-rewrite merged - Added by Adam Sutton almost 11 years ago
Mario,
At this stage there is no intention to develop any significant new features. It'll mostly be bug fixing, tinkering and possible if someone else develops a cool new feature and submits a PR I might consider it.
Adam
RE: DVB-rewrite merged - Added by Mario D almost 11 years ago
Adam Sutton wrote:
At this stage there is no intention to develop any significant new features. It'll mostly be bug fixing, tinkering and possible if someone else develops a cool new feature and submits a PR I might consider it.
Thank you for the quick answer. How stable is the actual code, in your opinion? Much work?
RE: DVB-rewrite merged - Added by Adam Sutton almost 11 years ago
I've been running it since just before Xmas, given that up to then I'd been running a 3.4 build (maybe some minor updates) from about the same time last year, that should tell you what you need to know
Of course there is a tendency for things to work better on my own system than others, since if stuff breaks on mine I have greater visibility and I always fix it quickly, but quite a few people have been running it for some time now.
I'd always recommend backing up config, and potentially running a local test copy if you're really paranoid, before switching over.
Adam
RE: DVB-rewrite merged - Added by matthew pollard almost 11 years ago
I thought I would try this again. I tried it again from scratch(building the latest from git) and I still had the same problem. This is using a cubox with a DiBcom 7000PC : DVB-T and Montage Technology DS3000/TS2020 : DVB-S. The problem was the dvb-s found services but the second tuner(dvb-t) I enabled did not.
I tried it using the migration script and both tuners are working fine now. Although when I try and view a programme that is on at the moment the 'play now' button does not show up. If I play the channels from the services tab using vlc they work ok.
I have still kept all previous configs and build but I might keep this version running for while and see what happens.
Cheers
Matthew
RE: DVB-rewrite merged - Added by Tony Chen almost 11 years ago
Wait, so if I have a HDHomeRun Dual that has two tuners, then I'd map both tuners to the same network since they have the exact same muxes and services?
I tried that originally and I couldn't watch anything while the DVR recorded something with the 1st tuner. I'll turn on debug and see if I can see exactly what it's doing, but can you confirm that I'm supposed to map both tuners to the same network?
Thanks!
Tony
Adam Sutton wrote:
1. You can map channels/services in multiple ways:
a. from channels page, you can hit map and it will try and auto-map all services.
b. Or for existing channels you can double click the services cell for that channel and manually select teh services to map.c. from the services page, you can hit map. If you have any selected services, it will map just those. If you don't have anything selected it will map all.
d. And you can also manually map by double clicking the channels cell to map to a specific set of channels.2. With the new UI (and it's far from perfect) you can now both sort and filter most both columns (sorting is limited to a single column). Double click on a heading to sort (and again to reverse the sort). To filter, hover over the heading and click little drop down arrow, select filter and enter appropriate info.
The "Services" tab includes a "Network" column, and the filter is regexp based (you can also enter basic string match). So you can enter say "5w" if that's what the network name is and that's all you'll get. Then select and map, one shortcoming atm, is that you can't use the "map all" option. As it ignores the filtering (that's unlikely to change anytime soon, my UI skills are not good).
3. You have no direct control over which services are available on which tuners, this is fundamental to the concept of a single service within a network (to remove duplication and simplify multi-tuner setups). This is only marginally different from pre-merge, in that you could choose not to map a specific tuners values to a channel. This was done to keep things simple and it was decided this was an unusual requirement.
Having said that, its not impossible to achieve, its just that you end up having to fall back to a configuration that is much more like the previous way of doing things. You will basically have to set-up a network for each tuner, you will presumably end up with the same muxes in each (though you have the choice not to do this) and then you can choose which services to map to channels. Just make sure you name your networks sensibly so you can clearly identify what you need to select from.
4. Already explained this is perfectly possible.
So far you've not managed to list anything not possible. Only one thing that may, if you have very particular requirements, end up being no better off than in the old framework.
Adam
RE: DVB-rewrite merged - Added by Latty Jordan over 10 years ago
I can't see this mentioned anywhere, so why not ask. Does TVHeadend now officially support hot adding and removing of USB tuners? I just plugged in a USB DVB-S tuner into a computer with TVH running. CPU usage shot up for a couple of minutes (it's not the fastest of machines) and when it settled, a refresh of the TVH web config page showed that tuner present. No restart of the service needed. Pulling the same tuner out however did not lead to it being removed from the list of available tuners, but neither did it crash the whole computer. Maybe I needed to wait longer.
RE: DVB-rewrite merged - Added by d p over 10 years ago
In the new configuration where are the channel names stored ? they used to be stored in the channel file in the channels folder.
I made a utility that converts all the channels from tvheadend into xml files, so that I can view the streams on my smart tv.
I just updated to the latest build, and have set everything up again. But I can get where the streams are, but the channel names are no longer available.
Can you tell me how the channel names are stored ?Thanks
RE: DVB-rewrite merged - Added by Prof Yaffle over 10 years ago
Channel names are taken from the corresponding services unless redefined.
So, the only record of names you have is in
/home/hts/.hts/tvheadend/input/linuxdvb/networks/<id>/muxes/<id>/services/<id>
Unless you rename something, in which case the new name will be stored in
/home/hts/.hts/tvheadend/channel/<id>
RE: DVB-rewrite merged - Added by d p over 10 years ago
Prof Yaffle wrote:
Channel names are taken from the corresponding services unless redefined.
So, the only record of names you have is in
/home/hts/.hts/tvheadend/input/linuxdvb/networks/<id>/muxes/<id>/services/<id>
Unless you rename something, in which case the new name will be stored in
/home/hts/.hts/tvheadend/channel/<id>
Legend thanks.
RE: DVB-rewrite merged - Added by Prof Yaffle over 10 years ago
Have a look at this script to see how the author identified channels and matched them to icons - might give you some clues.
RE: DVB-rewrite merged - Added by singhudit singhudit over 3 years ago
i realy like the update you have done with separat pages for muxes, so its possible to use gui now for config mux and services. with over 4500 entrys the old way with everything in 1 list made tvheadend crash..
- « Previous
- 1
- 2
- Next »