Convert your favorite to stream to another STB

  • Introduction.
    -------------


    From OpenWebif it is possible to stream a TV or Radio over your network.
    I have wrote a script that will convert you server STB favorite list of and STB into a stream favorite to place on your client STB.


    Remark: this has been tested between XTrend ET-9000 runnig Openpli 3.0 image with OpenWebif enabled.
    I am not sure that it will work with any other hardware / firmware combination.


    How to install.
    ---------------


    Simply un pack the genstream*.tgz file on your favorite location, be carefull that some temporary files will be created.


    Example:


    In telnet:
    mkdir /media/hdd/genstream


    FTP the file genstream*.tgz to the folder /media/hdd/genstream


    In telnet:
    cd /media/hdd/genstream
    tar -xvzf genstream*.tgz


    As result you will get those files:


    1lamedb.sh "full_path_to_lamedb_folder"
    2genstream.sh "full_path_to_userbouquet_file" "Serveur_IP" "Server_Port"
    3genstream-all.sh "full_path_to_lamedb_and_userbouquet_folder" "Serveur_IP" "Server_Port"
    readme.txt
    lisezmoi.txt


    How to use:
    -----------


    #
    # Script: 1lamedb.sh "full_path_to_lamedb_folder"
    #


    First you need to run the script: ./1lamedb.sh "full_path_to_lamedb_folder"
    this will generate a file called index.idx


    #
    # Example:
    #
    ./1lamedb.sh "/etc/enigma2/"


    To run the script in telnet:


    cd /media/hdd/genstream
    ./1lamedb.sh "/etc/enigma2/"


    This script should only be run again when you lamedb is changed (after a satellite scan for example).


    #
    # Script: ./2genstream.sh
    #


    This script will help you to convert a normal (DVB-S(2), DVB-C or DVB-T) favorite into an "ip/stream" favorite. Turning your STB into a server.
    The newly created favorite will need to be installed on the client STB.


    Example 1:
    You have 2 STBs one is connected to the satellite and the other on is not, with script 2genstream.sh you can convert your satellite connected STB favorite(s) into a stream compliant userbouquet to be installed on the other STB not connected to satellite.


    Example 2:
    You have an STB with a DVB-C card and the other one doesn't have one. You can decide to start stream a DVB-C channel from the STB that doesn't have a DVB-C tuner.



    ./2genstream.sh "Path_To_userbouquet_file" "SERVER_IP" "SERVER_PORT"


    "Path_To_userbouquet_file" is the full path to access the userbouquet file that you want to convert
    "SERVER_IP" is either the serveur IP address on your LAN or the Serveur Name.
    "SERVER_PORT" is an optional parameter by default it is 8001 (default OpenWebif streaming port)


    Example:
    On the STB that will act as server launch:


    ./1lamedb.sh "/etc/enigma2/"
    ./2genstream.sh "/etc/enigma2/userbouquet.csat_hd.tv" "192.168.1.203"


    This will generate a file called: userbouquet.stream-csat_hd.tv


    Transfer this file to your client STB into /etc/enigma2 folder.
    Edit file: /etc/enigma2/bouquets.tv accordingly
    Add the following line in it:


    #SERVICE 1:7:1:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.stream-csat_hd.tv" ORDER BY bouquet


    For radio edit: /etc/enigma2/bouquets.radio
    Add, for example, the following line in it:


    #SERVICE 1:7:2:0:0:0:0:0:0:0:FROM BOUQUET "userbouquet.stream-france.radio" ORDER BY bouquet




    Open a telnet session and type
    init 4; sleep 5; init 3


    Remark: the generated file will have the same name as the original name but with ".stream-" added in the middle.


    #
    # Script: ./3genstream-all.sh "full_path_to_userbouquet_folder" "SERVER_IP" "SERVER_PORT"
    #


    "full_path_to_userbouquet_folder" is the full path to access the userbouquet files that you want to convert
    "SERVER_IP" is either the serveur IP address on your LAN or the Serveur Name.
    "SERVER_PORT" is an optional parameter by default it is 8001 (default OpenWebif streaming port)


    Will process all the userbouquet file in the folder specified by: "full_path_to_userbouquet_folder"
    This script will call: ./1lamedb.sh and ./2genstream.sh



    The files bouquets.tv.stream and bouquets.radio.stream will be created to show you what to add on the client STB.


    Transfert by FTP the files userbouquet.stream-* into the folder /etc/enigma2 on the client STB.
    Edit the file: /etc/enigma2/bouquets.tv
    And add the lines like mentionned in the file: bouquets.tv.stream


    For a radio favorites edit: /etc/enigma2/bouquets.radio
    And add the lines like mentionned in the the file: bouquets.radio.stream


    BE CAREFULL: be sure to have a blank last line in this file otherwhise your new userbouquet will appears but it will look empty.


    Open a telnet session and type
    init 4; sleep 5; init 3


    #
    # 9cleanall.sh
    #


    Delete the files generated by the scripts.
    This won't delete the scripts.


    Enjoy, Pr2

Your hub for IPTV & streaming support.

Get help with Android apps, Smart TV setup, m3u playlists, channel lists, and finding reliable live streaming websites. Master IPTV streaming on all devices. Find downloads, setup tutorials, and community support for apps, Smart TVs, and m3u channel lists.