DVR usage

Digital Video Recorder (DVR) is allowed for streambuilder with enterprise license.

PostgreSQL installation

Install packages on CentOS 7.2

Install PostgreSQL server from repository:

sudo yum makecache
sudo yum install postgresql-server postgresql-contrib

To connect to PostgreSQL server via psql:

sudo yum install postgresql

Initialize PostgreSQL after installation:

postgresql-setup initdb

Add string

listen_addresses = '*'

to /var/lib/pgsql/data/postgresql.conf configuration file.

Replace or add strings

#host    all             all             127.0.0.1/32            ident
host    all             all             127.0.0.1/32            trust
host    all             all             192.168.0.36/32         trust
host    dvr             streambuilder   0.0.0.0/0               trust

to /var/lib/pgsql/data/pg_hba.conf configuration file. Use local network host ip-address instead of 192.168.0.36/32 or local network address 192.168.0.1/24

Start PostgreSQL service:

sudo systemctl enable postgresql
sudo systemctl start postgresql

Connect to database and create streambuilder role (password may be changed) and dvr database

sudo -u postgres psql
postgres=# CREATE USER streambuilder WITH PASSWORD 'streambuilder';
postgres=# CREATE DATABASE dvr WITH OWNER = streambuilder
postgres-# ENCODING = 'UTF8' TABLESPACE = pg_default
postgres-# CONNECTION LIMIT = -1;
postgres=# GRANT ALL PRIVILEGES ON DATABASE dvr to streambuilder;
postgres=# \q

Apply dvr database schema

sudo -u postgres psql dvr </usr/local/streambuilder/sql/20160809155644_dvr_schema.sql
sudo -u postgres psql dvr </usr/local/streambuilder/sql/20170825134648_update_hls_playlist.sql
sudo -u postgres psql dvr </usr/local/streambuilder/sql/20170828141241_add_reserve_channel.sql

Now DVR database is ready to work with streambuilder.

Install packages on Ubuntu 14.04

Install PostgreSQL server from repository:

sudo apt-get update
sudo apt-get install postgresql postgresql-contrib

To connect to PostgreSQL server via psql:

sudo apt-get install postgresql-client

After installation PostgreSQL is initialized.

Add string

listen_addresses = '*'

to /etc/postgresql/9.3/main/postgresql.conf configuration file.

Replace or add strings

#host    all             all             127.0.0.1/32            ident
host    all             all             127.0.0.1/32            trust
host    all             all             192.168.0.36/32         trust
host    dvr             streambuilder   0.0.0.0/0               trust

to /etc/postgresql/9.3/main/pg_hba.conf configuration file. Use local network host ip-address instead of 192.168.0.36/32 or local network address 192.168.0.1/24

Restart PostgreSQL service:

sudo service postgresql restart

Connect to database and create streambuilder role (password may be changed) and dvr database

sudo -u postgres psql
postgres=# CREATE USER streambuilder WITH PASSWORD 'streambuilder';
postgres=# CREATE DATABASE dvr WITH OWNER = streambuilder
postgres-# ENCODING = 'UTF8' TABLESPACE = pg_default
postgres-# CONNECTION LIMIT = -1;
postgres=# GRANT ALL PRIVILEGES ON DATABASE dvr to streambuilder;
postgres=# \q

Apply dvr database schema

sudo -u postgres psql dvr </usr/local/streambuilder/sql/20160809155644_dvr_schema.sql
sudo -u postgres psql dvr </usr/local/streambuilder/sql/20170825134648_update_hls_playlist.sql
sudo -u postgres psql dvr </usr/local/streambuilder/sql/20170828141241_add_reserve_channel.sql

Now DVR database is ready to work with streambuilder.

Install packages on Ubuntu 16.04

Install PostgreSQL server from repository:

sudo apt update
sudo apt install postgresql postgresql-contrib

To connect to PostgreSQL server via psql:

sudo apt install postgresql-client

After installation PostgreSQL is initialized.

Add string

listen_addresses = '*'

to /etc/postgresql/9.5/main/postgresql.conf configuration file.

Replace or add strings

#host    all             all             127.0.0.1/32            ident
host    all             all             127.0.0.1/32            trust
host    all             all             192.168.0.36/32         trust
host    dvr             streambuilder   0.0.0.0/0               trust

to /etc/postgresql/9.5/main/pg_hba.conf configuration file. Use local network host ip-address instead of 192.168.0.36/32 or local network address 192.168.0.1/24

Restart PostgreSQL service:

sudo systemctl restart postgresql

Connect to database and create streambuilder role (password may be changed) and dvr database

sudo -u postgres psql
postgres=# CREATE USER streambuilder WITH PASSWORD 'streambuilder';
postgres=# CREATE DATABASE dvr WITH OWNER = streambuilder
postgres-# ENCODING = 'UTF8' TABLESPACE = pg_default
postgres-# CONNECTION LIMIT = -1;
postgres=# GRANT ALL PRIVILEGES ON DATABASE dvr to streambuilder;
postgres=# \q

Apply dvr database schema

sudo -u postgres psql dvr </usr/local/streambuilder/sql/20160809155644_dvr_schema.sql
sudo -u postgres psql dvr </usr/local/streambuilder/sql/20170825134648_update_hls_playlist.sql
sudo -u postgres psql dvr </usr/local/streambuilder/sql/20170828141241_add_reserve_channel.sql

Now DVR database is ready to work with streambuilder.