i n d e x
<--back
notes
categories: arctic | art | biology | book | compile | crypto | cryptoart | debian | email | entropy |
ffmpeg | funk | game | ghostradio | hades | informationtheorie | internet | laser | linux | linuxaudio |
logic | machinelearning | math | mikrotik | movie | neuralnetworks | noise | nonhuman | notes | particlephysics |
physics | radio | radioactive | raspi5 | renameseq | rng | softwaredefinedradio | sound | stockexchange | tools |
underinfluence | videolooper | vlc | vlf | xterm |

search:


play-2-videos-insync-2hdmiout-raspi5:

useing x11 (wayland complained about qt, you can change the layout in raspi-config) with vlcsync, helps a little, no framesync. vlcsync ip-address needs to be enabled in vlc: main interfaces, enable LUA main interfaces -> RC, TCP 127.0.0.42 i made it with 3 autostart entries, like this > ~/.config/autostart $ cat avlcsync.desktop [Desktop Entry] Type=Application Name=VLCsyncAutostart Comment=VLCsync Exec=/usr/local/bin/vlcsync Terminal=true ~/.config/autostart $ cat hdmi0.desktop [Desktop Entry] Type=Application Name=VLCAutostart Comment=VLC Autostart Exec=/usr/bin/vlc --fullscreen --qt-fullscreen-screennumber=0 -A alsa --alsa-audio-device sysdefault:CARD=vc4hdmi0 --no-video-title-show --loop --rc-host 127.0.0.42 /media/usb1/hdmi0.mp4 Terminal=false ~/.config/autostart $ cat hdmi1.desktop [Desktop Entry] Type=Application Name=VLCAutostart Comment=VLC Autostart Exec=/usr/bin/vlc --fullscreen --qt-fullscreen-screennumber=1 -A alsa --alsa-audio-device sysdefault:CARD=vc4hdmi1 --no-video-title-show --loop --rc-host 127.0.0.42 /media/usb1/hdmi1.mp4 Terminal=false ##linux ##vlc ##raspi5

last edited:July 19, 2024




automountusbandplayvideo:

config doku for raspi5 https://raspberrypi.stackexchange.com/questions/66169/auto-mount-usb-stick-on-plug-in-without-uuid Requirements Install pmount if not installed sudo apt-get install pmount This script mounts drives to /media/usb*, so make sure those folders aren't occupied. If you want a cleaner look, don't create any folders. Udev rule Create file /etc/udev/rules.d/usbstick.rules Insert: ACTION=="add", KERNEL=="sd[a-z][0-9]", TAG+="systemd", ENV{SYSTEMD_WANTS}="usbstick-handler@%k" Save and close Systemd service Create file /lib/systemd/system/usbstick-handler@.service Insert: [Unit] Description=Mount USB sticks BindsTo=dev-%i.device After=dev-%i.device [Service] Type=oneshot RemainAfterExit=yes ExecStart=/usr/local/bin/cpmount /dev/%I ExecStop=/usr/bin/pumount /dev/%I Save and close Mount script Create file /usr/local/bin/cpmount Insert: #!/bin/bash if mountpoint -q /media/usb1 then if mountpoint -q /media/usb2 then if mountpoint -q /media/usb3 then if mountpoint -q /media/usb4 then echo "No mountpoints available!" #You can add more if you need else /usr/bin/pmount --umask 000 --noatime -w --sync $1 usb4 fi else /usr/bin/pmount --umask 000 --noatime -w --sync $1 usb3 fi else /usr/bin/pmount --umask 000 --noatime -w --sync $1 usb2 fi else /usr/bin/pmount --umask 000 --noatime -w --sync $1 usb1 fi Give execute permission to the (root) user: chmod u+x /usr/local/bin/cpmount Save and close Play Video mkdir ~/.config/autostart create a file > vlcstart.desktop [Desktop Entry] Type=Application Name=VLCAutostart Comment=VLC Autostart Exec=/usr/bin/vlc -f -L --no-video-title-show /media/usb1/ Terminal=false Reboot your RPi and test. ##videolooper ##raspi5 ##linux

last edited:July 19, 2024




playvideo-on-a-certain-hdmi-output:

automated multiscreen setup- screennumber is 0 and 1 ,.. [Desktop Entry] Type=Application Name=VLCAutostart Comment=VLC Autostart Exec=/usr/bin/vlc --fullscreen --qt-fullscreen-screennumber=1 --loop video.mp4 Terminal=false ##linux ##raspi5 ##vlc

last edited:July 18, 2024