Inhaltsverzeichnis

VPU - VIDEOPLAYER

demo video datei

download link https://librelight.de/downloads/media/bbb_sunflower_480x320.mp4

speichern unter
/home/user/LibreLight/video/

dmx Kanäle des Videoplayers in der VPU

VPLAY (fixture)
-DIM auf 1 oder größer 
-CONTROL 21-30 RESET
-CONTROL 31-40 PLAY
-CONTROL 29-30 PAUSE

Der rest wie beim COUNTDOWN/TEXT

convert Video

ffmpeg -i bbb_sunflower_1080p_60fps_normal.mp4  -s 640x480 -c:a copy bbb.mp4

Starten eines VPU Fenster

python3 /opt/LibreLight/Xdesk/vpu/vpu_live.py -m 16,12,5 -X 12 --pixel-map=_1 --gobo-ch=11 --win-pos 430,164 --countdown=31,51,151,171 --videoplayer=181,201

# Erklährung

# -m 16,12,5 -X 12
# 16 pixel größe
# 12 anzahl der led wand blöcke/kacheln  in x (horizontal,spalten)
# 5 anzahl der LED-Wand blöcke/kacheln in y (vertikal,zeilen)
# -X Zeilenumbruch der sub_blöcke 

# pixel-map=_1
# Dateiname der pixelmapping/blockmapping datei 
# /home/user/LibreLight/vpu_playlist_hd_1.csv

#--win-pos 430,164
# fensterposition auf dem Bildschirm

#--countdown=31,51,151,171
# dmx startadressen des countdown/text overlay auf der VPU

# --videoplayer=181,201
# fügt der VPU zwei unabhängige Videoplayer hinzu mit der Startadresse 181 und 201

ffmpeg converter

#!/usr/bin/python3
import os

print("go")
for i in os.listdir("groß/"):
    i2 = i.split(".",-1)[0]
    #if not i.endswith("mov"):
    #    continue
    if os.path.isfile("groß/"+i):
        print(i)
         	  
        cmd="ffmpeg -n -i 'groß/"+i+"' -s 640x480 -c:a copy 'klein/"+i2+".mp4'"
        print(cmd)
        os.system(cmd)
        print(" ")
        print(" ")

print("")
input("ende")
time.sleep( 10)

desktop starter für converter

[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