This repository contains a script to automatize the setup of vdr with the plugin softhddevice-drm on a Raspberry Pi 4.
- Download and install RaspiOS on your machine, any variant (lite, with Destop, with Desktop and recommended software) should do.
- Backup your system. You REALLY should do this, as the script is partially running with root rights and may destroy your system.
- Next, download the update_on_pi.sh and execute it as user pi. It will sudo to root whenever needed and download, compile and install all needed software.
- reboot (just to be safe)
- start vdr and watch TV or your recordings!
If you find any issue, please start the script with
bash -c "set -x ; . ./update_on_pi.sh"
and create an issue in github attaching the log
Using qemu-static-bin and binfmt-qemu packages on a box running Linux x86 you can prepare a SD-Card (or even NFS root) without touching your Raspi. After installing the qemu packages do the following:
- download root.tar.xz and boot.tar.xz from the RaspiOS Download Page
- If using a SD Card, mount it on your x86 Linux system, the following example will assume its mounted on /mnt
- unpack root.tar.xz into /mnt
- unpack boot.tar.xz into /mnt/boot
- copy update_on_pi.sh to /mnt/boot/home/pi
- chroot into /mnt and change user to pi (on Arch Linux use
arch-chroot /mnt su pi
) - call update_on_pi.sh
- exit from chroot
- umnount /mnt and move it to your raspi4
This step requires some bash script knowledge. You can start the script with a parameter, that is the subfunction to exit (look for function in the script), e.g.
./update_on_pi.sh piwozi_install_vdr
It is useful when recovering from previous errors without waiting for all the lengthy procedures that already executed ok.
The script configures ffmpeg with the options used in RaspiOS plus, adding some modifications to support Raspi4 Hardware. You could also want to use a "minimal" ffmpeg setup, but this is not supported by the script as of now
This script just puts together the wonderful work of a lot of people, listed below in the order of installation
- rpi-update to update RaspiOS Kernel to the latest development version 5.10.y
- RaspiOS development kernel is included in rpi-update above, but we need to separately install the Kernel headers
- ffmpeg-rpi is a fork of ffmpeg that has specific features not yet merged back into upstream ffmpeg
- [vdr] is a Video Disk Recorder, we install it from RaspiOS package
- vdr-plug-softhddevice-drm is one (of many) forks from the vdr plugin softhddevice. It support drm, that is the technology used on Raspi4. Be aware that for Raspi 1-2 there is also vdr-plugin-rpihddevice
- Special Thanks goes to all Testers and supporters that helped develop this script, mainly in the VDR-Portal Forum
- vdr-admin is a Web Interface to VDR. We install ist from RaspiOS package.