Selaa lähdekoodia

create: home dir template for copy

micha 1 vuosi sitten
vanhempi
commit
309bfa0d91

+ 1 - 1
README.md

@@ -60,7 +60,7 @@ cp /opt/LibreLight/Xdesk/desktop/* /home/user/Desktop
 
 # copy show files to Home
 mkdir -p /home/user/LibreLight
-cp -rv /opt/LibreLight/Xdesk/show /home/user/LibreLight/
+cp -rv /opt/LibreLight/Xdesk/home/LibreLight/ /home/user/LibreLight/
 echo "Dimmer" > /home/user/LibreLight/init.txt
 
 # start LibreLight with

+ 10 - 0
desktop/convert_mp4.desktop

@@ -0,0 +1,10 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=convert mp4
+Comment=verkleinert die Videodateien in der Auflösung
+Exec=xterm -e 'python3 /home/user/LibreLight/video/converter/convert.py'
+Icon=view-restore
+Path=/home/user/LibreLight/video/converter/
+Terminal=true
+StartupNotify=false

+ 1 - 0
home/LibreLight/init.txt

@@ -0,0 +1 @@
+Dimmer

+ 0 - 0
show/DemoShow/gui.txt → home/LibreLight/show/DemoShow/gui.txt


+ 0 - 0
show/DemoShow/patch.sav → home/LibreLight/show/DemoShow/patch.sav


+ 0 - 0
show/DemoShow/presets.sav → home/LibreLight/show/DemoShow/presets.sav


+ 0 - 0
show/Dimmer/patch.sav → home/LibreLight/show/Dimmer/patch.sav


+ 0 - 0
show/Dimmer/presets.sav → home/LibreLight/show/Dimmer/presets.sav


+ 0 - 0
show/VPU_8pix/gui.txt → home/LibreLight/show/VPU_8pix/gui.txt


+ 0 - 0
show/VPU_8pix/patch.sav → home/LibreLight/show/VPU_8pix/patch.sav


+ 0 - 0
show/VPU_8pix/presets.sav → home/LibreLight/show/VPU_8pix/presets.sav


+ 0 - 0
show/VPU_IRGB_v2/patch.sav → home/LibreLight/show/VPU_IRGB_v2/patch.sav


+ 0 - 0
show/VPU_IRGB_v2/presets.sav → home/LibreLight/show/VPU_IRGB_v2/presets.sav


+ 21 - 0
home/LibreLight/video/converter/convert.py

@@ -0,0 +1,21 @@
+#!/usr/bin/python3
+import os
+import time
+
+print("go")
+for i in os.listdir("big/"):
+    i2 = i.split(".",-1)[0] + ".mp4"
+    #if not i.endswith("mov"):
+    #    continue
+    if os.path.isfile("big/"+i):
+        print(i)
+         	  
+        cmd="ffmpeg -n -i 'big/"+i+"' -s 640x480 -c:a copy 'small/"+i2+"'"
+        print(cmd)
+        os.system(cmd)
+        print(" ")
+        print(" ")
+
+print("")
+input("ende")
+time.sleep( 10)