Skip to content

Commit bf4a1c3

Browse files
authored
Merge pull request #991 from amiaopensource/linux-doc-updates
Update Linux install instructions
2 parents 8f044b3 + ec0863a commit bf4a1c3

2 files changed

Lines changed: 24 additions & 51 deletions

File tree

Release/linux-dependencies.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
sudo apt-get install -y --no-install-recommends \
44
build-essential \
5+
curl \
56
libgtk2.0-dev \
67
libgtk-3-dev \
78
bison \
@@ -12,6 +13,7 @@ mkvtoolnix \
1213
gnuplot \
1314
xmlstarlet \
1415
mpv \
16+
mediaconch \
1517
libiec61883-dev \
1618
libraw1394-dev \
1719
libavc1394-dev \

Resources/Documentation/linux_installation.md

Lines changed: 22 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,38 @@
11
# Steps for a successful install of Vrecord on Linux
22

33
## 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.
55

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.
810

9-
### Programs to be installed manually
11+
__Vrecord dependency install command:__
1012

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`
4014

4115
### 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)"`
4717

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.
4925

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`
5227

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`
5630

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.
6034

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.
6536

6637
# Instructions/Tips for other Linux Distributions
6738
## Linux Mint

0 commit comments

Comments
 (0)