Convert your favorite files to .M3U to watch TV and to zap from VLC

There is 1 reply in this Thread which was already clicked 13,240 times. The last Post () by puma45.

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


    From OpenWebif it is possible to stream a TV or Radio over your network.


    This script will convert your favorite files (userbouquet) in the .m3u format for VLC.
    You will then have all your favorite channels into VLC, no more need to zap from the Webif.


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


    Simply unpack the genm3u*.tgz file on your favorite location, be careful that some files will be created.


    Example:


    In telnet:
    mkdir /media/hdd/genm3u


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


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


    As result you will get those files:


    1lamedb.sh "full_path_to_lamedb_folder"
    2genm3u.sh "full_path_to_userbouquet_file" "Serveur_IP" "Server_Port"
    3genm3u-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/genm3u
    ./1lamedb.sh "/etc/enigma2/"


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


    #
    # Script: ./2genm3u.sh
    #


    This script will help you to convert a normal (DVB-S(2), DVB-C or DVB-T) into a .m3u playlist for VLC.
    This will turn your STB into a server and you will be able to zap right from VLC.


    ./2genm3u.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 server IP address on your LAN or the Server 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/"
    ./2genm3u.sh "/etc/enigma2/userbouquet.csat_hd.tv" "192.168.1.203"


    This will generate a file: playlist-Internal_name_of_your_favorite.m3u


    Where Internal_name_of_your_favorite is the name like displayed in Enigma2 channel list.


    Transfer this file to your client and open it up with VLC.


    #
    # Script: ./3genm3u-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 ./2genm3u.sh


    Transfert all the playlist-*.m3u files on the client and open the file of your choice with VLC.


    TIP: in the VLC playlist enable Artist view, this will show you the favourite name.


    Remark: file userbouquet.LastScanned.tv is ignored.


    #
    # 9cleanall.sh
    #


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


    VLC homepage: VideoLAN - VLC: Official site - Free multimedia solutions for all OS!


    Enjoy, Pr2

  • Hi
    great work,
    any way to make a automatic "zap then stream" commande ? for exemple i want to use the m3u list with a iptv app on my android device....?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!