Posts by Mario77

    Please, tell me more (the only stream profile I ever managed to use is "pass")

    A way to do it is to create your own small script...not sure how your setup is but you might need to create 2 profiles...1 for your MPEG2 streams that will run the script to transcode,comskip or whatever you want to do with your recordings and another for your h264 streams to leave as is...

    If it was for my personal usage I will go another way...just leave 1 profile for all recordings and set script to do what you want...using ffprobe...ex if video_codec = MPEG-2 video then continue script and run ffmpeg command else exit script..

    so bluetooth is currently broken on libreelc to transfer files from android device to libreelec and i want to transfer files from libreelec to android device by some way and not the opposite,plus bluetooth transfers are very slow

    I know what you mean..I have no idea how you can do that offline without network then besides an sd card or root your phone so you can find an apk like "SD card as USB drive" that enables the beloved usb mass storage device we had before as standard on old phones..saying that old phones should still work fine when you connect...

    Otherwise you ll have to go online..then you ll have many options

    Is there any way that I can transfer files from libreelec (raspberry pi 4b) to a mobiles devices like a smartphone through mtp drivers or other ways offline? I am not interested online but only offline ways.

    Thank you all a lot for your time

    What you mean by offline?Is it cable only what you want?

    Did you try bluetooth?

    I installed Watchdog and played with settings. It doesn't clean library as described but it does after restarting player, so it helps, it does a job.

    This weekend I will try to find option to send command to players from server (WHS 2011) or from PC (WIN7, 8 or 10) and also try to create service following

    Might need a restart on first install to start services..

    Mario, I have to do it in one of players/clients, right?

    yes running Libreelec


    Just in case you missed my other post..if you manage to do it this way you can do the job from 1 box across all your boxes..

    Option 2 is you install Watchdog addon from Kodi repo..it's listed as a service addon..it does the job same way for you and it's ready made..you don t need any scripts..slight problem is that you will have to install this addon on every box..only takes few seconds anyway..you don t even have to set it up as it watches your video library paths automatically..

    I have no idea with batch files..that script you run as service with libreelec and it monitors your movie folder...

    so let me try to explain

    create directory

    Code
    /storage/.config/scripts

    create a file in

    Code
    /storage/.config/scripts/inotify.sh

    with the below code and name it inotify.sh , could be anywhere under storage this is just an example

    then create another file in same directory /storage/.config/scripts and name it "paths"

    in this file put the paths to your movie/shows folder..just one under the other...you can monitor how many folders you want..

    as you can see the script above points to this file with the following line --fromfile

    Code
    --fromfile  /storage/.config/scripts/paths

    contents of paths file example;

    Code
    /var/media/HDD/Tv_Shows_Recordings
    /var/media/HDD/Movies
    etc
    etc
    etc

    Then you need to start inotify.sh on startup either with autostart.sh or service via system.d

    Now if your movie folders are on a remote location you might need to mount that path to the box you will be running this script from..


    You need to install virtual.system-tools addon from LibreElec Repo for this to work


    Also you basically don't need the part

    Code
    datetime watched_filename

    I m using that in my script as my script is much more then just that and has logging..but don t complicate things for now.you can leave as is..still works.

    Allright guys i did it. It is working now. I've changed every path to correct one and i imported everything as shown in code below:

    Thanks everyone for help.

    Great Job!

    Didn't notice you needed also system-tools libraries for smbus.so

    Glad it's working ..

    I think it's another issue you have..

    Never played with adafruit on LE but I dont't think virtual.rpi-tools is what you need to run that script..

    I m sure I v seen an adafruit library addon somewhere on this forum..but have no idea where to start from ..

    Ok had a look it's in LE repo virtual.adafruit-libraries

    Looks like it got what you need

    look here

    Klojum and Mario77
    I think that you are right. I should try JSON-RPC and create script. (I never did it but I will try)
    Mario77, you gave me the best clue how to do it. I assume that I have to set static IP for every player and then send the same command to all of them.

    I will try.

    yes they will have to have static IP..

    If you get stuck with script ask here..

    Going to give you a good hint where to start from..all you need is something like this..

    then create another file with just the paths to your movies folders that you want to watch for changes one under the other and set path in script for that file


    Also I just remembered that there is also an addon called WatchDog you can use...but probably you will have to install it on every box and I don t think it's network friendly...it's probably just for connected devices but you can always try..

    The other way in previous post is only set up on 1 box and sends json to all boxes which is better once setup..

    You probably have to make your own script..

    The tools you need are already their with the System Tools Addon..

    I have something similar to what you r asking altough it's a bit more elaborated then just cleaning library..I got a TVHeadend server sending recordings to my box after they r done with comskip etc..that is when inotifywatch from system tools comes in handy..

    What you need to do is set 1 of your boxes that has LibreElec running to watch the folder where your movies are saved with inotifywait..

    It works wonders..

    then set up a script..something like if event is CLOSE_WRITE,CLOSE (movie added) update all libraries,if event is DELETE then clean all libraries..

    ...use kodi-send --action to send commands to clean libraries or update added movies to all boxes..

    Code
    kodi-send --host=xxx.xxx.x.xxx --port=xxxx --action="CleanLibrary(movies)"
    kodi-send --host=xxx.xxx.x.xxx --port=xxxx --action="UpdateLibrary"

    Not sure about if it works on your setup...but AEL works fine on RPI

    Look i know it has probably been asked a thousand times but my Libre elec os has failed today and is now useless as i cant get anything installed if it needs to restart. It keeps going back to safe mode. I have no idea of how to rectify or what caused it. I am not a brain surgeon or a tech wizard , i have tried some suggestions from Kodi people but still wont work properly. Is there anyone hear who can do a walk through in lamens terms please as im about to throw it in the bin. Please help asap.

    Although your best bet is post a log and try to get some help regarding your crash and what's causing it..a temporary workaround would be to create a file and name it

    Code
    safemode.disable

    place it in:

    Code
    /storage/.config

    That will disable safe mode..