Posts by tvgurudude

    Hey Guys,


    Simple file for users to install your channels without the need to reboot the mars box, Anyone that knows the mars will know you have to reboot the box 1 or 2 times for the new pm.db to load properly but with this bat file no reboot is needed and channels are loaded instantly.


    first open cmd on your computer and cd to location of adb_tool folder.
    Example:
    cd C:\adb_tool


    get the local ip of your mars box example 192.168.1.65


    then run:
    adb connect 192.168.1.65


    goto the adb_tool folder where you have fastchannel.bat and click it, your new channels should now be active in your Mars Tv app.


    IMPORTANT:
    your pm.db must be in the same folder as the fastchannel.bat

    Hey Guys,


    Brand new to enimga2 but need adivce on how to backup channels, I'm working on a simple plugin for users to download my pre-configured channel and genres.


    So basically I setup up my box running enigma2 with a fresh satellite scan, I orginize my channels and remove dups etc then I zip the folders that contain the files needed so users can click download to extract them so they have the same setup. Thats the plan anyway:)


    There is probably 101 plugins that do this already but I am only doing to learn how to write plugins for enimga.


    Once I setup my channels is it just a case of copying /etc/enimga2? Running VIX


    Any advice on what to backup would be great.


    (I'm not looking for advice on creating a plugin just what folders are needed to backup so other users can use my setup for channels etc)


    ---Update---
    1. The plugin I will be making will have 1 click functions to install a new kodi build I pre-setup
    2. 1 click install of my bouquets
    3. anything else useful to make life easier for myself and users


    Cheers

    Thanks for guide lambo, never seen the sqlitestudio before so cheers for that.


    Here is some extra help to speed up finding all the id's of a particular set of channels.


    Say you want to find all the id's of Sky Sports, 1st open SQL Editor by pressing button shown in image below


    d8395e7e12fd1c1380.jpg


    Then enter this SQL query


    SELECT progRowID FROM pm_prog_t0 WHERE acServiceName LIKE '%Sky Sports%';


    Change the Text between the % % to find what you are looking for, if you only want to find the id's for Sky Sports 1 you would do %Sky Sports 1%


    12579f59b2.jpg


    once you run query you can copy all the id's and follow guide above.


    Cheers

    Install Treminal app and enter:


    ps |grep oscam


    This will show you if oscam is running.


    If you want to install a C or N line to your KI box go to your DTV player settings > installation and press 111111 on remote to bring up hidden menu where you can put your lines.


    your oscam conf files are in a folder in either
    /system
    / data
    /etc


    you can pull these files out with adb edit them and push them back to where they where.


    you might need to remount system to copy files back


    mount -o remount, rw /system
    chmod 755 /system


    cp /mnt/sdcard/your_conf_files /system/location_of_original_files


    Sorry I can be more specific but I sold my KI.


    Hope this helps, if you find the conf files get back to me and I will explain how to get them off box and back on.


    regards

    Hybrid I mean android and dvb-s2, doesn't have dvb-t2.


    It's only a single line so you can't record and watch at same time but other than that it has 7day Epg. Very clear picture on tv even on 60 inch tv, plays 720p streams a lot better than most android smart boxes. Best if both worlds with it.


    www.linuxsatellite.com different site but active on this site also.


    oscam is doing all the work in background on mars and also ki. Type your local ip and port 8888 to view settings in web browser. http://yourboxip:8888


    Oscam is installed with firmware of boxes.

    [MENTION=125715]gg69me[/MENTION], Small world from Limerick too☺.


    They are good box for money and Android side plays streams without issue. Depending on your dish the tuners can be a hit and miss. I'm using shared dish in apartment complex the some channels very low siginal compared to other boxes. But normal sky dish you will have no problems.


    Oscam runs good in them too.

    Stream a Recording or prebufferd Tv Channel with Mars


    Ok before you read on I will say this was just something I did for fun and you might or might not find it useful but it works for me.


    Why is this useful?


    Maybe you have a handful of friends that are watching crappy iptv streams for a big fight or football match and you want to help them out.


    Here is how it works.


    Say something cool is on tv (Won't say any channels names ) and we book a recording from the epg on the Mars box that will save the file to our usb stick or usb storage.


    Now because I set my Mars to save recordings to /mnt/sda/sda1 <--- [my usb storage connected to Mars box] a .ts file will start saving the live recording of the TV channel to this file.


    Because we have an ftp server running on the Mars box FFmpeg can stream the .ts to file to FFserver.


    FFmpeg sends streams to FFserver and encodes them on the fly if needed
    FFserver then allows multiple users to access this stream via http.


    How many clients FFserver can stream to is down to your upload speed and the bitrate the video is being streamed at.



    Things needed


    1. Mars Box
    2. Android Ftp app
    3. Something running ubuntu 14.04 (I'm using 14.04 64bit)
    4. ffmpeg.zip setup.sh ffserver.conf




    Lets begin


    Start up ubuntu


    sudo -i <--- Login as root to make things easier


    6b065b7c46.png


    copy ffmpeg.zip setup.sh ffserver.conf to /tmp
    chmod 755 /tmp/setup.sh
    cd /tmp
    ./setup.sh


    ea8b8a9458.png



    This is going to take a long time to build and install so be prepared for long wait.


    653f7d167c34a9e6de118.jpg



    When it's finished you will have ffmpeg and ffserver installed.


    Now we move to the Mars box and install the Ftp server apk



    45d04b4b8b937ae48bff.jpg



    Goto settings -> Home directory -> Custom Folder



    3de359dd66a52f667f89c.jpg



    Now Click Custom Folder and find your usb device that you are recording too.


    0e1e809990645e94ab82557f.jpg
    40fde1da96b79602c351a7be.png


    Press the big red button


    Take note of your ip address and port.


    Ok so far so good the ftp server is now sharing our usb storage from the mars box.



    Next thing we do is make sure the Mars box is setup to record to our usb storage so go into:


    Mars Tv
    Press Menu on remote
    Goto Settings on far right
    Click PVR Settings and select your usb storage mine is /mnt/sda/sda1


    5da6f2598d7e9fffd.jpg


    DONT USE /mnt/sdcard because you will fill up your internal storage on Mars box.


    Ok now everything is ready to go and you are ready to start streaming your recording.


    If you want remote users to watch the stream you will need to open a DMZ on your router and point it at your ubuntu machine, my laptop is 192.168.1.75 on the local network so I go into my router settings and create the DMZ to point at this address.


    So the big fight is starting and the box is recording to the .ts file on your storage and you let the file build up for about 10 mins so it is a nice size. if we don't allow the file to get to a certain size FFmpeg will stop sending data to server because it will have reached the end of the file so thats why it needs to be big. Yours friends stream will be 10-15 mins behind but hey better than nothing.


    start your ffserver
    ffserver /etc/ffserver.conf &



    8abb299b10f2ca81b93.jpg



    Ok your recording is now at a nice size so ffmpeg wont chew up quicky, open up firefox broswer on ubuntu and type:


    ftp://192.168.1.142:2221 <-- change this to ip on the ftp app on your Mars box
    This will show the list of files on the usb storage, now copy the name of the .ts recording.


    2a1218.jpg


    Open another terminal and type this:
    ffmpeg -i "ftp://192.168.1.142:2221/BBC NEWS-20160919_22-32-59.ts" http://localhost:8090/stream1.ffm


    Congrats you are now streaming a delayed live channel to your friends.


    dd44ced9e.jpg


    178c38773b.jpg


    Another useful thing you can do with FFmpeg is restream a stream


    Say you are paying for IPTV and you have a direct link that only allows a single user to watch at one time well now you can use FFmpeg & FFserver to stream this to your friends and the IPTV provider knows not different plus its not using the IPTV providers bandwidth.


    Here is how to do it


    ffmpeg -i "http://mycooliptv.media.com:8080/flysports.ts" http://localhost:8090/stream1.ffm


    How can my friends watch the stream


    First get your remote ip > goto google type whats my ip and it will show it.


    so say my remote ip is 123.222.333.444


    I will give my friends this link http://123.222.333.444:8090/test.ts
    They can then enter this in the MxPlayer, Vlc player or the software of their choice


    Cheers