Skip to content

Commit 9ebfbeb

Browse files
authored
Merge pull request Sofie-Automation#1530 from SuperFlyTV/fix/package-manager-setup-docs
chore: fix package manager setup docs
2 parents 1518b3b + 2f6566b commit 9ebfbeb

File tree

4 files changed

+24
-34
lines changed

4 files changed

+24
-34
lines changed

packages/blueprints-integration/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ export * from '@sofie-automation/shared-lib/dist/lib/JSONSchemaUtil'
3030
export * from '@sofie-automation/shared-lib/dist/core/model/StudioRouteSet'
3131
export * from '@sofie-automation/shared-lib/dist/core/model/StudioSettings'
3232
export * from '@sofie-automation/shared-lib/dist/core/model/CoreSystemSettings'
33+
export * from '@sofie-automation/shared-lib/dist/core/model/PackageContainer'

packages/documentation/docs/user-guide/installation/installing-connections-and-additional-hardware/casparcg-server-installation.md

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Installing CasparCG Server for Sofie
3-
description: Sofie specific fork of CasparCG Server 2.1
3+
description: CasparCG Server
44
---
55

66
# Installing CasparCG Server for Sofie
@@ -9,28 +9,23 @@ Although CasparCG Server is an open source program that is free to use for
99

1010
## Installing the CasparCG Server
1111

