|
1 | 1 | # Steps for a successful install of Vrecord on Linux |
2 | 2 |
|
3 | 3 | ## About |
4 | | -There are many possible ways to install the various dependencies of Vrecord on Linux. The main body of this documentation is oriented towards installing on Ubuntu LTS. For Some information about installing on additional distributions see the section at the bottom of this document. |
| 4 | +There are many possible ways to install the various dependencies of Vrecord on Linux. The main body of this documentation is oriented towards Ubuntu LTS, and has been tested to work on fresh installations of Ubuntu 24.04 LTS and 26.04 LTS. |
5 | 5 |
|
6 | | -## via Homebrew |
7 | | -The following instructions aim to minimize use of Homebrew installs for packages that can otherwise be installed via native Linux methods. When followed in order, these commands should result in a fully functional install of vrecord. |
| 6 | +### Install non-homebrew core dependencies |
| 7 | +1) If working on a fresh installation of Ubuntu, it is recommended to run `sudo apt-get update && sudo apt-get upgrade -y` prior to installing vrecord to make sure that all packages are their latest versions. |
| 8 | +2) Download and install the latest Linux version of 'Blackmagic Desktop Video' from the [Blackmagic website](https://www.blackmagicdesign.com/support/) |
| 9 | +3) Install dependencies required for a successful build. These can be installed one-by-one from the list in [this script](https://github.com/amiaopensource/vrecord/blob/main/Release/linux-dependencies.sh), or (recommended) that script can be run remotely with the following command. |
8 | 10 |
|
9 | | -### Programs to be installed manually |
| 11 | +__Vrecord dependency install command:__ |
10 | 12 |
|
11 | | -* Download and install the latest Linux version of 'Blackmagic Desktop Video' from the [Blackmagic website](https://www.blackmagicdesign.com/support/) |
12 | | -* Download and install the latest version of the [QCTools CLI tool](https://mediaarea.net/QCTools/Download/Ubuntu) from the MediaArea website |
13 | | -* Optional: If DV wrapping and splitting is desired, download and install [DVRescue](https://mediaarea.net/DVRescue) from the MediaArea website. |
14 | | - |
15 | | -### Programs to be installed via PPA |
16 | | - |
17 | | -* Install MPV with the following steps: |
18 | | - - Add the MPV PPA with: `sudo add-apt-repository ppa:mc3man/mpv-tests` |
19 | | - - Update package manager with: `sudo apt-get update` |
20 | | - - Install MPV with `sudo apt-get install mpv` |
21 | | - |
22 | | -### Programs to be installed via standard package manager |
23 | | - |
24 | | -* Use the following commands to install additional dependencies for full vrecord use: |
25 | | - - `sudo apt-get install curl` |
26 | | - - `sudo apt-get install gnuplot` |
27 | | - - `sudo apt-get install xmlstarlet` |
28 | | - - `sudo apt-get install mkvtoolnix` |
29 | | - - `sudo apt-get install mediaconch` |
30 | | -* Install the following dependencies for enabling DV capture in vrecord's FFmpeg build: |
31 | | - - `sudo apt-get install libiec61883-dev` |
32 | | - - `sudo apt-get install libraw1394-dev` |
33 | | - - `sudo apt-get install libavc1394-dev` |
34 | | - - `sudo apt-get install libavc1394-tools` |
35 | | -* If `make` and `gcc` are not already installed, install them with |
36 | | - - `sudo apt-get install gcc` |
37 | | - - `sudo apt-get install make` |
38 | | -* Installing a standard version of FFmpeg is highly recommended as a fallback in case of issues with the Homebrew controlled build: |
39 | | - - `sudo apt-get install ffmpeg` |
| 13 | +`wget -O - https://raw.githubusercontent.com/amiaopensource/vrecord/refs/heads/linux-doc-updates/Release/linux-dependencies.sh | bash` |
40 | 14 |
|
41 | 15 | ### Install Homebrew |
42 | | -* Use the following commands, (sourced from the [Homebrew docs](https://docs.brew.sh/Homebrew-on-Linux)) to install and configure Homebrew on Linux: |
43 | | - - Install Homebrew with: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"` |
44 | | - - Add linuxbrew to path with: |
45 | | -~~~ |
46 | | - test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv) |
| 16 | +4) Install Homebrew via the command on [its homepage](https://brew.sh/). As of writing, this is: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"` |
47 | 17 |
|
48 | | - test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv) |
| 18 | + __Important:__ After this command runs, Homebrew will print several more required commands that must be run to make brew functional. Run these commands! They should look something like: |
| 19 | + ``` |
| 20 | + echo >> /home/your-user-name/.bashrc |
| 21 | + echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"' >> /home/your-user-name/.bashrc |
| 22 | + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)" |
| 23 | + ``` |
| 24 | +For changes to take effect, either run `reset` or open a new terminal window. |
49 | 25 |
|
50 | | - test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >> ~/.bashrc |
51 | | - ~~~ |
| 26 | +5) Add the AMIA Open Source and MediaArea taps for Homebrew with: `brew tap amiaopensource/amiaos && brew tap mediaarea/mediaarea` |
52 | 27 |
|
53 | | - - Alternately some issues (such as the sdl2 conflict) have been avoided by adding Linuxbrew lower down in the path order than the Linuxbrew instructions call for (Such as by editing `/etc/environment` to include `/home/linuxbrew/.linuxbrew/bin` after the other $PATH directories.) Your mileage may vary! |
54 | | - * Add the AMIA Open Source tap for Homebrew: |
55 | | - - `brew tap amiaopensource/amiaos` |
| 28 | + ### Install vrecord |
| 29 | +6) You now should be able to install vrecord by running: `brew install vrecord` |
56 | 30 |
|
57 | | -### Install additional vrecord dependencies via Brew |
58 | | -* `brew install decklinksdk && brew install ffmpeg-ma --with-iec61883 && brew install gtkdialog` _Note:_ Some users on Ubuntu have reported installation problems with `gtkdialog` at step. See [this note](https://github.com/amiaopensource/homebrew-amiaos/blob/master/TROUBLESHOOTING.md#vrecord) at the AMIA Open Source Homebrew repository for a possible fix. |
59 | | -* `brew install vrecord` |
| 31 | + ### Install optional dependencies |
| 32 | + |
| 33 | +If DV functionality is desired, download and install the [DVRescue](https://mediaarea.net/DVRescue) command line tools from the MediaArea website. |
60 | 34 |
|
61 | | -### Fix conflicting SDL2 dependencies |
62 | | -* `brew uninstall --ignore-dependencies sdl2` |
63 | | -* `sudo apt install libsdl2-dev` |
64 | | -* This step may not be required if Brew has been configured lower in $PATH than standard system directories. |
| 35 | +The FFmpeg DV device can also be used for some DV features; this requires ffmpeg-ma to be compiled with the IEC61883 device. This can be done with `brew install ffmpeg-ma --with-iec61883` for a new installation or `brew reinstall ffmpeg-ma --with-iec61883` if ffmpeg-ma is already installed. |
65 | 36 |
|
66 | 37 | # Instructions/Tips for other Linux Distributions |
67 | 38 | ## Linux Mint |
|
0 commit comments