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 35

Thread: Building picons using Bash on Ubuntu on Windows

  1. #16
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,771
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by birdman View Post
    You probably need to install packages librsvg2-bin (for rsvg) and pngquant.
    For some reason it doesn't check this at the start when it does check about a dozen other things.
    And imagemagick.

    Not sure why you can't find a log file, though. I'll run through thing son Ubuntu for Windows and see what happens for me.
    I had no problems. The log files were where it said they were.
    I take it you are looking for them under Ubuntu, not Windows?

    One thing I did notice was that the Ubuntu on Windows is painfully slow at running this.
    When building one set of picons (if they're just for one user there's no point in building more than one set) this was the Ubuntu on Windows log:

    Log file located at: /tmp/tmp.8PQ25iVTnG.picons.log

    20:33:51 - No "svgconverter.conf" file found in "build-input", using default file!
    20:33:51 - Version: 2019-02-01--20-33-51
    20:33:51 - Checking index
    20:34:01 - Checking logos
    This svg contains text or a png image: 4fashion.default.svg
    This svg contains text or a png image: 4fashion.light.svg
    This svg contains text or a png image: 4music-rikinubran.default.svg
    The following logo is an svg, but has one or more png alternatives: pfc.default.svg
    The following logo is an svg, but has one or more png alternatives: rtlplus-mathecraki.white.svg
    The following logo is an svg, but has one or more png alternatives: sat1.white.svg
    The following logo is an svg, but has one or more png alternatives: vox.white.svg
    20:38:35 - Creating symlinks
    20:38:36 -----------------------------------------------------------
    20:38:36 - Creating picons: snp.400x240-390x230.light.on.transparent
    20:40:50 - Creating binary packages: snp.400x240-390x230.light.on.transparent
    20:41:16 - FINISHED!
    That took 7m 25s.

    When running it directly on Ubuntu on the same hardware (I have a dual-boot laptop) this is the log:

    Log file located at: /tmp/tmp.cIA72deY70.picons.log

    20:45:19 - No "svgconverter.conf" file found in "build-input", using default file!
    20:45:19 - Version: 2019-02-01--00-50-00
    20:45:19 - Checking index
    20:45:19 - Checking logos
    This svg contains text or a png image: 4fashion.default.svg
    This svg contains text or a png image: 4fashion.light.svg
    This svg contains text or a png image: 4music-rikinubran.default.svg
    The following logo is an svg, but has one or more png alternatives: pfc.default.svg
    The following logo is an svg, but has one or more png alternatives: rtlplus-mathecraki.white.svg
    The following logo is an svg, but has one or more png alternatives: sat1.white.svg
    The following logo is an svg, but has one or more png alternatives: vox.white.svg
    20:45:24 - Creating symlinks
    20:45:24 -----------------------------------------------------------
    20:45:24 - Creating picons: snp.400x240-390x230.light.on.transparent
    20:45:48 - Creating binary packages: snp.400x240-390x230.light.on.transparent
    20:45:50 - FINISHED!
    Just 31s - a factor of 15 quicker.

    I know Windows has to emulate things, but that indicates something on Windows is just slowwww... (file-system access?).
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  2. The Following User Says Thank You to birdman For This Useful Post:

    dsayers (02-02-19)

  3. #17
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,756
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by birdman View Post
    And imagemagick.
    How do I install these?

    The first command

    sudo apt-get install git binutils pngquant imagemagick librsvg2-bin jq

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package librsvg2-bin is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Unable to locate package pngquant
    E: Package 'librsvg2-bin' has no installation candidate
    E: Unable to locate package jq

    I had no problems. The log files were where it said they were.
    I take it you are looking for them under Ubuntu, not Windows?
    Im not sure how to find them under Ubuntu

  4. #18
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,771
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by dsayers View Post
    The first command

    sudo apt-get install git binutils pngquant imagemagick librsvg2-bin jq

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package librsvg2-bin is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Unable to locate package pngquant
    E: Package 'librsvg2-bin' has no installation candidate
    E: Unable to locate package jq
    Odd - it all worked for me without problem. I take it you are running the 16.04 (Xenial) release there?


    Im not sure how to find them under Ubuntu
    Given that they are created under Ubuntu the pathnames given will be for the Ubuntu setup. I don't think that they are easily accessible from Windows itself.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

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

    dsayers (02-02-19)

  6. #19
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,756
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Ok after a bit of googling and serching loads of pages I used sudo apt-get update

    This took a while to update but then I could run sudo apt-get install git binutils pngquant imagemagick librsvg2-bin jq

    Then I could run ./2-build-picons.sh snp

    I guess the Ubuntu on windows store is outdated.

    This is now taking its time building them as it seems to be building different types so far

    Code:
    05:51:23 - No "svgconverter.conf" file found in "build-input", using default file!
    05:51:24 - Version: 2019-02-01--00-50-00
    05:51:24 - Checking index
    05:51:35 - Checking logos
    This svg contains text or a png image: 4fashion.default.svg
    This svg contains text or a png image: 4fashion.light.svg
    This svg contains text or a png image: 4music-rikinubran.default.svg
    
    The following logo is an svg, but has one or more png alternatives: pfc.default.svg
    The following logo is an svg, but has one or more png alternatives: rtlplus-mathecraki.white.svg
    The following logo is an svg, but has one or more png alternatives: sat1.white.svg
    The following logo is an svg, but has one or more png alternatives: vox.white.svg
    05:55:59 - Creating symlinks
    05:56:03 - No "backgrounds.conf" file found in "build-input", using default file!
    05:56:04 -----------------------------------------------------------
    05:56:04 - Creating picons: snp.100x60-86x46.dark.on.blue
    06:05:25 - Creating binary packages: snp.100x60-86x46.dark.on.blue
    06:07:49 -----------------------------------------------------------
    06:07:49 - Creating picons: snp.100x60-86x46.dark.on.reflection
               Converting logo: 155/640
    Im confused why its only saying converting 640 when I have both Sky UK and Cable UK bouquets in my enigma2 folder

    I can play around with the backgrounds.conf to choose what picons I want in the future, thanks for the help when done I will upload some here to see what users think.
    Last edited by dsayers; 02-02-19 at 07:15.

  7. #20
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,756
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Is there a way to safely stop the build process or just close Ubuntu? Just in case I for get to add backgrounds.conf next time

  8. #21
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,756
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Ok only took 4 hours and 38 minuets to build SNP Picons lol

    Code:
    ./2-build-picons.sh snp
    
    Log file located at: /tmp/tmp.4g2L8rX6Q2.picons.log
    
    05:51:23 - No "svgconverter.conf" file found in "build-input", using default file!
    05:51:24 - Version: 2019-02-01--00-50-00
    05:51:24 - Checking index
    05:51:35 - Checking logos
    This svg contains text or a png image: 4fashion.default.svg
    This svg contains text or a png image: 4fashion.light.svg
    This svg contains text or a png image: 4music-rikinubran.default.svg
    
    The following logo is an svg, but has one or more png alternatives: pfc.default.svg
    The following logo is an svg, but has one or more png alternatives: rtlplus-mathecraki.white.svg
    The following logo is an svg, but has one or more png alternatives: sat1.white.svg
    The following logo is an svg, but has one or more png alternatives: vox.white.svg
    05:55:59 - Creating symlinks
    05:56:03 - No "backgrounds.conf" file found in "build-input", using default file!
    05:56:04 -----------------------------------------------------------
    05:56:04 - Creating picons: snp.100x60-86x46.dark.on.blue
    06:05:25 - Creating binary packages: snp.100x60-86x46.dark.on.blue
    06:07:49 -----------------------------------------------------------
    06:07:49 - Creating picons: snp.100x60-86x46.dark.on.reflection
    06:14:45 - Creating binary packages: snp.100x60-86x46.dark.on.reflection
    06:17:26 -----------------------------------------------------------
    06:17:26 - Creating picons: snp.100x60-86x46.dark.on.transparent
    06:24:20 - Creating binary packages: snp.100x60-86x46.dark.on.transparent
    06:27:02 -----------------------------------------------------------
    06:27:02 - Creating picons: snp.100x60-86x46.dark.on.white
    06:33:33 - Creating binary packages: snp.100x60-86x46.dark.on.white
    06:37:00 -----------------------------------------------------------
    06:37:00 - Creating picons: snp.100x60-86x46.light.on.black
    06:44:52 - Creating binary packages: snp.100x60-86x46.light.on.black
    06:47:09 -----------------------------------------------------------
    06:47:09 - Creating picons: snp.100x60-86x46.light.on.transparent
    06:53:57 - Creating binary packages: snp.100x60-86x46.light.on.transparent
    06:56:52 -----------------------------------------------------------
    06:56:53 - Creating picons: snp.220x132-190x102.dark.on.blue
    07:34:57 - Creating binary packages: snp.220x132-190x102.dark.on.blue
    
    07:37:53 -----------------------------------------------------------
    07:37:53 - Creating picons: snp.220x132-190x102.dark.on.reflection
    07:45:38 - Creating binary packages: snp.220x132-190x102.dark.on.reflection
    07:48:09 -----------------------------------------------------------
    07:48:09 - Creating picons: snp.220x132-190x102.dark.on.transparent
    07:55:01 - Creating binary packages: snp.220x132-190x102.dark.on.transparent
    07:57:23 -----------------------------------------------------------
    07:57:23 - Creating picons: snp.220x132-220x132.dark.on.transparent
    08:04:28 - Creating binary packages: snp.220x132-220x132.dark.on.transparent
    
    08:06:54 -----------------------------------------------------------
    08:06:54 - Creating picons: snp.220x132-190x102.dark.on.white
    08:13:18 - Creating binary packages: snp.220x132-190x102.dark.on.white
    08:15:44 -----------------------------------------------------------
    08:15:44 - Creating picons: snp.220x132-190x102.light.on.black
    08:22:24 - Creating binary packages: snp.220x132-190x102.light.on.black
    08:24:46 -----------------------------------------------------------
    08:24:46 - Creating picons: snp.220x132-190x102.light.on.transparent
    08:31:06 - Creating binary packages: snp.220x132-190x102.light.on.transparent
    08:34:30 -----------------------------------------------------------
    08:34:30 - Creating picons: snp.220x132-220x132.light.on.transparent
    08:43:04 - Creating binary packages: snp.220x132-220x132.light.on.transparent
    08:46:03 -----------------------------------------------------------
    08:46:03 - Creating picons: snp.256x256-226x226.light.on.transparent
    08:55:22 - Creating binary packages: snp.256x256-226x226.light.on.transparent
    08:58:18 -----------------------------------------------------------
    08:58:19 - Creating picons: snp.256x256-226x226.dark.on.reflection
    09:09:21 - Creating binary packages: snp.256x256-226x226.dark.on.reflection
    09:12:04 -----------------------------------------------------------
    09:12:04 - Creating picons: snp.256x256-226x226.light.on.grey
    09:20:16 - Creating binary packages: snp.256x256-226x226.light.on.grey
    09:22:59 -----------------------------------------------------------
    09:22:59 - Creating picons: snp.400x170-370x140.dark.on.transparent
    09:30:53 - Creating binary packages: snp.400x170-370x140.dark.on.transparent
    09:33:10 -----------------------------------------------------------
    09:33:10 - Creating picons: snp.400x240-370x210.dark.on.blue
    09:41:57 - Creating binary packages: snp.400x240-370x210.dark.on.blue
    09:44:27 -----------------------------------------------------------
    09:44:28 - Creating picons: snp.400x240-370x210.light.on.transparent
    09:53:52 - Creating binary packages: snp.400x240-370x210.light.on.transparent
    09:56:27 -----------------------------------------------------------
    09:56:27 - Creating picons: snp.400x240-400x240.light.on.transparent
    10:05:48 - Creating binary packages: snp.400x240-400x240.light.on.transparent
    10:09:32 -----------------------------------------------------------
    10:09:32 - Creating picons: snp.800x450-760x410.light.on.transparent
    10:23:58 - Creating binary packages: snp.800x450-760x410.light.on.transparent
    10:27:16 - FINISHED!
    Here is a few it made based on sat 282 and virgin uk.

    Thanks for the help. I may try installing linux on multiboot when I get chance to see how it preforms on that.

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

    Willo3092 (02-02-19)

  10. #22
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,339
    Thanks
    6,422
    Thanked 9,146 Times in 6,224 Posts
    You should be able to stop with "ctrl" & "c"

    Did you intentionally build just for the UK? If so, might as well as add UK Terrestrial services to your lamedb file.

    Thank you for uploading

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

    dsayers (02-02-19)

  12. #23
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,756
    Thanks
    473
    Thanked 607 Times in 433 Posts
    I just uploaded my enigma2 folder to build-input so I assume it will build what services I have in there and I only have sat 282, Cable UK and IPTV in enigma2 folder I gather it would only build picons for 282 and cable unless im wrong

  13. #24
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,339
    Thanks
    6,422
    Thanked 9,146 Times in 6,224 Posts
    You can build all the picons that are in the repository if you want. But you are looking at going over 20MB for some of the packs. Don't transfer your lamedb


    ./2-build-picons.sh snp-full

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

    dsayers (02-02-19)

  15. #25
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,771
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by dsayers View Post
    This is now taking its time building them as it seems to be building different types so far
    If these are for yourself then you only need one type built.

    You should copy backgrounds.conf to build-input and edit it so that only the set you wish to build is not commented out.

    Im confused why its only saying converting 640 when I have both Sky UK and Cable UK bouquets in my enigma2 folder
    It can only build picons for channels where it has an image of the channel logo. It doesn't have a base image for all channels.
    I have a script which just builds a picon with red italic text of the channel name for any that are missing the official logo.
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  16. The Following User Says Thank You to birdman For This Useful Post:

    dsayers (02-02-19)

  17. #26
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,771
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by dsayers View Post
    I cant find a log file
    They files used can be found under:
    \Windows\Users\<<login-name>>\AppData\Local\lxss
    The temp dir is:
    rootfs\tmp
    under that.

    NOTE: that some of those dirs are hidden (Appdata and lxss at least).
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  18. The Following User Says Thank You to birdman For This Useful Post:

    dsayers (02-02-19)

  19. #27
    birdman's Avatar
    Title
    Moderator
    Join Date
    Sep 2014
    Location
    Hitchin, UK
    Posts
    7,771
    Thanks
    235
    Thanked 1,656 Times in 1,305 Posts
    Quote Originally Posted by birdman View Post
    I have a script which just builds a picon with red italic text of the channel name for any that are missing the official logo.
    Which, in case anyone is interested, is this:


    Code:
    #!/bin/sh
    #
    # This will create a picon with a transparent background containing the
    # given text.
    # Useful as if a picon is missing for a channel then running through the
    # channels on Vix results in the previous picon being used for any
    # channel with no picon.
    #
    file="$1"
    shift
    get_text() {
        echo ${1+"$@"}
    }
    text=`get_text ${1+"$@"}`
    
    # Set the overall size (extent) first.
    # Later set the size, which is what the text will auto-fill
    #
    convert \
        -extent 400x240 \
        -background black \
        -transparent black \
        -fill red3 \
        -font Bookman-DemiItalic \
        -size 360x200 \
        -gravity center \
        caption:"$text" \
        ${file}.png
    Run as:
    ./channel_picon.sh picon-name Name of TV Channel
    to produce picon-name.png.

    convert is part of ImageMagick.
    The 400x240 is actual size of the png image, while the 360x200 is how much of it the text occupies (so there's a border).
    If you wanted black text youd need to change the background/transparent colour (these just need to be the same colour - just not the fill one).
    MiracleBox Prem Twin HD - 2@DVB-T2 + Xtrend et8000 - 5(incl. 2 different USBs)@DVB-T2[terrestrial - UK Freeview HD, Sandy Heath] - LAN/USB-stick/HDD

  20. The Following User Says Thank You to birdman For This Useful Post:

    dsayers (02-02-19)

  21. #28
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,756
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by birdman View Post
    If these are for yourself then you only need one type built.

    You should copy backgrounds.conf to build-input and edit it so that only the set you wish to build is not commented out.
    Thanks, I have created a picon plugin that downloads picon IPK,s from my github branch that I share. I download ocram picons and upload them to github and script downloads them. I want to start building my own picons for sat 282 and cable uk and upload them to github for the script to download them reducing the size.

    I just need to work around local cable picon names but ill leave that for another day. I have now added a backgrounds.conf to comment out the sets I dont want to build.
    Last edited by dsayers; 02-02-19 at 16:13.

  22. The Following User Says Thank You to dsayers For This Useful Post:

    twol (02-02-19)

  23. #29
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,339
    Thanks
    6,422
    Thanked 9,146 Times in 6,224 Posts
    Is using your own fork where you have an index file for UK services an option? Or manually replacing the index file before running a build?

  24. #30
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,756
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by abu baniaz View Post
    Is using your own fork where you have an index file for UK services an option? Or manually replacing the index file before running a build?
    Do you mean snp.index in build-source? I would have to delete all unwanted channel names?

    Ill take a look when I get chance.

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

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.