12-
To begin, download the latest release of [CasparCG Server from GitHub](https://github.com/nrkno/sofie-casparcg-server/releases). There are multiple versions of CasparCG Server available to the public for download but, you specifically want the latest NRK version.
12+
To begin, download the latest release of [CasparCG Server from GitHub](https://github.com/casparcg/server/releases). While some Sofie users have their own fork of CasparCG, we recommend the official builds.
1313

14-
Once downloaded, extract the files and navigate down the folders, _CasparCG Server_ then _Server_. This folder contains your CasparCG Server Configuration file, `casparcg.config`, and your CasparCG Server executable, `casparcg.exe`.
14+
Once downloaded, extract the files into a folder and navigate inside. This folder contains your CasparCG Server Configuration file, `casparcg.config`, and your CasparCG Server executable, `casparcg.exe`.
1515

1616
How you will configure the CasparCG Server will depend on the number of DeckLink cards your machine contains. The first subsection for each CasparCG Server setup, labeled _Channels_, will contain the unique portion of the configuration. The following is the majority of the configuration file that will be consistent between setups.
1717

1818
```markup
1919
<?xml version="1.0" encoding="utf-8"?>
2020
<configuration>
2121
<log-level>debug</log-level>
22-
<thumbnails>
23-
<generate-thumbnails>false</generate-thumbnails>
24-
</thumbnails>
2522
<!-- Paths to the Server Media -->
2623
<!-- Currently set to the same folder as this file -->
2724
<paths>
2825
<media-path>media/</media-path>
2926
<log-path>log/</log-path>
3027
<data-path>data/</data-path>
3128
<template-path>template/</template-path>
32-
<thumbnail-path>thumbnail/</thumbnail-path>
33-
<font-path>font/</font-path>
3429
</paths>
3530
<lock-clear-phrase>secret</lock-clear-phrase>
3631
<channels>
@@ -41,25 +36,21 @@ How you will configure the CasparCG&nbsp;Server will depend on the number of Dec
4136
<port>5250</port>
4237
<protocol>AMCP</protocol>
4338
</tcp>
44-
<tcp>
45-
<port>3250</port>
46-
<protocol>LOG</protocol>
47-
</tcp>
4839
</controllers>
40+
<amcp>
41+
<media-server>
42+
<host>localhost</host>
43+
<port>8000</port>
44+
</media-server>
45+
</amcp>
4946
</configuration>
5047
```
5148

5249
One additional note, the Server does require the configuration file be named `casparcg.config`.
5350

54-
### Installing CasparCG Media Scanner
55-
56-
You can use the CasparCG Media Scanner to locate and add all of your media to the _Sofie&nbsp;Core_. To install the Media Scanner, you will go to the [project's Release page](https://github.com/nrkno/sofie-media-scanner/releases) and download the `.zip` file under the latest release. Similar to the CasparCG&nbsp;Server, you want to use the NRK version.
57-
58-
Once downloaded and extracted, move the `scanner.exe` file to the same folder as your `casparcg.exe` file.
59-
6051
### Installing the CasparCG Launcher
6152

62-
You can launch both of your CasparCG applications with the[ CasparCG Launcher.](https://github.com/Sofie-Automation/sofie-casparcg-launcher) Download the `.exe` file in the latest release and once complete, move the file to the same folder as your `casparcg.exe` file.
53+
You can launch both of your CasparCG applications with the [CasparCG Launcher.](https://github.com/Sofie-Automation/sofie-casparcg-launcher) Download the `.exe` file in the latest release and once complete, move the file to the same folder as your `casparcg.exe` file.
6354

6455
## Configuring Windows
6556

@@ -83,7 +74,7 @@ For _dual drives_, it is recommended to use a smaller 250gb NVMe SSD for the ope
8374

8475
### DeckLink Cards
8576

86-
There are a few SDI cards made by Blackmagic Design that are supported by CasparCG. The base model, with four bi-directional input and outputs, is the [Duo 2](https://www.blackmagicdesign.com/products/decklink/techspecs/W-DLK-31). If you need additional channels, use the[ Quad 4](https://www.blackmagicdesign.com/products/decklink/techspecs/W-DLK-30) which supports eight bi-directional inputs and outputs. Be aware the BNC connections are not the standard BNC type. B&H offers [Mini BNC to BNC connecters](https://www.bhphotovideo.com/c/product/1462647-REG/canare_cal33mb018_mini_rg59_12g_sdi_4k.html). Finally, for 4k support, use the [8K Pro](https://www.blackmagicdesign.com/products/decklink/techspecs/W-DLK-34) which has four bi-directional BNC connections and one reference connection.
77+
There are a few SDI cards made by Blackmagic Design that are supported by CasparCG. The base model, with four bi-directional input and outputs, is the [Duo 2](https://www.blackmagicdesign.com/products/decklink/techspecs/W-DLK-31). If you need additional channels, use the [Quad 2](https://www.blackmagicdesign.com/products/decklink/techspecs/W-DLK-30) which supports eight bi-directional inputs and outputs. Be aware the BNC connections are not the standard BNC type. B&H offers [Mini BNC to BNC connecters](https://www.bhphotovideo.com/c/product/1462647-REG/canare_cal33mb018_mini_rg59_12g_sdi_4k.html). Finally, for 4k support, use the [8K Pro](https://www.blackmagicdesign.com/products/decklink/techspecs/W-DLK-34) which has four bi-directional BNC connections and one reference connection.
8778

8879
Here is the Blackmagic Design PDF for [installing your DeckLink card \( Desktop Video Device \).](https://documents.blackmagicdesign.com/UserManuals/DesktopVideoManual.pdf)
8980

@@ -207,7 +198,7 @@ Once you have setup the configuration file, you can use an online validator to c
207198

208199
### Launching the Server
209200

210-
Launching the Server is the same for each hardware setup. This means you can run`casparcg-launcher.exe` and the server and media scanner will start. There will be two additional warning from Windows. The first is about the EXE file and can be bypassed by selecting _Advanced_ and then _Run Anyways_. The second menu will be about CasparCG&nbsp;Server attempting to access your firewall. You will need to allow access.
201+
Launching the Server is the same for each hardware setup. This means you can run `casparcg-launcher.exe` and the server and media scanner will start. There will be two additional warning from Windows. The first is about the EXE file and can be bypassed by selecting _Advanced_ and then _Run Anyways_. The second menu will be about CasparCG&nbsp;Server attempting to access your firewall. You will need to allow access.
211202

212203
A window will open and display the status for the server and scanner. You can start, stop, and/or restart the server from here if needed. An additional window should have opened as well. This is the main output of your CasparCG&nbsp;Server and will contain nothing but a black background for now. If you have a DeckLink card installed, its output will also be black.
213204

packages/documentation/docs/user-guide/installation/installing-package-manager.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_position: 7
99
- [Installed and running Sofie&nbsp;Core](installing-sofie-server-core.md)
1010
- [Initial Sofie&nbsp;Core Setup](initial-sofie-core-setup.md)
1111
- [Installed and configured Demo Blueprints](https://github.com/SuperFlyTV/sofie-demo-blueprints)
12-
- [Installed, configured, and running CasparCG&nbsp;Server](installing-connections-and-additional-hardware/casparcg-server-installation.md)
12+
- [Installed, configured, and running CasparCG&nbsp;Server](installing-connections-and-additional-hardware/casparcg-server-installation.md) (Optional)
1313
- [`FFmpeg` and `FFprobe` available in `PATH`](installing-connections-and-additional-hardware/ffmpeg-installation.md)
1414

1515
Package Manager is used by Sofie to copy, analyze, and process media files. It is what powers Sofie's ability to copy media files to playout devices, to know when a media file is ready for playout, and to display details about media files in the rundown view such as scene changes, black frames, freeze frames, and more.
@@ -38,13 +38,7 @@ git clone https://github.com/Sofie-Automation/sofie-package-manager.git
3838
cd sofie-package-manager
3939
yarn install
4040
yarn build
41-
yarn start:single-app -- -- --basePath "C:\your\path\to\casparcg-server\media-folder (i.e. sofie-demo-media)"
42-
```
43-
44-
Note: if Powershell throws `Unknown argument: basePath` error, add one more pair of dashes (`--`) before the basePath argument:
45-
46-
```bash
47-
yarn start:single-app -- -- -- --basePath "C:\your\path\to\casparcg-server\media-folder (i.e. sofie-demo-media)"
41+
yarn start:single-app
4842
```
4943

5044
On first startup, Package Manager will exit with the following message:
@@ -175,8 +169,12 @@ Note that each appContainer needs to use a different resourceId and will need it
175169
- If you don't have a `casparcg0` device, add it to the Playout Gateway under the Devices heading, then restart the Playout Gateway.
176170
- If you are using the distributed setup, you will likely want to repeat this step for each CasparCG machine. You will also want to set `Resource Id` to match the `resourceId` value provided in the appContainer command line.
177171
1. Click the plus button under "Accessors", then click the edit icon to the right of the newly-created accessor.
178-
1. Give this accessor an ID of `casparcgHttpProxy0`, a Label of `CasparCG HTTP Proxy Accessor`, an Accessor Type of `HTTP_PROXY`, and a Base URL of `http://localhost:8080/package`. Then, ensure that both the "Allow Read access" and "Allow Write access" boxes are checked. Finally, click the done button (checkmark icon) in the bottom right.
179-
1. Scroll back to the top of the page and select "CasparCG Package Container" for both "Package Containers to use for previews" and "Package Containers to use for thumbnails".
172+
1. Give this accessor an ID of `local`, a Label of `Local`, an Accessor Type of `LOCAL`, and a Folder path matching your CasparCG `media` folder. Then, ensure that only the "Allow Read access" boxes are checked. Finally, click the done button (checkmark icon) in the bottom right.
173+
1. Click the plus button under the Package Containers heading, then click the edit icon (pencil) to the right of the newly-created package container.
174+
1. Give this package container an ID of `httpProxy0` and a label of `Proxy for thumbnails & preview`.
175+
1. Click the plus button under "Accessors", then click the edit icon to the right of the newly-created accessor.
176+
1. Give this accessor an ID of `http0`, a Label of `HTTP`, an Accessor Type of `HTTP_PROXY`, and a Base URL of `http://localhost:8080/package`. Then, ensure that both the "Allow Read access" and "Allow Write access" boxes are checked. Finally, click the done button (checkmark icon) in the bottom right.
177+
1. Scroll back to the top of the page and select `Proxy for thumbnails & preview` for both "Package Containers to use for previews" and "Package Containers to use for thumbnails".
180178
1. Your settings should look like this once all the above steps have been completed:
181179
![Package Manager demo settings](/img/docs/Package_Manager_demo_settings.png)
182180
1. If Package Manager `start:single-app` is running, restart it. If not, start it (see the above [Installation instructions](#installation-quick-start) for the relevant command line).
@@ -191,11 +189,11 @@ By adding `--networkIds=pm-net` (a semi colon separated list) when launching the
191189
Then in the Sofie UI:
192190

193191
1. Return to the Package Manager settings under the studio
194-
1. Expand the `casparcgContainer` container.
195-
1. Edit the `casparcgHttpProxy` accessor to have a `Base URL` that is accessible from the casparcg machines.
192+
1. Expand the `httpProxy0` container.
193+
1. Edit the `http0` accessor to have a `Base URL` that is accessible from the casparcg machines.
196194
1. Set the `Network ID` to `pm-net` (matching what was passed in the command line)
197195
1. Click the plus button under "Accessors", then click the edit icon to the right of the newly-created accessor.
198-
1. Give this accessor an ID of `casparcgHttpProxyThumbnails0`, a Label of `CasparCG Thumbnail HTTP Proxy Accessor`, an Accessor Type of `HTTP_PROXY`, and a Base URL that is accessible to your Sofie client network. Then, ensure that only the "Allow Write access" box is checked. Finally, click the done button (checkmark icon) in the bottom right.
196+
1. Give this accessor an ID of `publicHttp0`, a Label of `Public HTTP Proxy Accessor`, an Accessor Type of `HTTP_PROXY`, and a Base URL that is accessible to your Sofie client network. Then, ensure that only the "Allow read access" box is checked. Finally, click the done button (checkmark icon) in the bottom right.
199197

200198
## Usage
201199

69.7 KB
Loading

0 commit comments

Comments
 (0)