Git Product home page Git Product logo

raspi4-vdr-setup's Introduction

raspi4-vdr-setup

This repository contains a script to automatize the setup of vdr with the plugin softhddevice-drm on a Raspberry Pi 4.

How to use

  1. Download and install RaspiOS on your machine, any variant (lite, with Destop, with Desktop and recommended software) should do.
  2. Backup your system. You REALLY should do this, as the script is partially running with root rights and may destroy your system.
  3. 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.
  4. reboot (just to be safe)
  5. start vdr and watch TV or your recordings!

Reporting Issues

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

Advanced use

Prepare SD Card on x86

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:

  1. download root.tar.xz and boot.tar.xz from the RaspiOS Download Page
  2. If using a SD Card, mount it on your x86 Linux system, the following example will assume its mounted on /mnt
  3. unpack root.tar.xz into /mnt
  4. unpack boot.tar.xz into /mnt/boot
  5. copy update_on_pi.sh to /mnt/boot/home/pi
  6. chroot into /mnt and change user to pi (on Arch Linux use arch-chroot /mnt su pi )
  7. call update_on_pi.sh
  8. exit from chroot
  9. umnount /mnt and move it to your raspi4

Partial execution

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.

FFMpeg configuration

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

References and Contributions

This script just puts together the wonderful work of a lot of people, listed below in the order of installation

  1. rpi-update to update RaspiOS Kernel to the latest development version 5.10.y
  2. RaspiOS development kernel is included in rpi-update above, but we need to separately install the Kernel headers
  3. ffmpeg-rpi is a fork of ffmpeg that has specific features not yet merged back into upstream ffmpeg
  4. [vdr] is a Video Disk Recorder, we install it from RaspiOS package
  5. 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
  6. Special Thanks goes to all Testers and supporters that helped develop this script, mainly in the VDR-Portal Forum
  7. vdr-admin is a Web Interface to VDR. We install ist from RaspiOS package.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.