Jump to content

TS Stream device


Lars Andersen

Recommended Posts

Posted

I'm still in the middle of setting up my IPTV system with kodi as frontend.

Right now I'm testing several IPTV providers. Quite often I record two streams at a time. The providers seems to handle this in two ways. A) Either they give me two separate accounts or B ) allowing one account to have two streams running at the same time.

I have at the moment not added any hardware devices and iptv streams are playing ok. But I don't get any warnings if i'm about to schedule a timer that violate the max two streams I'm allowed to use.  Or if I start a live streaming from the tvguide and the system all ready is recording two streams.

I can see there is a hardware device "TS Stream device"  and "DVB IPTV network device". Do I need to setup any of those and how does this work with the A) and B ) senario?

 

 

Posted

Launch DMSTweaker.bat, look for the "Automatically create TS Stream devices on demand" option, uncheck it and read the description at the bottom.

Posted

Ah. Nice ?

 

I disabled "Automatically create TS Stream devices on demand" option. Added two TS streams devices and it seems to do the trick. Thanks!

I'm coming from MediaPortal and argusTV where conflicts are nicely shown in the TV guide.

I will "play" a little with this and try to figure out what is the best way to see and correct recording conflicts. 

Not sure if I can see a conflict in the DVBViewer web TVguide. I can see the conflicting timers in Kodi is marked with error. That is good. 

If anyone have tips and trick to share regarding conflicts then just post it here ?

Posted
vor 2 Stunden schrieb Lars Andersen:

Not sure if I can see a conflict in the DVBViewer web TVguide.

 

You can't. In DVBViewer and the DMS web interface conflicts are shown in the timer list.

 

Posted

Scenario 2 (one account  allowed to have two streams running at the same time) is tested ok. The xmltv guide is looking perfect.

 

Next week I will be testing scenario 1 (a provider with two different accounts).

I'm not 100% sure how to do the setup. Do I need channel groups for this? A and B for the two ts stream devices. 

Regarding the TV guide - ideally only "one" guide should shown. I guess it will be like that when I have paired two channels together.

Is the hardware devices prioritized (from top-down)? If I will add some DVB-T2 usb sticks for a little bunch of channels. I will put that on the top.  

Sorry. Just got a little carried away. I'm asking questions to soon since I have not tried anything yet. I can probably figure this out myself when I start next week. 

 

 

  • 4 weeks later...
Posted

I'm stuck with this: My iptv provider have given me two different accounts so I can record two streams simultaneously.

 So I added two roots in channel editor with exactly the same channels but different address (url's containing the account info).

First root has channel group A and the second group B. Also added two TS stream devices in DMS.

But now I have too switch between the two roots in order to schedule recordings. 

I was hoping for only one guide and the system automatically choose the right ts streams device. A if it's ready and B if A is working.

Can you see what I mean or maybe I have not explained it good enough.


 
Posted
vor 10 Stunden schrieb Lars Andersen:

So I added two roots in channel editor with exactly the same channels but different address (url's containing the account info).

 

How does the account info look like? Is it just the usual http://username:password@example.com...? If not, is only one (contiguous) URL part different, or is the account information split into several parts?

 

vor 10 Stunden schrieb Lars Andersen:

First root has channel group A and the second group B. Also added two TS stream devices in DMS.

But now I have too switch between the two roots in order to schedule recordings. 

 

Automating it requires account information per device, not per URL. Let's say a placeholder for the account information in the URL like @@, and a character string configurable per TS Stream device that replaces @@ when the device is used for the URL. Preparing one device for account A and another one for account B in this way would guarantee that only one stream per account is received. The DMS would automatically use the next free device/account.

 

What do you think about it? DVBViewer/DMS don't provide such a mechanism yet, but it wouldn't be difficult to implement, as far as I can see.

 

Posted
4 hours ago, Griga said:

What do you think about it? DVBViewer/DMS don't provide such a mechanism yet, but it wouldn't be difficult to implement, as far as I can see.

 

I think that might do it! I' very interested in this. I'm ready for testing anytime ?

 

The URL structure is like this where 18022 is identifying the channel:

http://example_iptv.com:8080/username1/password1/18022
http://example_iptv.com:8080/username2/password2/18022

Posted
vor 21 Minuten schrieb Lars Andersen:

http://example_iptv.com:8080/username1/password1/18022

 

OK, that should work with http://example_iptv.com:8080/@@/18022. In the meantime Ive checked the DMS code. There is a string field in the hardware data structure that is unused by TS Stream devices up to now and suitable for storing a new configuration string like username1/password1. It doesn't look like much work. I'll post here when a DMS test version is ready that you can try.

 

Posted
1 hour ago, Griga said:

I'll post here when a DMS test version is ready that you can try.

That would be great to test ?

Posted

Thanks Griga!

 

Something is not working. What I have done is adding "TS Streams device 1" and "TS Streams device 2" in DMS.
In the corresponding new setting ("Replace in URL") I have

 

For TS Streams device 1:
@@=username1/password1 

 

For TS Streams device 2:
@@=username2/password2

 

For both devices all channel groups from A-H is checked (the default setting).
Clicked ok and closed/open DMS again to check that the setting is still ok.

In the channel editor I have exported an ini file with all my channels. Opened the ini file in a text editor and search/replace username/password with @@. Imported the file back. Save/closed DVBViewer. Restarted DMS.
Streams properties of a channel looks like this now http://example_iptv.com:8080/@@/18022.


But the channel wont play in DVBViewer or kodi. Like the @@ parameter is not transferred to the url.

 

Just to check myself I have copy/pasted username1/password1 into the channel editors stream properties like this
http://example_iptv.com:8080/username1/password1/18022
Clicked apply and the channel plays fine.

Posted

I was thinking if this could be part of the issue. 

I have organised the channels in categories. I have a folder structure like this

 

01 Movie

02 Movie

03 Sport

...

...

 

Some channels can be duplicated in more than one folder. 

Posted

There is something I've overlooked... I've only tested it with .m3u8 (HLS) URLs, not with pure transport streams wrapped in HTTP. Since your URLs don't contain a file extension like .ts, the DMS does not know at first what it is. So it starts guessing, opens it as (internet) radio stream, does not replace the @@ in this case, gets no data and therefore never gets to know what it really is.

 

It should work if you tell the DMS what it is by changing http://... in the URLs to ts://... It will also make tuning faster, because the DMS doesn't try the wrong thing first. However, the trick doesn't work with https:// URLS.

 

Anyway, I will add the replace mechanism also for internet radio in order to avoid this kind of trouble and send you an update later.

 

Posted

I can confirm it works so far with ts://   ?

 

I will setup some more recordings for further tests. Looking good!

 

 

Posted

I've uploaded an update. See PM.

 

There is one thing to be considered in future: Your usernames / passwords appear in the svchardware.xml and maybe also in the svcdebug.log, so they will get public if you attach a support.zip in the forum. So before creating it delete / remove your credentials!

 

Posted
On 10/27/2019 at 9:19 AM, Griga said:

I've uploaded an update. See PM.

 

There is one thing to be considered in future: Your usernames / passwords appear in the svchardware.xml and maybe also in the svcdebug.log, so they will get public if you attach a support.zip in the forum. So before creating it delete / remove your credentials!

 

 

Ok. Thanks. Have been testing the latest version that works with http and so far no issues. I have not tested internet radio.

Actually there might be an issue anyway. Kodi is my main frontend and no issues there. Live tv works and also recordings.

Live tv in DVBViewer does not work. I just select a channel from the channel list and the channel do not play (black screen and tried with ts:// and http://). 

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...