Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 2 of 3 FirstFirst 123 LastLast
Results 16 to 30 of 37

Thread: ABM with use of IPTV Streams

  1. #16
    dfox's Avatar
    Title
    Forum Supporter
    Donated Member
    Join Date
    Nov 2012
    Posts
    441
    Thanks
    111
    Thanked 40 Times in 36 Posts
    Is there anyway to enable recording using service reference 5001?

  2. #17

    Title
    Junior Member
    Join Date
    Aug 2016
    Posts
    22
    Thanks
    4
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by bbbuk View Post
    I've had a look and I believe I've got it to read service types (ie 4097) from custommix file via adding appropriate code here.

    However, I'm stuck on how to mention this in def bouquetservicesline.

    There surely has to be away but I don't know much about ABM I'm afraid.

    I'll just keeping hard-coding the 4097 with iptv streams instead.

    Thanks anyway.
    Hi is there anyway you can update these files to work with abm 3.0? As it keeps crashing at the point of bouquet generation.

  3. #18
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,578
    Thanks
    2,004
    Thanked 4,925 Times in 3,259 Posts
    Quote Originally Posted by gmanpanthro View Post
    Hi is there anyway you can update these files to work with abm 3.0? As it keeps crashing at the point of bouquet generation.
    Please start your own thread. You need to post your debug log with extra debug enabled. And any other files involved including CustomMix file.
    Help keep OpenViX servers online.Please donate!

  4. #19
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,578
    Thanks
    2,004
    Thanked 4,925 Times in 3,259 Posts
    @bbbuk, sorry I forgot about this thread. Abu reminded me about your PR.

    Lets try a bit of a different way. Code is attached.

    Stream type is set in the xml file. So to add a stream type do it like this...

    Code:
    <stream url="http://stream.source:port/live/username/F36/password/308.ts" target="701" name="our name 1" streamtype="4097" />
    So stream type is case by case, not global. Are you happy with this format?
    Attached Files Attached Files
    Help keep OpenViX servers online.Please donate!

  5. The Following User Says Thank You to Huevos For This Useful Post:

    bbbuk (26-11-19)

  6. #20
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,578
    Thanks
    2,004
    Thanked 4,925 Times in 3,259 Posts
    "Stream type" is a bad description. Should be "playback type".

    Anyway, try it and see if the concept works for you.
    Help keep OpenViX servers online.Please donate!

  7. #21

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jun 2014
    Posts
    1,321
    Thanks
    610
    Thanked 418 Times in 270 Posts
    Quote Originally Posted by Huevos View Post
    @bbbuk, sorry I forgot about this thread. Abu reminded me about your PR.

    Lets try a bit of a different way. Code is attached.

    Stream type is set in the xml file. So to add a stream type do it like this...

    Code:
    <stream url="http://stream.source:port/live/username/F36/password/308.ts" target="701" name="our name 1" streamtype="4097" />
    So stream type is case by case, not global. Are you happy with this format?
    I like that . Provides more flexibility if want certain service refs on different streams.

    I'm using my modded version currently so I'll try this likely at weekend from unmodified version before applying your POC.

    With regards to description, I think something like ServiceRef or ServiceRefType. For consistency really as the original introduction of recording IPTV in E2 uses ServiceReference (see original git).

  8. #22
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,578
    Thanks
    2,004
    Thanked 4,925 Times in 3,259 Posts
    All the other attributes are lower case so we need to stick to that.

    Give it a test, then we will decide what to name it.

    Also maybe limit allowed types to 1, 4097, 5001 and 5002.
    Help keep OpenViX servers online.Please donate!

  9. The Following User Says Thank You to Huevos For This Useful Post:

    bbbuk (27-11-19)

  10. #23

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jun 2014
    Posts
    1,321
    Thanks
    610
    Thanked 418 Times in 270 Posts
    Okay tried this with vanilla ABM except for your two modded files and crashed at end of scan.

    Relevant part of crash log:-
    Code:
    <   260.929> [ABM-DvbScanner] Reading transponders...
    <   264.859> [gRC] main thread is non-idle! display spinner!
    <   266.247> [ABM-DvbScanner] Scan complete, netid:  None
    <   266.257> [ABM-DvbScanner] Added/Updated 74 transponders with network_id = 0x20
    <   266.257> [ABM-DvbScanner] Reading services (SKY)...
    <   270.370> [ABM-DvbScanner] Read 606 services with bouquet_id = 0x1001
    <   270.370> [ABM-DvbScanner] Reading services extra info...
    <   285.513> [ABM-DvbScanner] Read extra info for 733 services
    <   285.523> [ABM-Manager][read] sat_282_sky_uk, Done
    <   285.535> [eDVBFrontend1] set dynamic current limiting
    <   285.632> [ABM-Manager][save] Saving...
    <   285.643> [ABM-Manager][save] Bouquets to hide: {'sat_282_sky_uk': [1050]}
    <   285.643> [ABM-Manager][save] TV bouquets to keep: []
    <   285.643> [ABM-Manager][save] Radio bouquets to keep: []
    <   285.644> [ABM-Manager][save] Add provider prefix to bouqets: False
    <   285.644> [ABM-BouquetsWriter] Writing lamedb...
    <   286.979> [ABM-BouquetsWriter] Wrote 62 transponders and 733 services
    <   287.033> [ABM-Tools][customLCN] No custom video LCN file for sat_282_sky_uk.
    <   287.042> [ABM-Tools][customLCN] No custom radio LCN file for sat_282_sky_uk.
    <   287.123> [ABM-Tools][customMix] Reading CustomMix file for sat_282_sky_uk.
    <   287.148> Traceback (most recent call last):
    <   287.148>   File "/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/scanner/main.py", line 523, in doBuildIndex
    <   287.148>   File "/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/scanner/manager.py", line 151, in save
    <   287.149>   File "/usr/lib/enigma2/python/Plugins/SystemPlugins/AutoBouquetsMaker/scanner/tools.py", line 192, in customMix
    <   287.149>     if streamtype and "stream" in customised["video"][target]: # if a stream was added above, a custom streamtype may also be added
    <   287.149> KeyError: 170
    <   287.149> [ePyObject] (CallObject(<bound method AutoBouquetsMaker.doBuildIndex of <class 'Plugins.SystemPlugins.AutoBouquetsMaker.scanner.main.AutoBouquetsMaker'>>,()) failed)
    When I removed the custom xml file there is no crash.

    I added to end of custom xml file the following tag info:-
    Code:
    target="106" streamtype="4097" />

  11. #24
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,337
    Thanks
    6,421
    Thanked 9,146 Times in 6,224 Posts
    Can you run your mix file through an XML validator please?

  12. #25

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jun 2014
    Posts
    1,321
    Thanks
    610
    Thanked 418 Times in 270 Posts
    Passed xml validation check.

    I have just noticed that in @Huevos example xml file, it also has a "name" tag in addition to the "streamtype" tag he mentioned. The "name" tag is new and isn't in my xml file as all I did was add "streamtype" tag. Eg:

    Code:
    <stream url="http://stream.source:port/live/username/F36/password/106" target="106" streamtype="4097" />

  13. #26
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,337
    Thanks
    6,421
    Thanked 9,146 Times in 6,224 Posts
    This worked for me

    Code:
    <custommix>
    
        <streams>
            <stream url="http%3a//xxxxxxxx.ts" target="107" streamtype="4097" />
        </streams>
    </custommix>

  14. The Following User Says Thank You to abu baniaz For This Useful Post:

    bbbuk (30-11-19)

  15. #27

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jun 2014
    Posts
    1,321
    Thanks
    610
    Thanked 418 Times in 270 Posts
    Ok, thanks

    Edited xml so it had just one stream and it was okay. I'll slowly add the other streams to see where it falls over but I suspect I know where it will. I'll post back with results...

  16. #28

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jun 2014
    Posts
    1,321
    Thanks
    610
    Thanked 418 Times in 270 Posts
    Found what error was eventually

    It's what happens when the "target" channel doesn't exist so in my error above channel 170 no longer exists (most likely moved).

    Commented out that and one or two others and works fine. I'll have to figure out what these channels were/are and where they've moved to.

    Could it be coded so that it gracefully handles situations where target channel doesn't exist like ignoring that line and moves on to next one?

  17. #29
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,578
    Thanks
    2,004
    Thanked 4,925 Times in 3,259 Posts
    Quote Originally Posted by bbbuk View Post
    Found what error was eventually

    It's what happens when the "target" channel doesn't exist so in my error above channel 170 no longer exists (most likely moved).

    Commented out that and one or two others and works fine. I'll have to figure out what these channels were/are and where they've moved to.

    Could it be coded so that it gracefully handles situations where target channel doesn't exist like ignoring that line and moves on to next one?
    Ok, so we need some sort of sanity test...

    Remove...
    Code:
    if streamtype and "stream" in customised["video"][target]:
    Replace with...
    Code:
    if streamtype and target and target in customised["video"] and "stream" in customised["video"][target]:
    Not tested.
    Help keep OpenViX servers online.Please donate!

  18. #30

    Title
    Forum Supporter
    Donated Member
    Join Date
    Jun 2014
    Posts
    1,321
    Thanks
    610
    Thanked 418 Times in 270 Posts
    Quote Originally Posted by Huevos View Post
    Ok, so we need some sort of sanity test...

    Remove...
    Code:
    if streamtype and "stream" in customised["video"][target]:
    Replace with...
    Code:
    if streamtype and target and target in customised["video"] and "stream" in customised["video"][target]:
    That works, thanks.

    Things tested:-
    * Defaults to servicereftype of 1 when tag not present
    * Doesn't crash if target stream doesn't exist
    * Can have different service ref types for different channels

    Thanks again

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.